Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\Node

SelectorNode::getSpecificitypublicWC 1.0

{@inheritdoc}

Method of the class: SelectorNode{}

No Hooks.

Returns

null. Nothing (null).

Usage

$SelectorNode = new SelectorNode();
$SelectorNode->getSpecificity(): Specificity;

SelectorNode::getSpecificity() code WC 10.5.0

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