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