You are here

public function CombinedSelectorNode::getSpecificity in Zircon Profile 8

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

Returns node's specificity.

Return value

Specificity

Overrides NodeInterface::getSpecificity

File

vendor/symfony/css-selector/Node/CombinedSelectorNode.php, line 78

Class

CombinedSelectorNode
Represents a combined node.

Namespace

Symfony\Component\CssSelector\Node

Code

public function getSpecificity() {
  return $this->selector
    ->getSpecificity()
    ->plus($this->subSelector
    ->getSpecificity());
}