Automattic\WooCommerce\Vendor\Pelago\Emogrifier\Css
StyleRule::hasAtLeastOneDeclaration
Checks whether the declaration block has at least one declaration.
Method of the class: StyleRule{}
No Hooks.
Returns
null. Nothing (null).
Usage
$StyleRule = new StyleRule(); $StyleRule->hasAtLeastOneDeclaration(): bool;
StyleRule::hasAtLeastOneDeclaration() StyleRule::hasAtLeastOneDeclaration code WC 10.5.0
public function hasAtLeastOneDeclaration(): bool
{
return $this->declarationBlock->getRules() !== [];
}