/**
* Class constructor. Available options are:
* - encoding: selectors encoding. If not specified the
* parser will assume UTF-8.
*
* @param Syntax\Node\Program $root Root node
* @param array $options Options array
*/
public function __construct(Syntax\Node\Program
$root,
$options = array
()) { $this->matches =
new Selector\
Matches();
$this->matches->
addMatch($root);
$this->options =
$options;
} /**
* Finds nodes matching the given selector starting from the
* current matched nodes, if any, or from the root
*
* @param string $selector Selector
*
* @return $this
*
* @throws Selector\Exception
*/