class CustomFilterIterator extends FilterIterator
CustomFilterIterator filters files by applying anonymous functions.
The anonymous function receives a \SplFileInfo and must return false to remove files.
__construct(Iterator $iterator, array $filters) | ||
bool | accept() Filters the iterator values. |
Iterator | $iterator | The Iterator to filter |
array | $filters | An array of PHP callbacks |
InvalidArgumentException |
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/CustomFilterIterator.html