Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
33 | public function invokeMethod(&$object, $methodName, array $parameters = []) |
||
34 | { |
||
35 | $reflection = new \ReflectionClass(get_class($object)); |
||
36 | $method = $reflection->getMethod($methodName); |
||
37 | $method->setAccessible(true); |
||
38 | |||
39 | return $method->invokeArgs($object, $parameters); |
||
40 | } |
||
41 | } |
||
42 |