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::getNextIdentifier()

string getNextIdentifier() Returns nex identifier token. Return Value string The identifier token value Exceptions SyntaxErrorException If next token is not an identifier

TokenStream::getNext()

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

TokenStream::freeze()

TokenStream freeze() Freezes stream. Return Value TokenStream

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)

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

TokenStorageInterface::setToken()

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

TokenStorageInterface::setToken()

setToken(TokenInterface $token = null) Sets the authentication token. Parameters TokenInterface $token A TokenInterface token, or null if no further authentication information should be stored

TokenStorageInterface::removeToken()

string|null removeToken(string $tokenId) Removes a CSRF token. Parameters string $tokenId The token ID Return Value string|null Returns the removed token if one existed, NULL otherwise