Immutable implements Iterator, Countable
AbstractYes
Tags
Table of Contents
Interfaces
- Iterator
- Countable
Methods
- __construct() : mixed
- count() : int
- createItem() : mixed
- current() : Base
- ensureItem() : mixed
- fromArray() : static
- getFirst() : mixed
- getNext() : mixed
- key() : int
- next() : void
- rewind() : mixed
- valid() : bool
Methods
__construct()
public
__construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $data : array<string|int, mixed> = []
count()
public
count() : int
Tags
Return values
intcreateItem()
public
abstract createItem(array<string|int, mixed> $array) : mixed
Parameters
- $array : array<string|int, mixed>
current()
public
current() : Base
Tags
Return values
BaseensureItem()
public
ensureItem(Base $item[, mixed $throwException = true ]) : mixed
Parameters
- $item : Base
- $throwException : mixed = true
fromArray()
public
static fromArray(array<string|int, mixed> $array) : static
Parameters
- $array : array<string|int, mixed>
Tags
Return values
staticgetFirst()
public
getFirst(mixed &$position) : mixed
Parameters
- $position : mixed
getNext()
public
getNext(mixed &$position) : mixed
Parameters
- $position : mixed
key()
public
key() : int
Tags
Return values
intnext()
public
next() : void
Tags
rewind()
public
rewind() : mixed
Tags
valid()
public
valid() : bool