Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | trait FunctionProxy |
||
19 | { |
||
20 | /** |
||
21 | * This method serves as a proxy for calling (native) functions for Agents. |
||
22 | * |
||
23 | * Extending classes must ensure that the arguments passed to the function |
||
24 | * are correct, as this method will just pass through all arguments. |
||
25 | * |
||
26 | * Returns the result of the called function (which may be `false`), or `false` |
||
27 | * on failure. |
||
28 | * |
||
29 | * @param string $name |
||
30 | * @param array $arguments |
||
31 | * @throws BadFunctionCallException |
||
32 | * @return mixed|false |
||
33 | */ |
||
34 | 3 | protected function proxyFunctionCall(string $name, array $arguments) |
|
47 |