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