Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
13 | function get_param_names($method) |
||
14 | { |
||
15 | list($class, $method) = explode('::', $method); |
||
16 | |||
17 | $refParams = (new \ReflectionMethod($class, $method))->getParameters(); |
||
18 | |||
19 | $paramNames = []; |
||
20 | |||
21 | foreach ($refParams as $parameter) { |
||
22 | $paramNames[] = $parameter->name; |
||
23 | } |
||
24 | |||
25 | return $paramNames; |
||
26 | } |
||
27 | |||
38 |