You are here

public function SelectorNode::__toString in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/css-selector/Node/SelectorNode.php \Symfony\Component\CssSelector\Node\SelectorNode::__toString()

Returns node's string representation.

Return value

string

Overrides NodeInterface::__toString

File

vendor/symfony/css-selector/Node/SelectorNode.php, line 71

Class

SelectorNode
Represents a "<selector>(::|:)<pseudoElement>" node.

Namespace

Symfony\Component\CssSelector\Node

Code

public function __toString() {
  return sprintf('%s[%s%s]', $this
    ->getNodeName(), $this->tree, $this->pseudoElement ? '::' . $this->pseudoElement : '');
}