Cursor
in package
FinalYes
Table of Contents
Properties
Methods
- __construct() : mixed
- next() : Token|null
- previous() : Token|null
- subCursor() : self
Properties
$position
private
int
$position
= -1
$tokens
private
array<string|int, Token>
$tokens
Methods
__construct()
public
__construct(array<string|int, Token> $tokens) : mixed
Parameters
- $tokens : array<string|int, Token>
next()
public
next([int|null $exceptTokenType = null ]) : Token|null
Parameters
- $exceptTokenType : int|null = null
Return values
Token|nullprevious()
public
previous([int|null $exceptTokenType = null ]) : Token|null
Parameters
- $exceptTokenType : int|null = null
Return values
Token|nullsubCursor()
public
subCursor() : self