Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
18 | 2 | public function __call(string $method, array $arguments) |
|
19 | { |
||
20 | 2 | if (!method_exists($this->object, $method)) { |
|
21 | 1 | $message = sprintf('Object %s has no %s() method.', \get_class($this->object), $method); |
|
22 | 1 | throw new BadMethodCallException($message); |
|
23 | } |
||
24 | |||
25 | 1 | return \call_user_func_array([$this->object, $method], $arguments); |
|
26 | } |
||
28 |