css-sanitizer
Classes to parse and sanitize CSS
Loading...
Searching...
No Matches
Wikimedia\CSS\Grammar\UnorderedGroup Class Reference

Matcher that groups other matchers without ordering ("&&" and "||" combiners) More...

+ Inheritance diagram for Wikimedia\CSS\Grammar\UnorderedGroup:
+ Collaboration diagram for Wikimedia\CSS\Grammar\UnorderedGroup:

Public Member Functions

 __construct (array $matchers, $all)
 
- Public Member Functions inherited from Wikimedia\CSS\Grammar\Matcher
 capture ( $captureName)
 Return a copy of this matcher that will capture its matches.
 
 matchAgainst (ComponentValueList $values, array $options=[])
 Match against a list of ComponentValues.
 
 getDefaultOptions ()
 Fetch the default options for this Matcher.
 
 setDefaultOptions (array $options)
 Set the default options for this Matcher.
 

Static Public Member Functions

static allOf (array $matchers)
 Implements "&&": All of the options, in any order.
 
static someOf (array $matchers)
 Implements "||": One or more of the options, in any order.
 
- Static Public Member Functions inherited from Wikimedia\CSS\Grammar\Matcher
static create (... $args)
 Create an instance.
 

Protected Attributes

 $matchers
 
 $all
 
- Protected Attributes inherited from Wikimedia\CSS\Grammar\Matcher
 $captureName = null
 
 $defaultOptions
 

Additional Inherited Members

- Protected Member Functions inherited from Wikimedia\CSS\Grammar\Matcher
 next (ComponentValueList $values, $start, array $options)
 Find the next ComponentValue in the input, possibly skipping whitespace.
 
 makeMatch (ComponentValueList $list, $start, $end, GrammarMatch $submatch=null, array $stack=[])
 Create a GrammarMatch.
 
 generateMatches (ComponentValueList $values, $start, array $options)
 Match against a list of ComponentValues.
 

Detailed Description

Matcher that groups other matchers without ordering ("&&" and "||" combiners)

See also
https://www.w3.org/TR/2019/CR-css-values-3-20190606/#component-combinators

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\CSS\Grammar\UnorderedGroup::__construct ( array $matchers,
$all )
Parameters
Matcher[]$matchers
bool$allWhether all matchers must be used

Member Function Documentation

◆ allOf()

static Wikimedia\CSS\Grammar\UnorderedGroup::allOf ( array $matchers)
static

Implements "&&": All of the options, in any order.

Parameters
Matcher[]$matchers
Returns
static

◆ someOf()

static Wikimedia\CSS\Grammar\UnorderedGroup::someOf ( array $matchers)
static

Implements "||": One or more of the options, in any order.

Parameters
Matcher[]$matchers
Returns
static

The documentation for this class was generated from the following file: