Documentation

Cursor
in package

FinalYes

Table of Contents

Properties

$position  : int
$tokens  : array<string|int, Token>

Methods

__construct()  : mixed
next()  : Token|null
previous()  : Token|null
subCursor()  : self

Properties

$position

private int $position = -1

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|null

previous()

public previous([int|null $exceptTokenType = null ]) : Token|null
Parameters
$exceptTokenType : int|null = null
Return values
Token|null

subCursor()

public subCursor() : self
Return values
self

        
On this page

Search results