Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public static function invokeMethod(&$object, $methodName, array $parameters = array()) |
||
29 | { |
||
30 | $reflection = new ReflectionClass(get_class($object)); |
||
31 | $method = $reflection->getMethod($methodName); |
||
32 | $method->setAccessible(true); |
||
33 | |||
34 | return $method->invokeArgs($object, $parameters); |
||
35 | } |
||
36 | |||
37 | } |