1 | <?php namespace Wn\Generators\Commands; |
||
4 | class PivotTableCommand extends BaseCommand { |
||
5 | |||
6 | protected $signature = 'wn:pivot-table |
||
7 | {model1 : Name of the first model or table} |
||
8 | {model2 : Name of the second model or table} |
||
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 pivot table'; |
||
15 | |||
16 | protected $tables; |
||
17 | |||
18 | public function handle() |
||
32 | |||
33 | protected function parseTables() |
||
41 | |||
42 | protected function schema() |
||
48 | |||
49 | protected function keys() |
||
55 | |||
56 | } |
||
57 |
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.