\rex_sortable_iterator

Sortable iterator.

Summary

Methods
Properties
Constants
__construct()
getIterator()
No public properties found
VALUES
KEYS
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

VALUES

VALUES = 1

Methods

__construct()

__construct(\Traversable  $iterator, int|callable  $sort = self::VALUES) : mixed

Constructor.

Parameters

\Traversable $iterator

Inner iterator

int|callable $sort

Sort mode, possible values are rex_sortable_iterator::VALUES (default), rex_sortable_iterator::KEYS or a callable

Returns

mixed —

getIterator()

getIterator() : mixed

{@inheritdoc}

Returns

mixed —