Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
5 | protected function callProtectedMethod($className, $methodName, $params) |
||
6 | { |
||
7 | $class = new ReflectionClass($className); |
||
8 | $method = $class->getMethod($methodName); |
||
9 | $method->setAccessible(true); |
||
10 | |||
11 | $obj = new $className($params); |
||
12 | return $method->invokeArgs($obj, $params); |
||
13 | } |
||
14 | } |