Automattic\WooCommerce\EmailEditorVendor\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.3.0

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