Class Symfony\Component\Finder\Iterator\SortableIterator

InheritanceSymfony\Component\Finder\Iterator\SortableIterator
ImplementsIteratorAggregate

SortableIterator applies a sort on a given Iterator.

Method Details

__construct() public method

Constructor.

public void __construct ( Traversable $iterator, $sort )
$iterator Traversable

The Iterator to filter

$sort int|callable

The sort type (SORT_BY_NAME, SORT_BY_TYPE, or a PHP callback)

throws InvalidArgumentException
getIterator() public method

public void getIterator ( )