Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function getMethods(): array |
||
39 | { |
||
40 | $methods = $this->file1->getMethods(); |
||
41 | $toMergeMethods = $this->file2->getMethods(); |
||
42 | |||
43 | foreach ($toMergeMethods as $name => $toMergeMethod) { |
||
44 | $methods[$name] = isset($methods[$name]) ? $methods[$name]->merge($toMergeMethod) : $toMergeMethod; |
||
45 | } |
||
46 | |||
47 | return $methods; |
||
48 | } |
||
49 | } |
||
50 |