class Collection implements IteratorAggregate, Countable, JsonSerializable

Methods

__construct($items = [])

No description

fromArray($items)

No description

toArray()

No description

push($item)

No description

pop($item)

No description

unshift($item)

No description

shift($item)

No description

length()

No description

isEmpty()

No description

getIterator()

No description

count()

No description

jsonSerialize()

No description

array
map(callable $callback)

Apply a callback to each member of the resultset. Returning null from the callback will exclude the item from the resultset.

Collection
toCompat()

Return this collection as a CEO Compat Collection

Details

at line 16
__construct($items = [])

Parameters

$items

at line 21
fromArray($items)

Parameters

$items

at line 27
toArray()

at line 32
push($item)

Parameters

$item

at line 38
pop($item)

Parameters

$item

at line 44
unshift($item)

Parameters

$item

at line 50
shift($item)

Parameters

$item

at line 56
length()

at line 61
isEmpty()

at line 66
getIterator()

at line 71
count()

at line 76
jsonSerialize()

at line 87
array map(callable $callback)

Apply a callback to each member of the resultset. Returning null from the callback will exclude the item from the resultset.

Parameters

callable $callback

Return Value

array

at line 105
Collection toCompat()

Return this collection as a CEO Compat Collection

Return Value

Collection