Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
49 | public function getValue() |
||
50 | { |
||
51 | /** @var Closure $callee */ |
||
52 | $callee = $this->callee->getValue(); |
||
53 | Assert::isCallable($callee); |
||
54 | |||
55 | /** @var array<mixed> $arguments */ |
||
56 | $arguments = array_map( |
||
57 | /** @return mixed */ |
||
58 | function (ArgumentInterface $argument) { |
||
59 | return $argument->getValue(); |
||
60 | }, |
||
61 | $this->arguments |
||
62 | ); |
||
63 | |||
64 | return call_user_func([$callee, $this->methodName], $arguments); |
||
65 | } |
||
66 | |||
68 |