Helpers
Table of Contents
Interfaces
- CollectionInterface
- Contract for a keyed collection of items. The reference implementation is
{@see CollectionTrait}; see {@see ExCollectionInterface} for the extended
(array-helper) surface.
- ExCollectionInterface
- The extended collection contract: {@see CollectionInterface} plus the
array-style helpers (`shift`, `search`, `splice`, `slice`, `sort`, `diff`,
`intersect`, `walk`, `reduce`, `unique`, …). Implemented by
{@see CollectionTrait}.
Classes
- Collection
- Collection of items. Inspired by Laravel Collections.
Traits
- CollectionTrait
- Provides the shared implementation for {@see CollectionInterface} /
{@see ExCollectionInterface}. The consuming class must declare the three
properties below.