| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function call($method, &...$args) |
||
| 18 | { |
||
| 19 | $values = array(); |
||
| 20 | |||
| 21 | foreach ($this->variants as $variant) { |
||
| 22 | if (method_exists($variant, $method)) { |
||
| 23 | $value = $variant->$method(...$args); |
||
| 24 | if ($value !== null) { |
||
| 25 | $values[] = $value; |
||
| 26 | } |
||
| 27 | } |
||
| 28 | } |
||
| 29 | |||
| 30 | return $values; |
||
| 31 | } |
||
| 33 |