1 | <?php |
||
11 | class GenerateEventCommand extends GeneratorCommand |
||
12 | { |
||
13 | use ModuleCommandTrait; |
||
14 | |||
15 | protected $argumentName = 'name'; |
||
16 | |||
17 | /** |
||
18 | * The console command name. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $name = 'module:make-event'; |
||
23 | |||
24 | /** |
||
25 | * The console command description. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $description = 'Generate a new Event Class for the specified module'; |
||
30 | |||
31 | /** |
||
32 | * Get the console command arguments. |
||
33 | * |
||
34 | * @return array |
||
35 | */ |
||
36 | 25 | protected function getArguments() |
|
44 | |||
45 | /** |
||
46 | * Get the console command options. |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | 25 | protected function getOptions() |
|
56 | |||
57 | 2 | public function getTemplateContents() |
|
67 | |||
68 | 2 | public function getDestinationFilePath() |
|
77 | |||
78 | /** |
||
79 | * @return string |
||
80 | */ |
||
81 | 2 | protected function getFileName() |
|
85 | |||
86 | |||
87 | } |
||
88 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.