| Total Complexity | 1 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | trait InvokeProtectedTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Call protected/private method of a class. |
||
| 14 | * |
||
| 15 | * @param object &$object Instantiated object that we will run method on. |
||
| 16 | * @param string $methodName Method name to call |
||
| 17 | * @param array $parameters Array of parameters to pass into method. |
||
| 18 | * |
||
| 19 | * @return mixed Method return. |
||
| 20 | */ |
||
| 21 | public function invokeMethod(&$object, $methodName, array $parameters = array()) |
||
| 30 | } |