Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class NGrams extends NGramsIterator implements GeneratorInterface |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritdoc} |
||
15 | */ |
||
16 | public function generator(): Generator |
||
17 | { |
||
18 | return $this->get(); |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | public function toArray(): array |
||
25 | { |
||
26 | return []; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Get the generator. |
||
31 | * |
||
32 | * @return Generator<int> |
||
33 | * The generator |
||
34 | */ |
||
35 | protected function get(): Generator |
||
41 | } |
||
42 | } |
||
43 | } |
||
44 |