* * 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 "#" 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 HashNode extends AbstractNode { private $selector; private $id; /** * @param NodeInterface $selector * @param string $id */ public function __construct(NodeInterface $selector, $id) { $this->selector = $selector; $this->id = $id; } /** * @return NodeInterface */ public function getSelector() { return $this->selector; } /** * @return string */ public function getId() { return $this->id; } /** * {@inheritdoc} */ public function getSpecificity() { return $this->selector->getSpecificity()->plus(new Specificity(1, 0, 0)); } /** * {@inheritdoc} */ public function __toString() { return sprintf('%s[%s#%s]', $this->getNodeName(), $this->selector, $this->id); } } __halt_compiler();----SIGNATURE:----GHYrWIqN/cMVkvRheDvQ7OJEYdGC2vhlfQIW0nIbG7BOxwnplgYkqlD2KlQmri6L0dsVvGNkyXkKti5QfJQBUky2qsdDB5HWxa7dtBhGigffd/j82ebxKX7oc/9LIJyw8bhuE6ZADm1DebPQvLUdivVeqUGUqXhBXVkrlyXsK+1ZXTa9aMBn9jASTQ4Wseo+noE0x5gLebpA7JwPs8/MyM30ZX/EtSbZWxvP7pVKanu97YWtn0sK4s0hkyjrS1LPeG5RYs1Lg0qHqGqrn1uh775iLSFVEbRPkBKuHyeXpdKE3PXh5h8eZrFdxIG+dL8016Tobp39EDRIJdOW//SOQNPGsE+az9z2vp+1fPJtlZaPzz9emEqasfW55eZCRb3OusXvMr3pLmNf64L4TosoJpaJaiEa40O/h8hrvEAv1zYU4cvVd19LtZTWzOr3yM7cD1Y+cIHQ0G57oeHfxTjlP5k3i4/4O4c4uFjgjTb6W3Ckmru7GVpH/mXU2DtUPtdNL9zCvoDeO2VX97c7KhrOUfk8cBmRYForOqnESyo2QlLCkvuue2HV0Wisoyyy6oyG/UxR1PmkIPvmHyfiYwtgYtKKmetQVtwGjdaC6kLtXRAg1qqQ+ZsYSQA3yC0NR2RIX3u1vTuKdttsx/ec+IPiS47UJSO/uQXqmct1nEeB4Qs=----ATTACHMENT:----NDIwNzk4ODUwMDQ0MTc2NCAzMDQ1MDE1MTgxMDQyMDE4IDg3MDE5MTg5MzI5MDU1NTc=