class SortableIterator implements IteratorAggregate

SortableIterator applies a sort on a given Iterator.

Constants

SORT_BY_NAME

SORT_BY_TYPE

SORT_BY_ACCESSED_TIME

SORT_BY_CHANGED_TIME

SORT_BY_MODIFIED_TIME

Methods

__construct(Traversable $iterator, int|callable $sort)

No description

getIterator()

No description

Details

at line 36
__construct(Traversable $iterator, int|callable $sort)

Parameters

Traversable $iterator The Iterator to filter
int|callable $sort The sort type (SORT_BY_NAME, SORT_BY_TYPE, or a PHP callback)

Exceptions

InvalidArgumentException

at line 73
getIterator()