Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
23 | final class ReductionIterableAggregate 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) |
|
31 | { |
||
32 | 2 | } |
|
33 | |||
34 | /** |
||
35 | * @return Generator<TKey|int, W> |
||
36 | */ |
||
37 | 2 | public function getIterator(): Generator |
|
45 | } |
||
46 | } |
||
48 |