Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
23 | public function sayHi(ServerRequestInterface $request, ResponseInterface $response, array $args) |
||
24 | { |
||
25 | /** @var HelloInterface $hello */ |
||
26 | $hello = $this->container->get(HelloInterface::class); |
||
27 | |||
28 | return $response->withArray( |
||
29 | [ |
||
30 | 'message' => sprintf('%s %s', $hello->sayHi(), $args['name']) |
||
31 | ], |
||
32 | 200 |
||
33 | ); |
||
34 | } |
||
35 | } |