DateRangeFilterIterator
extends FilterIterator
in package
DateRangeFilterIterator filters out files that are not in the given date range (last modified dates).
Tags
Table of Contents
Properties
- $comparators : mixed
Methods
- __construct() : mixed
- accept() : bool
- Filters the iterator values.
Properties
$comparators
private
mixed
$comparators
= []
Methods
__construct()
public
__construct(Iterator $iterator, array<string|int, DateComparator> $comparators) : mixed
Parameters
- $iterator : Iterator
-
The Iterator to filter
- $comparators : array<string|int, DateComparator>
-
An array of DateComparator instances
accept()
Filters the iterator values.
public
accept() : bool
Attributes
Return values
bool —true if the value should be kept, false otherwise