Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value
CSSFunction::parse
Method of the class: CSSFunction{}
No Hooks.
Returns
CSSFunction.
Usage
$result = CSSFunction::parse( $oParserState, $bIgnoreCase );
- $oParserState(ParserState) (required)
- .
- $bIgnoreCase(true|false)
- .
Default:false
CSSFunction::parse() CSSFunction::parse code WC 10.7.0
public static function parse(ParserState $oParserState, $bIgnoreCase = false)
{
$mResult = $oParserState->parseIdentifier($bIgnoreCase);
$oParserState->consume('(');
$aArguments = Value::parseValue($oParserState, ['=', ' ', ',']);
$mResult = new CSSFunction($mResult, $aArguments, ',', $oParserState->currentLine());
$oParserState->consume(')');
return $mResult;
}