| 1 | <?php |
||
| 5 | class MappingArrayIterator extends \ArrayIterator |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @var callable |
||
| 10 | */ |
||
| 11 | private $mapFunction; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param array $items |
||
| 15 | * @param callable $mapFunction |
||
| 16 | */ |
||
| 17 | public function __construct(array $items, callable $mapFunction) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return mixed |
||
| 26 | */ |
||
| 27 | public function current() |
||
| 31 | } |
||
| 32 |