\Symfony\Component\Finder\IteratorSortableIterator

SortableIterator applies a sort on a given Iterator.

Summary

Methods
Properties
Constants
__construct()
getIterator()
No public properties found
SORT_BY_NAME
SORT_BY_TYPE
SORT_BY_ACCESSED_TIME
SORT_BY_CHANGED_TIME
SORT_BY_MODIFIED_TIME
No protected methods found
No protected properties found
N/A
No private methods found
$iterator
$sort
N/A

Constants

SORT_BY_NAME

SORT_BY_NAME = 1

SORT_BY_TYPE

SORT_BY_TYPE = 2

SORT_BY_ACCESSED_TIME

SORT_BY_ACCESSED_TIME = 3

SORT_BY_CHANGED_TIME

SORT_BY_CHANGED_TIME = 4

SORT_BY_MODIFIED_TIME

SORT_BY_MODIFIED_TIME = 5

Properties

$iterator

$iterator : 

Type

$sort

$sort : 

Type

Methods

__construct()

__construct(\Traversable  $iterator, integer|callable  $sort) 

Parameters

\Traversable $iterator

The Iterator to filter

integer|callable $sort

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

Throws

\InvalidArgumentException

getIterator()

getIterator()