1 | <?php |
||
12 | class CommandMakeCommand extends GeneratorCommand |
||
13 | { |
||
14 | use ModuleCommandTrait; |
||
15 | |||
16 | /** |
||
17 | * The name of argument name. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $argumentName = 'name'; |
||
22 | |||
23 | /** |
||
24 | * The console command name. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $name = 'module:make-command'; |
||
29 | |||
30 | /** |
||
31 | * The console command description. |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $description = 'Generate new Artisan command for the specified module.'; |
||
36 | |||
37 | public function getDefaultNamespace() : string |
||
41 | |||
42 | /** |
||
43 | * Get the console command arguments. |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | protected function getArguments() |
||
54 | |||
55 | /** |
||
56 | * Get the console command options. |
||
57 | * |
||
58 | * @return array |
||
59 | */ |
||
60 | protected function getOptions() |
||
66 | |||
67 | /** |
||
68 | * @return mixed |
||
69 | */ |
||
70 | protected function getTemplateContents() |
||
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | private function getCommandName() |
||
88 | |||
89 | /** |
||
90 | * @return mixed |
||
91 | */ |
||
92 | protected function getDestinationFilePath() |
||
100 | |||
101 | /** |
||
102 | * @return string |
||
103 | */ |
||
104 | private function getFileName() |
||
108 | } |
||
109 |