Automattic\WooCommerce\Vendor\Pelago\Emogrifier\Css
StyleRule::getDeclarationAsText
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() StyleRule::getDeclarationAsText code WC 10.5.0
public function getDeclarationAsText(): string
{
return \implode(' ', $this->declarationBlock->getRules());
}