Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
21 | 3 | public static function call($object, $method, $parameters) |
|
22 | { |
||
23 | 3 | $method = \Doctrine\Common\Inflector\Inflector::camelize($method); |
|
24 | 3 | $result = $object; |
|
25 | |||
26 | 3 | if (method_exists($object, $method)) { |
|
27 | 3 | $result = call_user_func_array([ $object, $method ], $parameters); |
|
28 | 3 | } |
|
29 | |||
30 | 3 | return $result; |
|
31 | } |
||
32 | } |
||
33 |