1 | <?php |
||
8 | class ModelMakeCommand extends LaravelMakeModelCommand |
||
9 | { |
||
10 | /** |
||
11 | * The console command name. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $name = 'make:rethink-model'; |
||
16 | |||
17 | /** |
||
18 | * The console command description. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $description = 'Create a new Rethinkdb model class'; |
||
23 | |||
24 | /** |
||
25 | * The type of class being generated. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $type = 'Model'; |
||
30 | |||
31 | /** |
||
32 | * Execute the console command. |
||
33 | * |
||
34 | * @return void |
||
35 | */ |
||
36 | public function fire() |
||
46 | |||
47 | /** |
||
48 | * Get the stub file for the generator. |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | protected function getStub() |
||
56 | |||
57 | /** |
||
58 | * Get the default namespace for the class. |
||
59 | * |
||
60 | * @param string $rootNamespace |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | protected function getDefaultNamespace($rootNamespace) |
||
68 | |||
69 | /** |
||
70 | * Get the console command options. |
||
71 | * |
||
72 | * @return array |
||
73 | */ |
||
74 | protected function getOptions() |
||
80 | } |
||
81 |
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.