* * 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 ElementNode extends AbstractNode { private $namespace; private $element; /** * @param string|null $namespace * @param string|null $element */ public function __construct($namespace = null, $element = null) { $this->namespace = $namespace; $this->element = $element; } /** * @return null|string */ public function getNamespace() { return $this->namespace; } /** * @return null|string */ public function getElement() { return $this->element; } /** * {@inheritdoc} */ public function getSpecificity() { return new Specificity(0, 0, $this->element ? 1 : 0); } /** * {@inheritdoc} */ public function __toString() { $element = $this->element ?: '*'; return sprintf('%s[%s]', $this->getNodeName(), $this->namespace ? $this->namespace.'|'.$element : $element); } } __halt_compiler();----SIGNATURE:----KWtJe/VFsxp1jTsex3lpw6s6jfpbyY5O9AtLiFUNBBf5uU012A8Cmxt4IDOClPr+jxXUMEQC9yqsUHtSL2PU/Eeuw/T2Eh434FUEcf3plB/5Mxcs+O+xKRZPhgUiqwBVpmVICzaVPtkCTLwo6OdpKti/EOX2apNamodTWnt/fa8yjRcJA+VdRQbFiL0Gh8NHxey2IzrF0Jkg8iUGgO+7BSxqN+XxsHTxDgWCehSeRN94yyI3/vi903QvX1E/9r10bCuwFkFMmiVKip6bKkNuzIy6ocgi/EeB1Hmkrb66VMVpHctpvToBEmEIu3BMltUA7dAkBVmzq7OGQFE9OGGh6ZW+aAoMvV3eECe4px/CJvDVYwVA69aKJUqt2rqPd6+EMaq1yzdcLfOVVjuXzX98Ubbj1Rp1NCeAVdMtOcHSvvvFm/iB0UAeyy5AmbKqkwB7cU0ZXrW2L2R4qnyK8vi1y+7gn7ZrkL+NB4dOWjJ3Th6S/2Icx4neR4FZ3rJPfWk9UujiaYEiRRTygSwWnmzQBWUGV1F9sU2oDqmscUCEtgI1PBjWw3fTa7bkKy68OGt5V6qWrUpCLq7FDU/ZUmJZXvZyyHXxA8288VHotICUNW9FaQhSpkYnsV75XQxs7xkEWwR1AqJHArcjAdHwQVCs/h2AvDFYhd5o0xrHPD/HOgE=----ATTACHMENT:----OTQ0NTg3MTQ2MjQxMTAyMiA2NTAxMTU1MjU5NDAyMDMgMjg5MzgwNTM0NDAyNjY4