Automattic\WooCommerce\Vendor\Pelago\Emogrifier\Css

StyleRule::hasAtLeastOneDeclaration │ public │ WC 1.0

Checks whether the declaration block has at least one declaration.

Метод класса: StyleRule{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$StyleRule = new StyleRule();
$StyleRule->hasAtLeastOneDeclaration(): bool;

Код StyleRule::hasAtLeastOneDeclaration() WC 11.2.1

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