| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | 6 | class Combinations extends CombinationsIterator implements GeneratorInterface |
|
| 20 | { |
||
| 21 | 6 | /** |
|
| 22 | * {@inheritdoc} |
||
| 23 | */ |
||
| 24 | public function generator() |
||
| 25 | { |
||
| 26 | return $this->get($this->getDataset(), $this->getLength()); |
||
| 27 | 4 | } |
|
| 28 | |||
| 29 | 4 | /** |
|
| 30 | * The generator. |
||
| 31 | 4 | * |
|
| 32 | 4 | * @param array<int, mixed> $dataset |
|
| 33 | * The dataset |
||
| 34 | * @param int $length |
||
| 35 | 4 | * The length |
|
| 36 | * |
||
| 37 | * @return Generator<array> |
||
| 38 | */ |
||
| 39 | protected function get(array $dataset, $length) |
||
| 56 | 6 | } |
|
| 57 | 6 | } |
|
| 61 |