Map extends Collection
AbstractYes
Table of Contents
Methods
- __construct() : mixed
- add() : $this
- addItems() : Collection
- count() : int
- fetch() : mixed
- getCollection() : array<string|int, mixed>
- getItem() : mixed
- getItemsByKeys() : $this
- getIterator() : ArrayIterator
- has() : bool
- remove() : $this
- rewindGenerator() : void
- updateItem() : $this
Methods
__construct()
public
__construct([array<string|int, mixed> $collection = [] ]) : mixed
Parameters
- $collection : array<string|int, mixed> = []
add()
public
add(mixed $item[, mixed $key = null ]) : $this
Parameters
- $item : mixed
- $key : mixed = null
Tags
Return values
$thisaddItems()
public
addItems(array<string|int, mixed> $items) : Collection
Parameters
- $items : array<string|int, mixed>
Return values
Collectioncount()
public
count() : int
Return values
intfetch()
public
fetch() : mixed
Tags
getCollection()
public
getCollection() : array<string|int, mixed>
Return values
array<string|int, mixed>getItem()
public
getItem(mixed $key) : mixed
Parameters
- $key : mixed
getItemsByKeys()
public
getItemsByKeys(array<string|int, mixed> $keys) : $this
Parameters
- $keys : array<string|int, mixed>
Return values
$thisgetIterator()
public
getIterator() : ArrayIterator
Return values
ArrayIteratorhas()
public
has(mixed $key) : bool
Parameters
- $key : mixed
Return values
boolremove()
public
remove(mixed $key) : $this
Parameters
- $key : mixed
Return values
$thisrewindGenerator()
public
rewindGenerator() : void
updateItem()
public
updateItem(mixed $item, mixed $key) : $this
Parameters
- $item : mixed
- $key : mixed