| Total Complexity | 4 |
| Total Lines | 67 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class FactoryMakeCommand extends AbstractGeneratorCommand |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The console command name. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $name = 'larapi:make:factory'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The console command description. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $description = 'Create a new model factory for the specified module.'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The name of the generated resource. |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $generatorName = 'factory'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * The stub name. |
||
| 33 | * |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | protected $stub = 'factory.stub'; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * The file path. |
||
| 40 | * |
||
| 41 | * @var string |
||
| 42 | */ |
||
| 43 | protected $filePath = '/Database/factories'; |
||
| 44 | |||
| 45 | 1 | protected function getModelName(): string |
|
| 49 | 1 | }); |
|
| 50 | } |
||
| 51 | |||
| 52 | 1 | protected function getClassName() :string |
|
| 55 | } |
||
| 56 | |||
| 57 | 1 | protected function stubOptions(): array |
|
| 63 | ]; |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Get the console command options. |
||
| 68 | * |
||
| 69 | * @return array |
||
| 70 | */ |
||
| 71 | 102 | protected function getOptions() |
|
| 78 |