Documentation

CustomFilterIterator extends FilterIterator
in package

CustomFilterIterator filters files by applying anonymous functions.

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

Tags
author

Fabien Potencier fabien@symfony.com

extends

\FilterIterator<string, \SplFileInfo>

Table of Contents

Properties

$filters  : array<string|int, mixed>

Methods

__construct()  : mixed
accept()  : bool
Filters the iterator values.

Properties

Methods

__construct()

public __construct(Iterator<string, SplFileInfo$iterator, array<string|int, callable> $filters) : mixed
Parameters
$iterator : Iterator<string, SplFileInfo>

The Iterator to filter

$filters : array<string|int, callable>

An array of PHP callbacks

Tags
throws
InvalidArgumentException

        
On this page

Search results