| 1 | <?php |
||
| 5 | trait InvokeInaccessibleMethodTrait |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Call protected/private method of a class. |
||
| 9 | * |
||
| 10 | * @param object $object Instantiated object that we will run method on. |
||
| 11 | * @param string $methodName Method name to call |
||
| 12 | * @param array $parameters Array of parameters to pass into method. |
||
| 13 | * |
||
| 14 | * @return mixed Method return. |
||
| 15 | */ |
||
| 16 | public function invokeMethod($object, $methodName, array $parameters = array()) |
||
| 24 | } |
||
| 25 |