Class Symfony\Component\Finder\Iterator\SizeRangeFilterIterator

InheritanceSymfony\Component\Finder\Iterator\SizeRangeFilterIterator » Symfony\Component\Finder\Iterator\FilterIterator » FilterIterator

SizeRangeFilterIterator filters out files that are not in the given size range.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructor. Symfony\Component\Finder\Iterator\SizeRangeFilterIterator
accept() Filters the iterator values. Symfony\Component\Finder\Iterator\SizeRangeFilterIterator
rewind() This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases. Symfony\Component\Finder\Iterator\FilterIterator

Method Details

__construct() public method

Constructor.

public void __construct ( Iterator $iterator, array $comparators )
$iterator Iterator

The Iterator to filter

$comparators Symfony\Component\Finder\Comparator\NumberComparator[]

An array of NumberComparator instances

accept() public method

Filters the iterator values.

public bool accept ( )
return bool

True if the value should be kept, false otherwise