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