Automattic\WooCommerce\Vendor\Sabberworm\CSS\Rule

Rule::render │ public │ WC 1.0

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

Хуков нет.

Возвращает

string.

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

$Rule = new Rule();
$Rule->render( $oOutputFormat );
$oOutputFormat(OutputFormat|null) (обязательный)
.

Код Rule::render() WC 11.2.1

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;
}