__construct()
count()
current()
key()
next()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
previous()
rewind()
seek()
serialize()
unserialize()
valid()
$count
$current
$key
$store
Iterator class responsible for navigating through an array forwards and backwards.
| category | phpDocumentor |
|---|---|
| package | Reflection |
| author | Mike van Riel |
| license | MIT |
| link | http://phpdoc.org |
__construct(array $data)
count() : int
intcurrent() : mixed
mixedkey() : int | null
intnull
next() : false | mixed | null
falsemixednull
offsetExists(integer $offset) : bool
integerthe index to check.
booloffsetGet(string $offset) : mixed | null
stringThe index to retrieve.
mixednull
offsetSet(integer $offset, \phpDocumentor_Reflection_Token $value) : void
integerOffset to overwrite.
\BadMethodCallException |
when the user tries to add an item. |
|---|
offsetUnset(int $offset) : void
intOffset to remove.
\BadMethodCallException |
if the user invokes this method. |
|---|
previous() : false | mixed | null
falsemixednull
rewind() : mixed | null
mixednull
seek(int | string $key) : mixed
NOTE: this function is used A LOT during the reflection process. This should be as high-performance as possible and ways should be devised to not use it.
intstringthe index to move to.
mixedserialize() : string
stringunserialize(string $serialized) : void
stringString to unserialize.
valid() : boolean
boolean$count : int
$current : mixed
$key : int
$store : \mixed[]