Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function handle(UseCaseCommandInterface $command): ResponseInterface |
||
26 | { |
||
27 | try { |
||
28 | $this->responder |
||
29 | ->setSuccess(true) |
||
30 | ->setMessage('Prices fetched successfully!!!') |
||
31 | ->setContent($this->launchLogic($command)); |
||
32 | } catch (Exception $exception) { |
||
33 | $this->responder |
||
34 | ->setSuccess(false) |
||
35 | ->setMessage('There was a problem with price providing service!!! ') |
||
36 | ->setContent(0); |
||
37 | } |
||
38 | |||
39 | return $this->responder; |
||
40 | } |
||
42 |