Documentation

SizeRangeFilterIterator extends FilterIterator
in package

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

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

$comparators  : mixed
__construct()  : mixed
accept()  : bool
Filters the iterator values.

Properties

Methods

__construct()

public __construct(Iterator $iterator, array<string|int, NumberComparator$comparators) : mixed
Parameters
$iterator : Iterator

The Iterator to filter

$comparators : array<string|int, NumberComparator>

An array of NumberComparator instances

Return values
mixed

accept()

Filters the iterator values.

public accept() : bool
Return values
bool

true if the value should be kept, false otherwise

Search results