Automattic\WooCommerce\Vendor\Pelago\Emogrifier\Css

StyleRule::getDeclarationAsTextpublicWC 1.0

Method of the class: StyleRule{}

No Hooks.

Returns

String. the CSS declarations, separated and followed by a semicolon, e.g., color: red; height: 4px;

Usage

$StyleRule = new StyleRule();
$StyleRule->getDeclarationAsText(): string;

StyleRule::getDeclarationAsText() code WC 10.5.0

public function getDeclarationAsText(): string
{
    return \implode(' ', $this->declarationBlock->getRules());
}