Open Journal Systems  3.3.0
Guzzle\Iterator\MapIterator Class Reference
Inheritance diagram for Guzzle\Iterator\MapIterator:

Public Member Functions

 __construct (\Traversable $iterator, $callback)
 
 current ()
 

Protected Attributes

 $callback
 

Detailed Description

Maps values before yielding

Definition at line 10 of file MapIterator.php.

Constructor & Destructor Documentation

◆ __construct()

Guzzle\Iterator\MapIterator::__construct ( \Traversable  $iterator,
  $callback 
)
Parameters
\Traversable$iteratorTraversable iterator
array | \Closure$callbackCallback used for iterating
Exceptions
InvalidArgumentExceptionif the callback if not callable

Definition at line 24 of file MapIterator.php.

References Guzzle\Iterator\MapIterator\$callback.

Member Function Documentation

◆ current()

Guzzle\Iterator\MapIterator::current ( )

Definition at line 33 of file MapIterator.php.

Field Documentation

◆ $callback

mixed Guzzle\Iterator\MapIterator::$callback
protected

Callback

Definition at line 16 of file MapIterator.php.

Referenced by Guzzle\Iterator\MapIterator\__construct().


The documentation for this class was generated from the following file: