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