__construct()
__construct(\Traversable $iterator, array|\Closure $callback)
Parameters
\Traversable |
$iterator |
Traversable iterator |
array|\Closure |
$callback |
Callback used for iterating |
Throws
- \Guzzle\Common\Exception\InvalidArgumentException
if the callback if not callable