You are here

public function ElementNode::getSpecificity in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/css-selector/Node/ElementNode.php \Symfony\Component\CssSelector\Node\ElementNode::getSpecificity()

Returns node's specificity.

Return value

Specificity

Overrides NodeInterface::getSpecificity

File

vendor/symfony/css-selector/Node/ElementNode.php, line 63

Class

ElementNode
Represents a "<namespace>|<element>" node.

Namespace

Symfony\Component\CssSelector\Node

Code

public function getSpecificity() {
  return new Specificity(0, 0, $this->element ? 1 : 0);
}