* * 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:----Izrcbm6k8zBoXyDS5fZ0Y8Pqg8ZlcrPimg5MZLGXWeJ8VLlF2tbR0qSy1ayHw7Ar3qcvmiP+mqQh9GEzHVZoc8N8bc2VPkinVRBvXwEFNa/1UebcsDLzF4VXCWDkpd4Z2hMMX4Wndb5shhrCvlmCULFOVxyhs7Kxr4FT2Z6JST1+uadqtkSTdTx1NC5JLZ6KXiY91M6KDqrrkLJtZ9PLmHabZo0POU/+G/0NzeLmBcbDPZ7e4C9HZWbrezFuBKPQCSN63Ivw08Bl7Fieydrq9QThs04auoUsFgIg0lKuoQCsBCAxg3EqGHvXu72tZu9f5vZ0nzd4hLB2YB87v+RsQ84QrAYsRgdjgZICp107eDKIzymfAsPcBzaLlSu5wyAoO3XyfLcCiErzAe5L0SEhC0y2rmhLLf7QTIIDnbQIRvzXN2/G9pFuwHY66Dk0NUumQb1YUzkB7TW60NwNXH0uQou/DKTzeQV+j8bAY0AVvl9COldpAh8GVqWCzt/QeZwzjUXwgFwdVcnkFxSndKcAX3V9vXSg7DE3Jxqtgl0r8mAnzrw4Ercq5ByaIxF9JdZL3pUfDtakaNjr/NnweG1aYjeVzn6Cq03cnwGOx+s3ywzodbdXtRAShGhhf0CN7o2N0PHiWc+lkKOUvTLgoBUoExiXGBJpinmNwuzUfDp/d7g=----ATTACHMENT:----MjA3NTE0ODE2Nzk5Mjc5MiAxODgyMDQ1ODM0MTcwODkwIDcyMTU4NzA0MDc4Mzg1MTg=