Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\CssSelector\Node; Chris@0: Chris@0: /** Chris@0: * Interface for nodes. Chris@0: * Chris@0: * This component is a port of the Python cssselect library, Chris@0: * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect. Chris@0: * Chris@0: * @author Jean-François Simon Chris@0: * Chris@0: * @internal Chris@0: */ Chris@0: interface NodeInterface Chris@0: { Chris@0: /** Chris@0: * Returns node's name. Chris@0: * Chris@0: * @return string Chris@0: */ Chris@0: public function getNodeName(); Chris@0: Chris@0: /** Chris@0: * Returns node's specificity. Chris@0: * Chris@0: * @return Specificity Chris@0: */ Chris@0: public function getSpecificity(); Chris@0: Chris@0: /** Chris@0: * Returns node's string representation. Chris@0: * Chris@0: * @return string Chris@0: */ Chris@0: public function __toString(); Chris@0: }