TokenCollection
implements
IteratorAggregate, ArrayAccess, Countable
-
implements
-
Table of Contents
Interfaces
- IteratorAggregate
- ArrayAccess
- Countable
Properties
-
$tokens
: array<string|int, Token>
Methods
-
addToken()
: void
-
count()
: int
-
getIterator()
: Iterator
-
offsetExists()
: bool
-
offsetGet()
: Token
-
offsetSet()
: void
-
offsetUnset()
: void
$tokens
private
array<string|int, Token>
$tokens
= []
addToken()
public
addToken(Token $token) : void
Parameters
-
$token
: Token
-
count()
public
count() : int
getIterator()
public
getIterator() : Iterator
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
-