* * 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 combined 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 CombinedSelectorNode extends AbstractNode { private $selector; private $combinator; private $subSelector; /** * @param NodeInterface $selector * @param string $combinator * @param NodeInterface $subSelector */ public function __construct(NodeInterface $selector, $combinator, NodeInterface $subSelector) { $this->selector = $selector; $this->combinator = $combinator; $this->subSelector = $subSelector; } /** * @return NodeInterface */ public function getSelector() { return $this->selector; } /** * @return string */ public function getCombinator() { return $this->combinator; } /** * @return NodeInterface */ public function getSubSelector() { return $this->subSelector; } /** * {@inheritdoc} */ public function getSpecificity() { return $this->selector->getSpecificity()->plus($this->subSelector->getSpecificity()); } /** * {@inheritdoc} */ public function __toString() { $combinator = ' ' === $this->combinator ? '' : $this->combinator; return sprintf('%s[%s %s %s]', $this->getNodeName(), $this->selector, $combinator, $this->subSelector); } } __halt_compiler();----SIGNATURE:----q9JIEhVaA4CHYLihIXX4tdi/aINe+duMXstKkI1LYkWoHUMitH5g8LBA+e2T/b8p8bUXT2u2CiDy0VqIzHGAN7CSFrDXq5BpIF8peWKGi2Qfgm1obWEZXPQfGe7rAsDY0vhvun1qwncHKo6JsGRDiQQf+4tidT6qjD9lpu4YIkvCp3A37W/TMD3XcBXiqvUScs+Xku1kfbN04mY4k7xESxEdh2g/Xq0OSNXxkj0YiIQiSZTwFKP3nbzS7ORIB1CqB0pbqQ4CS/irRfxg6dt99F35y4FU36YKuGrZ5upoV0P8U0bKKd+GLnlBksRUzZQ5h2L6d6XVznnCuNybGbcFDs2VOy09MqThXcTN4a0qnB2PO+b8jikRZGqw7kcHM0sfXkF/JLF+zByYz94fPKIYlFgc9UVg0df+p+L0MzfagHRFpPt+YDPhowH8xwF69vlBtzOvV6IVq9wptBqTZUOfEO3FGlJNfsv3F5ZLrRrMoz5LQLjExzuyFkDKzvg666baqRkD3pAlKzUHd4WxUCdCPJmYdp+j/fNo0HoqYNWHv8yO0gju+qiINJ7helnNno6eNSaoqkD3jqCW9rQ6hxNQA/hZelcepVTqdUlYfMW1IN7cImp7oiuDO3NddIH3DCMFhUCeTc9QfXPo58mDDHzElJjomtftR6AogoIxPtx1i/Q=----ATTACHMENT:----NjYwNDg2MTU4NjUxMzMxIDYyMzkzMDQ1NzQyNzE5NzYgODA4MDEyMDM3MDg1ODU2OQ==