SortedMiddleware::mode()

array mode(null $key = null) Get the mode of a given key. Parameters null $key Return Value array

SortedMiddleware::offsetExists()

bool offsetExists(mixed $key) Determine if an item exists at an offset. Parameters mixed $key Return Value bool

SortedMiddleware::median()

mixed|null median(null $key = null) Get the median of a given key. Parameters null $key Return Value mixed|null

SortedMiddleware::max()

mixed max(callable|string|null $callback = null) Get the max value of a given key. Parameters callable|string|null $callback Return Value mixed

SortedMiddleware::map()

Collection map(callable $callback) Run a map over each of the items. Parameters callable $callback Return Value Collection

SortedMiddleware::mapWithKeys()

Collection mapWithKeys(callable $callback) Run an associative map over each of the items. The callback should return an associative array with a single key/value pair. Parameters callable $callback Return Value Collection

SortedMiddleware::keys()

Collection keys() Get the keys of the collection items. Return Value Collection

SortedMiddleware::macro()

static void macro(string $name, callable $macro) Register a custom macro. Parameters string $name callable $macro Return Value void

SortedMiddleware::last()

mixed last(callable $callback = null, mixed $default = null) Get the last item from the collection. Parameters callable $callback mixed $default Return Value mixed

SortedMiddleware::make()

static Collection make(mixed $items = array()) Create a new collection instance if the value isn't one already. Parameters mixed $items Return Value Collection