TokenStream::freeze()

TokenStream freeze() Freezes stream. Return Value TokenStream

TokenStream::getPeek()

Token getPeek() Returns peeked token. Return Value Token

TokenStream::getNext()

Token getNext() Returns next token. Return Value Token Exceptions InternalErrorException If there is no more token

TokenStream::getNextIdentifierOrStar()

null|string getNextIdentifierOrStar() Returns nex identifier or star delimiter token. Return Value null|string The identifier token value or null if star found Exceptions SyntaxErrorException If next token is not an identifier or a star delimiter

TokenStream

class TokenStream CSS selector token stream. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods TokenStream push(Token $token) Pushes a token. TokenStream freeze() Freezes stream. Token getNext() Returns next token. Token getPeek() Returns peeked token. Token[] getUsed() Returns used tokens. string getNextIdentifier() Returns nex identifier token. null|string getNextI

TokenStream::expect()

expect(array|int $type, string|null $value = null, string|null $message = null) Tests a token. Parameters array|int $type The type to test string|null $value The token value string|null $message The syntax error message

TokenStream

class TokenStream Represents a token stream. Properties $current Methods __construct(array $tokens) Constructor. string __toString() Returns a string representation of the token stream. next() Sets the pointer to the next token and returns the old one. expect(array|int $type, string|null $value = null, string|null $message = null) Tests a token. bool isEOF() Checks if end of stream was reached. Details __construct(array $tokens)

TokenStorageInterface::setToken()

setToken(string $tokenId, string $token) Stores a CSRF token. Parameters string $tokenId The token ID string $token The CSRF token

TokenStorageInterface::getToken()

TokenInterface|null getToken() Returns the current security token. Return Value TokenInterface|null A TokenInterface instance or null if no authentication information is available

TokenStorageInterface::getToken()

string getToken(string $tokenId) Reads a stored CSRF token. Parameters string $tokenId The token ID Return Value string The stored token Exceptions TokenNotFoundException If the token ID does not exist