| 1 | <?php |
||
| 7 | class MappingArrayIterator extends \ArrayIterator |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @var callable |
||
| 12 | */ |
||
| 13 | private $mapFunction; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param array $items |
||
| 17 | * @param callable $mapFunction |
||
| 18 | */ |
||
| 19 | public function __construct(array $items, callable $mapFunction) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | public function current() |
||
| 33 | } |
||
| 34 |