You are here

public function SelectorNode::__construct 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::__construct()

Parameters

NodeInterface $tree:

null|string $pseudoElement:

File

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

Class

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

Namespace

Symfony\Component\CssSelector\Node

Code

public function __construct(NodeInterface $tree, $pseudoElement = null) {
  $this->tree = $tree;
  $this->pseudoElement = $pseudoElement ? strtolower($pseudoElement) : null;
}