css-sanitizer
Classes to parse and sanitize CSS
Wikimedia\CSS\Parser\TokenListTokenizer Class Reference

Tokenizer that just returns a predefined list of tokens. More...

+ Inheritance diagram for Wikimedia\CSS\Parser\TokenListTokenizer:
+ Collaboration diagram for Wikimedia\CSS\Parser\TokenListTokenizer:

Public Member Functions

 __construct ( $tokens, Token $eof=null)
 
 getParseErrors ()
 @inheritDoc
 
 clearParseErrors ()
 @inheritDoc
 
 consumeToken ()
 @inheritDoc
 

Protected Attributes

 $tokens
 
 $eof
 

Detailed Description

Tokenizer that just returns a predefined list of tokens.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\CSS\Parser\TokenListTokenizer::__construct (   $tokens,
Token  $eof = null 
)
Parameters
Token[] | TokenList$tokensTokens to return
Token | null$eofToken to copy as EOF

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