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

ElementNode::getSpecificitypublicWC 1.0

{@inheritdoc}

Method of the class: ElementNode{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

ElementNode::getSpecificity() code WC 10.4.3

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