Method |
Description |
|
__construct ( array $tokens ) |
|
|
currentToken ( ) : array | null |
Returns current token. |
|
currentValue ( ) : string | null |
Returns current token value. |
|
expectNextValue ( ) : string |
Returns next expected token or throws exception. |
|
isCurrent ( $arg ) : boolean |
Checks the current token. |
|
isNext ( ) : boolean |
Checks the next token existence. |
|
isPrev ( ) : boolean |
Checks the previous token existence. |
|
joinAll ( ) : string |
Returns concatenation of all next token values. |
|
joinUntil ( $arg ) : string |
Returns concatenation of all next tokens until it sees a given token type or value. |
|
nextAll ( ) : array[] |
Returns all next tokens. |
|
nextToken ( ) : array | null |
Returns next token. |
|
nextUntil ( $arg ) : array[] |
Returns all next tokens until it sees a given token type or value. |
|
nextValue ( ) : string | null |
Returns next token value. |
|
reset ( ) : static |
|
|