Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | final class ChunkIterableAggregate implements IteratorAggregate |
||
24 | { |
||
25 | /** |
||
26 | * @param iterable<TKey, T> $iterable |
||
27 | */ |
||
28 | 1 | public function __construct(private iterable $iterable, private int $chunkSize) |
|
29 | { |
||
30 | 1 | } |
|
31 | |||
32 | /** |
||
33 | * @return Generator<int, list<T>> |
||
34 | */ |
||
35 | 1 | public function getIterator(): Generator |
|
52 | } |
||
53 | } |
||
54 |