Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | 34 | public function fetch(MethodInvocation $invocation) |
|
24 | { |
||
25 | 34 | $parameters = $invocation->getMethod()->getParameters(); |
|
26 | 34 | $argumentNames = array_map(function (\ReflectionParameter $parameter) { |
|
27 | 33 | return $parameter->name; |
|
28 | 34 | }, $parameters); |
|
29 | 34 | $parameters = array_combine($argumentNames, $invocation->getArguments()); |
|
30 | |||
31 | 34 | return $parameters; |
|
32 | } |
||
33 | } |
||
34 |