Automattic\WooCommerce\Vendor\Pelago\Emogrifier\Css

StyleRule::__constructpublicWC 1.0

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

Хуков нет.

Возвращает

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

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

$StyleRule = new StyleRule();
$StyleRule->__construct( $declarationBlock, $containingAtRule );
$declarationBlock(DeclarationBlock) (обязательный)
.
$containingAtRule(строка)
e.g. @media screen and (max-width: 480px).
По умолчанию: ''

Код StyleRule::__construct() WC 10.4.3

public function __construct(DeclarationBlock $declarationBlock, string $containingAtRule = '')
{
    $this->declarationBlock = $declarationBlock;
    $this->containingAtRule = \trim($containingAtRule);
}