| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Shift extends ShiftIterator implements GeneratorInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * {@inheritdoc} |
||
| 14 | */ |
||
| 15 | public function generator(): \Generator |
||
| 16 | { |
||
| 17 | while (true) { |
||
| 18 | $this->next(); |
||
| 19 | |||
| 20 | yield $this->current(); |
||
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | public function toArray(): array |
||
| 30 | } |
||
| 31 | } |
||
| 32 |