__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