class DepthRangeFilterIterator extends FilterIterator
DepthRangeFilterIterator limits the directory depth.
__construct(RecursiveIteratorIterator $iterator, int $minDepth = 0, int $maxDepth = PHP_INT_MAX) | ||
bool | accept() Filters the iterator values. |
RecursiveIteratorIterator | $iterator | The Iterator to filter |
int | $minDepth | The min depth |
int | $maxDepth | The max depth |
Filters the iterator values.
bool | true if the value should be kept, false otherwise |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Finder/Iterator/DepthRangeFilterIterator.html