Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function handle(UseCaseCommandInterface $command): DecoratorInterface |
||
25 | { |
||
26 | $serviceRequest = $this->requestValidator->validate($command->getRequest()); |
||
27 | if ($serviceRequest->getSuccess()) { |
||
28 | $request = [$this->mediator->getParamsWrapper() => $serviceRequest->getRequest()]; // Tiny business policy |
||
29 | $verb = $this->verb; |
||
30 | return $this->mediator->$verb($command->getCredentials(), $request); |
||
31 | } else { |
||
32 | return $serviceRequest; |
||
33 | } |
||
36 |