1 | <?php |
||
16 | class Invoker |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * Call protected/private method of a class. |
||
21 | * |
||
22 | * @param DataObject|DeprecatedLogFormatter &$object Instantiated object that we will run method on. |
||
23 | * @param string $methodName Method name to call |
||
24 | * @param array $parameters Array of parameters to pass into method. |
||
25 | * |
||
26 | * @return mixed Method return. |
||
27 | */ |
||
28 | public static function invokeMethod(&$object, $methodName, array $parameters = array()) |
||
36 | |||
37 | } |