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