* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\CssSelector\Node; /** * Represents a ":not()" node. * * This component is a port of the Python cssselect library, * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect. * * @author Jean-François Simon * * @internal */ class NegationNode extends AbstractNode { private $selector; private $subSelector; public function __construct(NodeInterface $selector, NodeInterface $subSelector) { $this->selector = $selector; $this->subSelector = $subSelector; } /** * @return NodeInterface */ public function getSelector() { return $this->selector; } /** * @return NodeInterface */ public function getSubSelector() { return $this->subSelector; } /** * {@inheritdoc} */ public function getSpecificity() { return $this->selector->getSpecificity()->plus($this->subSelector->getSpecificity()); } /** * {@inheritdoc} */ public function __toString() { return sprintf('%s[%s:not(%s)]', $this->getNodeName(), $this->selector, $this->subSelector); } } __halt_compiler();----SIGNATURE:----HoxrZ4MYtNCYaYFBmMgTc3Xgka7mFQrpbTXmUcOzfIcLClcmkS9NkblthRwGPlWAGjIMh15P7YAJ6YTnR2y/Q+TrawsaETdrorleRbbILvJO4ho86+tJ9+t++9jbu6/RCAH4sQb58zcS3kYHmQjNx6IjoebBGoO72FHGy46/8SpNwK6uiPpzuIxVNzbYFHdV5iLfDuo2j81E560PopxXWpZT/VwLOQuuL+B3OJqcXakE1Hhg2cn8bZ4bRfjPsXDSwWhMkLfxFLp24d0RVFHVeJrTwgiFp3G//QiDCfWjtDOnh2I/q6WrmO0E4kUztbDPHvfCEhpQSgEkU21hsn83iXrma6jWhRX/XEr6Qi7WIw8pgU+0/yaDUYXJKztkzN/9sqAfefQTuEuFJ5Viv/RW0h8PzQozJlhw4QqH+TVgDHU9RsR+hpFF17VwAA8ERo0LQKCN8lBN6/9vTfSE72Wpbrabe1qQ3w+gqJCqRzhQn/SsCegRt5ZZaxAtvC3r8qhLsNBBHWRp08YoaAZCva6kFcDZwr2UIod+qmGHMP6EYMmHDg4o2HX1fiZqnziNldkcULJlX64fY2dhmnq76Q5p+IKGxpsvnvPstSyCdfZ3AXz5LKMo6FEJlWcnt9ocYKBpZMgEEIp36C5YR51AUNVEmcrz3JGx2QgVx74CbT2z3uc=----ATTACHMENT:----NjAzMzIzOTYzNjMwNDYwOSA4NzA5NzgyOTI5OTkyMjQyIDk0OTE1ODAxMDU3NzQxMDg=