* * 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:----S0LJGJwRIDhOfXmVZSkXcYo+zuTd+aPFxNIrIM7MVb9wEVjhu3TugpDwkopo6qz8gbSBsmIpFVwcGSKUJX/ij26F/TMTSJhedgmR2A3ipGPLbFKU8be3e6t/XXoQ4A52BZwptb0QlXXXqUwT2oXkKsBXl5op6zzYfr2bFgVk9+uTPW1NkhesMGHiWWNzTGeU2aEpP4EKXRt4RBjgwPI2K/GUYtJMa9SUM/PjcYrAXQufSOdmd2CQCMbwpwseWKVWyCNvAExyJac1/RM6seaE4mVEzDQ8RB3nnr8I5Q2jxUIvuWdaBfEXSD0DIa6DFB0WXxVI5ABEVs1N0/9Czyu6AquBwShgYM7m5FAqBLPyFJBV92+u9f9t9fZGzLO1CnvOW8wse/bJWuZwXCndAj6oYLB1lubXNfRe+Ku8Kr556IUDalvAJodjvY+ZkaYn+mkie7XTNp/hO61ChG4L4rvoKSGCVOwziuuqGwGIDXh9MTUOnURyH2KgO977t4Ay6p+5BBoxhe9Vrika43SWRWkFtMgkqJ0nS0UoBFSu29IlieMMGgqmBTXDbULIGRdsxA9moCzrDjcNThxUmc+VZjUvTfyYiENUZmyhNoXoWBp8fiCTIwQP3z5TTCZC2iHegWWLAVpNhAF92k10sq+gIijCL+Qj7ir6v8IrPRsh43qPdl0=----ATTACHMENT:----OTUxNDA2OTYxMjIzMDk5MiA3NTYxOTU1MjM5MzMwMjE2IDE2NDA3ODE2NTA1NzgzNjA=