| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | final class ClosureIteratorAggregate implements IteratorAggregate |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var callable(mixed ...$parameters): iterable<TKey, T> |
||
| 25 | */ |
||
| 26 | private $callable; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var iterable<int, mixed> |
||
| 30 | */ |
||
| 31 | private iterable $parameters; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param callable(mixed ...$parameters): iterable<TKey, T> $callable |
||
| 35 | * @param iterable<int, mixed> $parameters |
||
| 36 | */ |
||
| 37 | public function __construct(callable $callable, iterable $parameters = []) |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getIterator(): Traversable |
||
| 48 |