Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | final class ReduceIterableAggregate implements IteratorAggregate |
||
24 | { |
||
25 | /** |
||
26 | * @param iterable<TKey, T> $iterable |
||
27 | * @param (Closure(W, T, TKey, iterable<TKey, T>): W) $closure |
||
|
|||
28 | * @param W $initial |
||
29 | */ |
||
30 | 2 | public function __construct(private iterable $iterable, private Closure $closure, private mixed $initial) |
|
32 | 2 | } |
|
33 | |||
34 | /** |
||
35 | * @return Generator<int, W> |
||
36 | */ |
||
37 | 2 | public function getIterator(): Generator |
|
48 |