1 | <?php |
||
13 | class ListenerMakeCommand extends GeneratorCommand |
||
14 | { |
||
15 | use ModuleCommandTrait; |
||
16 | |||
17 | protected $argumentName = 'name'; |
||
18 | |||
19 | /** |
||
20 | * The console command name. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $name = 'module:make-listener'; |
||
25 | |||
26 | /** |
||
27 | * The console command description. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $description = 'Create a new event listener class for the specified module'; |
||
32 | |||
33 | /** |
||
34 | * Get the console command arguments. |
||
35 | * |
||
36 | * @return array |
||
37 | */ |
||
38 | 118 | protected function getArguments() |
|
45 | |||
46 | /** |
||
47 | * Get the console command options. |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | 118 | protected function getOptions() |
|
58 | |||
59 | 7 | protected function getTemplateContents() |
|
70 | |||
71 | 7 | public function getDefaultNamespace() : string |
|
75 | |||
76 | 7 | protected function getEventName(Module $module) |
|
82 | |||
83 | 7 | protected function getDestinationFilePath() |
|
91 | |||
92 | /** |
||
93 | * @return string |
||
94 | */ |
||
95 | 7 | protected function getFileName() |
|
99 | |||
100 | /** |
||
101 | * @return string |
||
102 | */ |
||
103 | 7 | protected function getStubName(): string |
|
119 | } |
||
120 |