* * 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:----ENtezBPaBBuNsp09IBPlmfw5ZrSxaUJVt9BCWvwknjYEycuXFvXNXsf6vmuMFCJtbbbDFHxGsbn1Ua3z8zqzme6h4x+ViaBbz1Q6/LuoS37pkBXJmxpg5jU/x3+Uv7bv9+i4ReQKtKPVjTzML82dBaVnYmr0Iw/LtXV/s1sIz5VD6DE8Xx8i+uHPw7DkAio3oh/CYVodsnJYdi3ckOBjWBcKGIWy9m5gIyybEhvAuvo31jVpW1Afasl4U/D8cM9qWm43jE6HJH2iP6uvo7wxeAraXQc/QpPFLFWRn5F2Zd0c3wn++tUXw+RCQdJMdBjydiAhd0jUHw2rLN8AEBiAJAaS5i2GKMS54Fkn/zpXB4H8XKZeoo/RRN+IkJekfZBcBBIV4PmdRloIMJ445OnYLVVRlgpaDxgLr0xuzYzmFjnFob75+XrqBxdCYCcLG3gt0S3XidKwJW8Tdi5rWjtHm2xjJWV4EihJ2BwWl+l0cg6EVRRsCXJoDooUwCmBQhzB0rEueB4mkXKbALx2NubnHNDg4FvW6nBDYMi0KPvMGU3VnJodzYTi0PPn8FTMwWKjZAbGpRwm7KTMBYok1hIsiMPI193YEZ9cQanAgspdxssswab/kFpg5n13Bvi+8v6VXyocFx61Ayrh/e5w+gCFOZrXEywtGxufLF64y5NmEIY=----ATTACHMENT:----NDEyNzg5MDY4NTU0NzA0MCA3NzMzMzQzNzM2NDg4Nzc0IDg5NzI1Nzk1MzczOTAxMQ==