1 | <?php namespace Wn\Generators\Commands; |
||
4 | class PivotSeederCommand extends BaseCommand { |
||
5 | |||
6 | protected $signature = 'wn:pivot-seeder |
||
7 | {model1 : Name of the first model or table} |
||
8 | {model2 : Name of the second model or table} |
||
9 | {--count=10 : number of elements to add in database.} |
||
10 | {--force= : override the existing files} |
||
11 | '; |
||
12 | |||
13 | protected $description = 'Generates seeder for pivot table'; |
||
14 | |||
15 | public function handle() |
||
35 | |||
36 | protected function getResources() |
||
46 | |||
47 | protected function getSeederName($resources) { |
||
53 | |||
54 | protected function getTableNames($resources) { |
||
57 | |||
58 | } |
||
59 |
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.