You are here

interface NodeInterface in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/css-selector/Node/NodeInterface.php \Symfony\Component\CssSelector\Node\NodeInterface
  2. 8 core/modules/node/src/NodeInterface.php \Drupal\node\NodeInterface
Same name and namespace in other branches
  1. 8.0 vendor/symfony/css-selector/Node/NodeInterface.php \Symfony\Component\CssSelector\Node\NodeInterface

Interface for nodes.

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 NodeInterface

All classes that implement NodeInterface

See also

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

2 files declare their use of NodeInterface
AbstractNodeTest.php in vendor/symfony/css-selector/Tests/Node/AbstractNodeTest.php
Translator.php in vendor/symfony/css-selector/XPath/Translator.php

File

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

Namespace

Symfony\Component\CssSelector\Node
View source
interface NodeInterface {

  /**
   * Returns node's name.
   *
   * @return string
   */
  public function getNodeName();

  /**
   * Returns node's specificity.
   *
   * @return Specificity
   */
  public function getSpecificity();

  /**
   * Returns node's string representation.
   *
   * @return string
   */
  public function __toString();

}

Members

Namesort descending Modifiers Type Description Overrides
NodeInterface::getNodeName public function Returns node's name. 1
NodeInterface::getSpecificity public function Returns node's specificity. 9
NodeInterface::__toString public function Returns node's string representation. 9