1 | <?php |
||
10 | class GenerateEventCommand extends Command |
||
11 | { |
||
12 | use ComponentCommandTrait; |
||
13 | |||
14 | protected $argumentName = 'name'; |
||
15 | |||
16 | /** |
||
17 | * The console command name. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $name = 'component:make-event'; |
||
22 | |||
23 | /** |
||
24 | * The console command description. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $description = 'Generate a new Event Class for the specified component'; |
||
29 | |||
30 | /** |
||
31 | * Get the console command arguments. |
||
32 | * |
||
33 | * @return array |
||
34 | */ |
||
35 | protected function getArguments() |
||
42 | |||
43 | /** |
||
44 | * Get the console command options. |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | protected function getOptions() |
||
54 | |||
55 | public function getTemplateContents() |
||
65 | |||
66 | public function getDestinationFilePath() |
||
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | protected function getFileName() |
||
81 | } |
||
82 |
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.