| Conditions | 4 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function get(): array |
||
| 34 | { |
||
| 35 | if (($this->cursorVariants !== null) && $this->cursorVariants->valid()) { |
||
| 36 | return $this->cursorVariants->current(); |
||
| 37 | } |
||
| 38 | |||
| 39 | $family = $this->cursor->current(); |
||
| 40 | $this->cursor->next(); |
||
| 41 | |||
| 42 | $this->cursorVariants = $this->akeneoPimService->getFamilyVariants($family[static::KEY_CODE]); |
||
| 43 | |||
| 44 | return $this->cursorVariants->valid() ? $this->cursorVariants->current() : []; |
||
| 45 | } |
||
| 59 |