Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Collection Class Documentation

Pages


Traits

Sequence

PinkCrab\Collection\Traits\Sequence

This provides additional methods, for working with your collection as a sequence of values.

Indexed

PinkCrab\Collection\Traits\Indexed

This provides additional methods for using the collection as a key => value data store. Still uses an array under the hood, so only alphanumerical values can be used as keys.

Has_ArrayAccess

PinkCrab\Collection\Traits\Has_ArrayAccess

Combined with the ArrayAccess interface, this will give full array access to the collection.

Is_Iterable

PinkCrab\Collection\Traits\Is_Iterable

Combined with the Iterable interface, this allow while and foreach loops to be proformed on the collection.