Automattic\WooCommerce\Vendor\Pelago\Emogrifier\Css

StyleRule::__constructpublicWC 1.0

Method of the class: StyleRule{}

No Hooks.

Returns

null. Nothing (null).

Usage

$StyleRule = new StyleRule();
$StyleRule->__construct( $declarationBlock, $containingAtRule );
$declarationBlock(DeclarationBlock) (required)
.
$containingAtRule(string)
e.g. @media screen and (max-width: 480px).
Default: ''

StyleRule::__construct() code WC 10.4.3

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