You are here

public function HashNode::getSpecificity in Zircon Profile 8.0

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

Returns node's specificity.

Return value

Specificity

Overrides NodeInterface::getSpecificity

File

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

Class

HashNode
Represents a "<selector>#<id>" node.

Namespace

Symfony\Component\CssSelector\Node

Code

public function getSpecificity() {
  return $this->selector
    ->getSpecificity()
    ->plus(new Specificity(1, 0, 0));
}