1 | <?php |
||
11 | class FactoryMakeCommand extends GeneratorCommand |
||
12 | { |
||
13 | use ModuleCommandTrait; |
||
14 | |||
15 | /** |
||
16 | * The name of argument name. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $argumentName = 'name'; |
||
21 | |||
22 | /** |
||
23 | * The console command name. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $name = 'module:make-factory'; |
||
28 | |||
29 | /** |
||
30 | * The console command description. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $description = 'Create a new model factory for the specified module.'; |
||
35 | |||
36 | /** |
||
37 | * Get the console command arguments. |
||
38 | * |
||
39 | * @return array |
||
40 | */ |
||
41 | protected function getArguments() |
||
48 | |||
49 | /** |
||
50 | * @return mixed |
||
51 | */ |
||
52 | protected function getTemplateContents() |
||
56 | |||
57 | /** |
||
58 | * @return mixed |
||
59 | */ |
||
60 | protected function getDestinationFilePath() |
||
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | private function getFileName() |
||
76 | } |
||
77 |