1 | <?php namespace Wn\Generators\Commands; |
||
4 | class MorphTableCommand extends BaseCommand { |
||
5 | |||
6 | protected $signature = 'wn:morph-table |
||
7 | {model : Name of the persistant model or table} |
||
8 | {morphable : Name of the morphable identifier} |
||
9 | {--add= : specifies additional columns like timestamps, softDeletes, rememberToken and nullableTimestamps.} |
||
10 | {--file= : name of the migration file (to use only for testing purpose).} |
||
11 | {--force= : override the existing files} |
||
12 | '; |
||
13 | |||
14 | protected $description = 'Generates creation migration for a morphable pivot table'; |
||
15 | |||
16 | protected $fields; |
||
17 | |||
18 | public function handle() |
||
32 | |||
33 | protected function parseFields() |
||
40 | |||
41 | protected function schema() |
||
47 | |||
48 | protected function keys() |
||
53 | |||
54 | } |
||
55 |
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.