\Ceo\CommonCollection

Summary

Methods
Properties
Constants
__construct()
fromArray()
toArray()
push()
pop()
unshift()
shift()
length()
isEmpty()
getIterator()
count()
jsonSerialize()
map()
toCompat()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$items
N/A

Properties

$items

$items : 

Type

Methods

__construct()

__construct(  $items = array()) 

Parameters

$items

fromArray()

fromArray(  $items) 

Parameters

$items

toArray()

toArray() 

push()

push(  $item) 

Parameters

$item

pop()

pop(  $item) 

Parameters

$item

unshift()

unshift(  $item) 

Parameters

$item

shift()

shift(  $item) 

Parameters

$item

length()

length() 

isEmpty()

isEmpty() 

getIterator()

getIterator() 

count()

count() 

jsonSerialize()

jsonSerialize() 

map()

map(callable  $callback) : array

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

Parameters

callable $callback

Returns

array

toCompat()

toCompat() : \Ceo\Common\Ceo\Compat\Collection

Return this collection as a CEO Compat Collection

Returns

\Ceo\Common\Ceo\Compat\Collection