Total Complexity | 6 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
21 | final class InterruptableIterableIteratorAggregate implements IteratorAggregate |
||
22 | { |
||
23 | public const BREAK = 'break'; |
||
24 | |||
25 | /** |
||
26 | * @param iterable<TKey, T> $iterable |
||
27 | */ |
||
28 | 2 | public function __construct(private iterable $iterable) |
|
30 | 2 | } |
|
31 | |||
32 | /** |
||
33 | * @return Generator<Generator<TKey, T>, array{0: TKey, 1: T}> |
||
34 | */ |
||
35 | 2 | public function getIterator(): Generator |
|
41 | } |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return Generator<TKey, T> |
||
46 | */ |
||
47 | 2 | private function getGenerator(): Generator |
|
59 |