1 | <?php |
||
9 | class GenerateJobCommand extends Command |
||
10 | { |
||
11 | use ComponentCommandTrait; |
||
12 | |||
13 | /** |
||
14 | * The console command name. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $name = 'component:make-job'; |
||
19 | |||
20 | /** |
||
21 | * The console command description. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $description = 'Generate a new Job Class for the specified component'; |
||
26 | |||
27 | protected $argumentName = 'name'; |
||
28 | |||
29 | /** |
||
30 | * Get the console command arguments. |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | protected function getArguments() |
||
41 | |||
42 | /** |
||
43 | * Get template contents. |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | protected function getTemplateContents() |
||
56 | |||
57 | /** |
||
58 | * Get the destination file path. |
||
59 | * |
||
60 | * @return string |
||
61 | */ |
||
62 | protected function getDestinationFilePath() |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | private function getFileName() |
||
78 | |||
79 | /** |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getDefaultNamespace() |
||
86 | } |
||
87 |
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.