Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | final class MapIterableAggregate implements IteratorAggregate |
||
24 | { |
||
25 | /** |
||
26 | * @var Closure(T, TKey, iterable<TKey, T>): W |
||
27 | */ |
||
28 | private Closure $closure; |
||
29 | |||
30 | /** |
||
31 | * @var iterable<TKey, T> |
||
32 | */ |
||
33 | private iterable $iterable; |
||
34 | |||
35 | /** |
||
36 | * @param iterable<TKey, T> $iterable |
||
37 | * @param (Closure(T, TKey, iterable<TKey, T>): W) $closure |
||
|
|||
38 | */ |
||
39 | 1 | public function __construct(iterable $iterable, Closure $closure) |
|
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return Generator<TKey, W> |
||
47 | */ |
||
48 | 1 | public function getIterator(): Generator |
|
55 |