Automattic\WooCommerce\Vendor\Sabberworm\CSS\Parsing
ParserState::__construct
Method of the class: ParserState{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ParserState = new ParserState(); $ParserState->__construct( $sText, $oParserSettings, $iLineNo );
- $sText(string) (required)
- the complete CSS as text (i.e., usually the contents of a CSS file).
- $oParserSettings(Settings) (required)
- .
- $iLineNo(int)
- .
Default:1
ParserState::__construct() ParserState:: construct code WC 10.9.4
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);
}