| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 55 | protected function invokeMethod($object, $method, $args = [], $revoke = true) |
||
| 56 | { |
||
| 57 | $reflection = new \ReflectionObject($object); |
||
| 58 | $method = $reflection->getMethod($method); |
||
| 59 | $method->setAccessible(true); |
||
| 60 | $result = $method->invokeArgs($object, $args); |
||
| 61 | |||
| 62 | if ($revoke) { |
||
| 63 | $method->setAccessible(false); |
||
| 64 | } |
||
| 65 | |||
| 66 | return $result; |
||
| 67 | } |
||
| 69 |