| 1 | <?php |
||
| 30 | class MapIterator extends IteratorIterator |
||
| 31 | { |
||
| 32 | /** |
||
| 33 | * The callback to apply on all InnerIterator current value. |
||
| 34 | * |
||
| 35 | * @var callable |
||
| 36 | */ |
||
| 37 | protected $callable; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * New instance. |
||
| 41 | */ |
||
| 42 | public function __construct(Traversable $iterator, callable $callable) |
||
| 47 | 14 | ||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | public function current() |
||
| 55 | } |
||
| 56 |