| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function askForSnapshotName(): string |
||
| 11 | { |
||
| 12 | $snapShots = app(SnapshotRepository::class)->getAll(); |
||
| 13 | |||
| 14 | $names = $snapShots->map(function (Snapshot $snapshot) { |
||
| 15 | return $snapshot->name; |
||
| 16 | })->values()->toArray(); |
||
| 17 | |||
| 18 | return $this->choice('Which snapshot?', $names, 0); |
||
|
|
|||
| 19 | } |
||
| 21 |