| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class FactoriesLoader extends BaseFileLoader |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Load the files to load and register them |
||
| 9 | * |
||
| 10 | * @param string $module |
||
| 11 | * @return void |
||
| 12 | */ |
||
| 13 | public function loadFiles(string $module): void |
||
| 17 | } |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Retrieve the path where the files to load should be at |
||
| 22 | * |
||
| 23 | * @param string $module |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public function getFilesPath(string $module): string |
||
| 27 | { |
||
| 28 | return $this->repo->getModulePath($module) . "/database/factories"; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Retrieve the namespace to be used when registering the files |
||
| 33 | * |
||
| 34 | * @param string $module |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getNamespace(string $module): string |
||
| 41 | } |
||
| 42 | |||
| 44 |