\Guzzle\IteratorFilterIterator

Filters values using a callback

Used when PHP 5.4's \CallbackFilterIterator is not available

Summary

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

Properties

$callback

$callback : mixed

Type

mixed — Callback used for filtering

Methods

__construct()

__construct(\Iterator  $iterator, array|\Closure  $callback) 

Parameters

\Iterator $iterator

Traversable iterator

array|\Closure $callback

Callback used for filtering. Return true to keep or false to filter.

Throws

\Guzzle\Common\Exception\InvalidArgumentException

if the callback if not callable

accept()

accept()