SILENT KILLERPanel

Current Path: > > opt > cloudlinux > > alt-php54 > root > usr > share > pear > > Symfony > Component > CssSelector > Node


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux//alt-php54/root/usr/share/pear//Symfony/Component/CssSelector/Node

NameTypeSizeLast ModifiedActions
AbstractNode.php File 920 bytes December 18 2019 11:22:55.
AttributeNode.php File 2635 bytes December 18 2019 11:22:55.
ClassNode.php File 1519 bytes December 18 2019 11:22:55.
CombinedSelectorNode.php File 1992 bytes December 18 2019 11:22:55.
ElementNode.php File 1606 bytes December 18 2019 11:22:55.
FunctionNode.php File 2075 bytes December 18 2019 11:22:55.
HashNode.php File 1500 bytes December 18 2019 11:22:55.
NegationNode.php File 1634 bytes December 18 2019 11:22:55.
NodeInterface.php File 920 bytes December 18 2019 11:22:55.
PseudoNode.php File 1586 bytes December 18 2019 11:22:55.
SelectorNode.php File 1684 bytes December 18 2019 11:22:55.
Specificity.php File 1563 bytes December 18 2019 11:22:55.

Reading File: //opt/cloudlinux//alt-php54/root/usr/share/pear//Symfony/Component/CssSelector/Node/ElementNode.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * 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 "<namespace>|<element>" node.
 *
 * This component is a port of the Python cssselector library,
 * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.
 *
 * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>
 */
class ElementNode extends AbstractNode
{
    /**
     * @var string|null
     */
    private $namespace;

    /**
     * @var string|null
     */
    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);
    }
}

SILENT KILLER Tool