selector = $selector; $this->subSelector = $subSelector; } public function getSelector() : NodeInterface { return $this->selector; } public function getSubSelector() : NodeInterface { return $this->subSelector; } public function getSpecificity() : Specificity { return $this->selector->getSpecificity()->plus($this->subSelector->getSpecificity()); } public function __toString() : string { return \sprintf('%s[%s:not(%s)]', $this->getNodeName(), $this->selector, $this->subSelector); } }