Automattic\WooCommerce\EmailEditorVendor\Symfony\Component\CssSelector\Node

SelectorNode::getSpecificity │ public │ WC 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 11.2.2

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