| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | final class LimitIterableAggregate implements IteratorAggregate |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @param iterable<TKey, T> $iterable |
||
| 26 | */ |
||
| 27 | 1 | public function __construct(private iterable $iterable, private int $offset = 0, private int $limit = -1) |
|
| 28 | { |
||
| 29 | 1 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @return Generator<TKey, T> |
||
| 33 | */ |
||
| 34 | 1 | public function getIterator(): Generator |
|
| 40 | 1 | ); |
|
| 41 | } |
||
| 43 |