Total Complexity | 6 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class AvailableMigrationsList extends AvailableMigrations |
||
11 | { |
||
12 | 8 | public function getFirst(int $offset = 0) : AvailableMigration |
|
13 | { |
||
14 | 8 | if (! isset($this->items[$offset])) { |
|
15 | 3 | throw NoMigrationsFoundWithCriteria::new('first' . ($offset > 0 ? '+' . $offset : '')); |
|
16 | } |
||
17 | |||
18 | 5 | return $this->items[$offset]; |
|
19 | } |
||
20 | |||
21 | 13 | public function getLast(int $offset = 0) : AvailableMigration |
|
29 | } |
||
30 | } |
||
31 |