| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | final class InfiniteIteratorAggregate implements IteratorAggregate |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var CachingIteratorAggregate<TKey, T> |
||
| 27 | */ |
||
| 28 | private CachingIteratorAggregate $iterator; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param Iterator<TKey, T> $iterator |
||
| 32 | */ |
||
| 33 | 1 | public function __construct(Iterator $iterator) |
|
| 36 | 1 | } |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @return Generator<TKey, T> |
||
| 40 | */ |
||
| 41 | 1 | public function getIterator(): Traversable |
|
| 48 |