public function FunctionNode::__toString in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/css-selector/Node/FunctionNode.php \Symfony\Component\CssSelector\Node\FunctionNode::__toString()
Returns node's string representation.
Return value
string
Overrides NodeInterface::__toString
File
- vendor/
symfony/ css-selector/ Node/ FunctionNode.php, line 88
Class
- FunctionNode
- Represents a "<selector>:<name>(<arguments>)" node.
Namespace
Symfony\Component\CssSelector\NodeCode
public function __toString() {
$arguments = implode(', ', array_map(function (Token $token) {
return "'" . $token
->getValue() . "'";
}, $this->arguments));
return sprintf('%s[%s:%s(%s)]', $this
->getNodeName(), $this->selector, $this->name, $arguments ? '[' . $arguments . ']' : '');
}