Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
21 | public function invokeMethod(&$object, $methodName, array $parameters = array()) |
||
22 | { |
||
23 | $reflection = new \ReflectionClass(get_class($object)); |
||
24 | $method = $reflection->getMethod($methodName); |
||
25 | $method->setAccessible(true); |
||
26 | |||
27 | return $method->invokeArgs($object, $parameters); |
||
28 | } |
||
30 | } |