class SortableIterator implements IteratorAggregate
SortableIterator applies a sort on a given Iterator.
SORT_BY_NAME | |
SORT_BY_TYPE | |
SORT_BY_ACCESSED_TIME | |
SORT_BY_CHANGED_TIME | |
SORT_BY_MODIFIED_TIME |
__construct(Traversable $iterator, int|callable $sort) | ||
getIterator() |
Traversable | $iterator | The Iterator to filter |
int|callable | $sort | The sort type (SORT_BY_NAME, SORT_BY_TYPE, or a PHP callback) |
InvalidArgumentException |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Finder/Iterator/SortableIterator.html