| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class MigrationsLoader extends BaseFileLoader implements LoadsFiles |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Load the files to load and register them |
||
| 14 | * |
||
| 15 | * @param string $module |
||
| 16 | * @return void |
||
| 17 | */ |
||
| 18 | public function loadFiles(string $module): void |
||
| 22 | } |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Retrieve the path where the files to load should be at |
||
| 27 | * |
||
| 28 | * @param string $module |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function getFilesPath(string $module): string |
||
| 32 | { |
||
| 33 | return $this->repo->getModulePath($module) . "/database/migrations"; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Retrieve the namespace to be used when registering the files |
||
| 38 | * |
||
| 39 | * @param string $module |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getNamespace(string $module): string |
||
| 46 | } |
||
| 47 | |||
| 49 |