Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class ListAction implements RequestHandlerInterface |
||
15 | { |
||
16 | use PrepareJsonDataTrait; |
||
17 | |||
18 | /** |
||
19 | * @var PostRepository |
||
20 | */ |
||
21 | private PostRepository $posts; |
||
22 | |||
23 | /** |
||
24 | * @param PostRepository $posts |
||
25 | */ |
||
26 | 2 | public function __construct(PostRepository $posts) |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * {@inheritDoc} |
||
33 | */ |
||
34 | 2 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
39 |