Class Guzzle\Iterator\MapIterator

InheritanceGuzzle\Iterator\MapIterator » IteratorIterator

Maps values before yielding

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$callback mixed Callback Guzzle\Iterator\MapIterator

Property Details

$callback protected property

Callback

protected mixed $callback null

Method Details

__construct() public method

public void __construct ( Traversable $iterator, $callback )
$iterator Traversable

Traversable iterator

$callback array|Closure

Callback used for iterating

throws Guzzle\Common\Exception\InvalidArgumentException

if the callback if not callable

current() public method

public void current ( )