Total Complexity | 6 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class Product extends ProductIterator implements GeneratorInterface |
||
14 | { |
||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | public function generator(): Generator |
||
19 | { |
||
20 | return $this->get($this->getDataset()); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Get the generator. |
||
25 | * |
||
26 | * @param array<int, mixed> $data |
||
27 | * The dataset |
||
28 | * |
||
29 | * @return Generator<array> |
||
30 | */ |
||
31 | protected function get(array $data): Generator |
||
43 | } |
||
44 | } |
||
46 |