| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | 4 | public function registerMigration($class) |
|
| 14 | { |
||
| 15 | 4 | $reflection = new ReflectionClass($class); |
|
| 16 | 4 | if (!$reflection->implementsInterface(Contracts\Migration::class)) { |
|
| 17 | 1 | throw new InvalidArgumentException('Register only Migration classes'); |
|
| 18 | } |
||
| 19 | 3 | $this->migrations[] = $class; |
|
| 20 | 3 | } |
|
| 21 | |||
| 44 |