public function ElementNode::getSpecificity in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/css-selector/Node/ElementNode.php \Symfony\Component\CssSelector\Node\ElementNode::getSpecificity()
Returns node's specificity.
Return value
Overrides NodeInterface::getSpecificity
File
- vendor/
symfony/ css-selector/ Node/ ElementNode.php, line 63
Class
- ElementNode
- Represents a "<namespace>|<element>" node.
Namespace
Symfony\Component\CssSelector\NodeCode
public function getSpecificity() {
return new Specificity(0, 0, $this->element ? 1 : 0);
}