Automattic\WooCommerce\Vendor\Sabberworm\CSS\Rule
Rule::render
Method of the class: Rule{}
No Hooks.
Returns
String.
Usage
$Rule = new Rule(); $Rule->render( $oOutputFormat );
- $oOutputFormat(OutputFormat|null) (required)
- .
Rule::render() Rule::render code WC 10.4.3
public function render($oOutputFormat)
{
$sResult = "{$oOutputFormat->comments($this)}{$this->sRule}:{$oOutputFormat->spaceAfterRuleName()}";
if ($this->mValue instanceof Value) { // Can also be a ValueList
$sResult .= $this->mValue->render($oOutputFormat);
} else {
$sResult .= $this->mValue;
}
if (!empty($this->aIeHack)) {
$sResult .= ' \\' . implode('\\', $this->aIeHack);
}
if ($this->bIsImportant) {
$sResult .= ' !important';
}
$sResult .= ';';
return $sResult;
}