Automattic\WooCommerce\Vendor\Sabberworm\CSS

Parser::__constructpublicWC 1.0

Method of the class: Parser{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Parser = new Parser();
$Parser->__construct( $sText, $oParserSettings, $iLineNo );
$sText(string) (required)
the complete CSS as text (i.e., usually the contents of a CSS file).
$oParserSettings(Settings|null)
.
Default: null
$iLineNo(int)
the line number (starting from 1, not from 0).
Default: 1

Parser::__construct() code WC 10.5.0

public function __construct($sText, $oParserSettings = null, $iLineNo = 1)
{
    if ($oParserSettings === null) {
        $oParserSettings = Settings::create();
    }
    $this->oParserState = new ParserState($sText, $oParserSettings, $iLineNo);
}