| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | protected function invokeMethod($object, $method, $args = [], $revoke = true) |
||
| 33 | { |
||
| 34 | $reflection = new \ReflectionObject($object); |
||
| 35 | $method = $reflection->getMethod($method); |
||
| 36 | $method->setAccessible(true); |
||
| 37 | $result = $method->invokeArgs($object, $args); |
||
| 38 | |||
| 39 | if ($revoke) { |
||
| 40 | $method->setAccessible(false); |
||
| 41 | } |
||
| 42 | |||
| 43 | return $result; |
||
| 44 | } |
||
| 46 |