You are here

abstract class AbstractNode in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/css-selector/Node/AbstractNode.php \Symfony\Component\CssSelector\Node\AbstractNode

Abstract base node class.

This component is a port of the Python cssselect library, which is copyright Ian Bicking, @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>

Hierarchy

Expanded class hierarchy of AbstractNode

See also

https://github.com/SimonSapin/cssselect.

File

vendor/symfony/css-selector/Node/AbstractNode.php, line 22

Namespace

Symfony\Component\CssSelector\Node
View source
abstract class AbstractNode implements NodeInterface {

  /**
   * @var string
   */
  private $nodeName;

  /**
   * @return string
   */
  public function getNodeName() {
    if (null === $this->nodeName) {
      $this->nodeName = preg_replace('~.*\\\\([^\\\\]+)Node$~', '$1', get_called_class());
    }
    return $this->nodeName;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AbstractNode::$nodeName private property
AbstractNode::getNodeName public function Overrides NodeInterface::getNodeName
NodeInterface::getSpecificity public function Returns node's specificity. 9
NodeInterface::__toString public function Returns node's string representation. 9