1 | <?php |
||
11 | class JobMakeCommand extends GeneratorCommand |
||
12 | { |
||
13 | use ModuleCommandTrait; |
||
14 | |||
15 | /** |
||
16 | * The console command name. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $name = 'module:make-job'; |
||
21 | |||
22 | /** |
||
23 | * The console command description. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $description = 'Create a new job class for the specified module'; |
||
28 | |||
29 | protected $argumentName = 'name'; |
||
30 | |||
31 | 4 | public function getDefaultNamespace() : string |
|
35 | |||
36 | /** |
||
37 | * Get the console command arguments. |
||
38 | * |
||
39 | * @return array |
||
40 | */ |
||
41 | 91 | protected function getArguments() |
|
48 | |||
49 | /** |
||
50 | * Get the console command options. |
||
51 | * |
||
52 | * @return array |
||
53 | */ |
||
54 | 91 | protected function getOptions() |
|
60 | |||
61 | /** |
||
62 | * Get template contents. |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | 4 | protected function getTemplateContents() |
|
75 | |||
76 | /** |
||
77 | * Get the destination file path. |
||
78 | * |
||
79 | * @return string |
||
80 | */ |
||
81 | 4 | protected function getDestinationFilePath() |
|
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | 4 | private function getFileName() |
|
97 | |||
98 | /** |
||
99 | * @return string |
||
100 | */ |
||
101 | 4 | protected function getStubName(): string |
|
109 | } |
||
110 |
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.