You are here

public function PseudoNode::getSpecificity in Zircon Profile 8

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

Returns node's specificity.

Return value

Specificity

Overrides NodeInterface::getSpecificity

File

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

Class

PseudoNode
Represents a "<selector>:<identifier>" node.

Namespace

Symfony\Component\CssSelector\Node

Code

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