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