IndexCollection extends Collection
AbstractYes
Table of Contents
Methods
- __construct() : mixed
- add() : $this
- addItems() : $this
- count() : int
- fetch() : mixed
- getCollection() : array<string|int, mixed>
- getIterator() : ArrayIterator
- remove() : $this
- rewindGenerator() : void
Methods
__construct()
public
__construct([array<string|int, mixed> $collection = [] ]) : mixed
Parameters
- $collection : array<string|int, mixed> = []
add()
public
add(mixed $item[, mixed $index = null ]) : $this
Parameters
- $item : mixed
- $index : mixed = null
Tags
Return values
$thisaddItems()
public
addItems(array<string|int, mixed> $items) : $this
Parameters
- $items : array<string|int, mixed>
Return values
$thiscount()
public
count() : int
Return values
intfetch()
public
fetch() : mixed
Tags
getCollection()
public
getCollection() : array<string|int, mixed>
Return values
array<string|int, mixed>getIterator()
public
getIterator() : ArrayIterator
Return values
ArrayIteratorremove()
public
remove(mixed $key) : $this
Parameters
- $key : mixed
Return values
$thisrewindGenerator()
public
rewindGenerator() : void