| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | final class MultipleIterableAggregate implements IteratorAggregate |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var (0|1|2|3) |
||
|
|
|||
| 27 | */ |
||
| 28 | private int $flags; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var iterable<mixed, iterable<TKey, T>> |
||
| 32 | */ |
||
| 33 | private iterable $iterables; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param iterable<mixed, iterable<TKey, T>> $iterables |
||
| 37 | * @param (0|1|2|3) $flags |
||
| 38 | */ |
||
| 39 | 3 | public function __construct(iterable $iterables, int $flags = MultipleIterator::MIT_NEED_ALL | MultipleIterator::MIT_KEYS_NUMERIC) |
|
| 43 | 3 | } |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return Generator<int, array<TKey, T>> |
||
| 47 | */ |
||
| 48 | 3 | public function getIterator(): Traversable |
|
| 61 |