\Symfony\Component\Finder\IteratorCustomFilterIterator

CustomFilterIterator filters files by applying anonymous functions.

The anonymous function receives a \SplFileInfo and must return false to remove files.

Summary

Methods
Properties
Constants
__construct()
accept()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$filters
N/A

Properties

$filters

$filters : 

Type

Methods

__construct()

__construct(\Iterator  $iterator, array<mixed,callable>  $filters) 

Parameters

\Iterator $iterator

The Iterator to filter

array<mixed,callable> $filters

An array of PHP callbacks

Throws

\InvalidArgumentException

accept()

accept() : boolean

Filters the iterator values.

Returns

boolean —

true if the value should be kept, false otherwise