TokenCollection
implements
ArrayAccess, Iterator, Countable
Table of Contents
Interfaces
- ArrayAccess
- Iterator
- Countable
Properties
-
$pos
: int
-
$tokens
: array<string|int, Token>
Methods
-
addToken()
: void
-
count()
: int
-
current()
: Token
-
key()
: int
-
next()
: void
-
offsetExists()
: bool
-
offsetGet()
: Token
-
offsetSet()
: void
-
offsetUnset()
: void
-
rewind()
: void
-
valid()
: bool
$pos
private
int
$pos
$tokens
private
array<string|int, Token>
$tokens
= []
addToken()
public
addToken(Token $token) : void
Parameters
-
$token
: Token
-
count()
public
count() : int
current()
public
current() : Token
key()
public
key() : int
next()
public
next() : void
offsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
-
$offset
: mixed
-
offsetGet()
public
offsetGet(mixed $offset) : Token
Parameters
-
$offset
: mixed
-
-
throws
-
TokenCollectionException
offsetSet()
public
offsetSet(mixed $offset, Token $value) : void
Parameters
-
$offset
: mixed
-
-
$value
: Token
-
-
throws
-
TokenCollectionException
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
-
$offset
: mixed
-
rewind()
public
rewind() : void
valid()
public
valid() : bool