Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function invokeMethod($object, $methodName, array $parameters = array()) |
||
17 | { |
||
18 | $reflection = new \ReflectionClass(get_class($object)); |
||
19 | $method = $reflection->getMethod($methodName); |
||
20 | $method->setAccessible(true); |
||
21 | |||
22 | return $method->invokeArgs($object, $parameters); |
||
23 | } |
||
24 | } |
||
25 |