ValueList
extends Value
in package
A `ValueList` represents a lists of `Value`s, separated by some separation character (mostly `,`, whitespace, or `/`).
There are two types of ValueLists: RuleValueList and CSSFunction
Table of Contents
- __construct() : mixed
- phpcs:ignore Generic.Files.LineLength
- __toString() : string
- addListComponent() : void
- getListComponents() : array<int, \Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\RuleValueList|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSFunction|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSString|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\LineName|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\Size|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\URL|string>
- getListSeparator() : string
- render() : string
- setListComponents() : void
- setListSeparator() : void
- parseMicrosoftFilter() : CSSFunction
- parseUnicodeRangeValue() : string
Methods
__construct()
phpcs:ignore Generic.Files.LineLength
public
__construct([array<int, \Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\RuleValueList|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSFunction|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSString|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\LineName|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\Size|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\URL|string>|RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string $aComponents = [] ][, string $sSeparator = ',' ], int $iLineNo) : mixed
Parameters
- $aComponents : array<int, \Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\RuleValueList|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSFunction|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSString|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\LineName|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\Size|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\URL|string>|RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string = []
- $sSeparator : string = ','
- $iLineNo : int
Return values
mixed —__toString()
public
__toString() : string
Tags
Return values
string —addListComponent()
public
addListComponent(RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string $mComponent) : void
Parameters
- $mComponent : RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string
Return values
void —getListComponents()
public
getListComponents() : array<int, \Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\RuleValueList|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSFunction|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSString|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\LineName|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\Size|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\URL|string>
Return values
array<int, \Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\RuleValueList|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSFunction|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSString|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\LineName|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\Size|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\URL|string> —getListSeparator()
public
getListSeparator() : string
Return values
string —render()
public
render(OutputFormat|null $oOutputFormat) : string
Parameters
- $oOutputFormat : OutputFormat|null
Return values
string —setListComponents()
public
setListComponents(array<int, \Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\RuleValueList|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSFunction|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSString|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\LineName|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\Size|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\URL|string> $aComponents) : void
Parameters
- $aComponents : array<int, \Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\RuleValueList|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSFunction|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\CSSString|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\LineName|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\Size|\Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value\URL|string>
Return values
void —setListSeparator()
public
setListSeparator(string $sSeparator) : void
Parameters
- $sSeparator : string
Return values
void —parseMicrosoftFilter()
private
static parseMicrosoftFilter(ParserState $oParserState) : CSSFunction
Parameters
- $oParserState : ParserState
Tags
Return values
CSSFunction —parseUnicodeRangeValue()
private
static parseUnicodeRangeValue(ParserState $oParserState) : string
Parameters
- $oParserState : ParserState
