Automattic\WooCommerce\EmailEditorVendor\Sabberworm\CSS\Parsing

ParserState::__construct │ public │ WC 1.0

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$ParserState = new ParserState();
$ParserState->__construct( $sText, $oParserSettings, $iLineNo );
$sText(строка) (обязательный)
the complete CSS as text (i.e., usually the contents of a CSS file).
$oParserSettings(Settings) (обязательный)
.
$iLineNo(int)
.
По умолчанию: 1

Код ParserState::__construct() WC 11.3.0

public function __construct($sText, Settings $oParserSettings, $iLineNo = 1)
{
    $this->oParserSettings = $oParserSettings;
    $this->sText = $sText;
    $this->iCurrentPosition = 0;
    $this->iLineNo = $iLineNo;
    $this->setCharset($this->oParserSettings->sDefaultCharset);
}