Automattic\WooCommerce\Vendor\Pelago\Emogrifier\Css

StyleRule::hasAtLeastOneDeclarationpublicWC 1.0

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() code WC 10.5.0

public function hasAtLeastOneDeclaration(): bool
{
    return $this->declarationBlock->getRules() !== [];
}