Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class FactoryMakeCommand extends GeneratorCommand |
||
11 | { |
||
12 | use ModuleCommands; |
||
13 | |||
14 | /** @var string */ |
||
15 | protected $argumentName = 'name'; |
||
16 | |||
17 | /** @var string */ |
||
18 | protected $signature = 'module:make-factory |
||
19 | {name : The name of the factory} |
||
20 | {module? : The name of the module to create the factory for} |
||
21 | {--model= : The name of the model the factory is for}'; |
||
22 | |||
23 | /** @var string */ |
||
24 | protected $description = 'Create a new model factory for the specified module.'; |
||
25 | |||
26 | protected function getDestinationFilePath(): string |
||
33 | } |
||
34 | |||
35 | protected function getTemplateContents(): string |
||
40 | } |
||
41 | |||
42 | private function getModelName(): string |
||
53 |