Collection
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 = [])
at line 21
fromArray($items)
at line 27
toArray()
at line 32
push($item)
at line 38
pop($item)
at line 44
unshift($item)
at line 50
shift($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.
at line 105
Collection
toCompat()
Return this collection as a CEO Compat Collection