| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class BlogService |
||
| 14 | { |
||
| 15 | private const POSTS_PER_PAGE = 10; |
||
| 16 | private PostRepository $postRepository; |
||
| 17 | |||
| 18 | public function __construct(PostRepository $postRepository) |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getPosts(int $page): PaginatorInterface |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param int $id |
||
| 34 | * |
||
| 35 | * @throws NotFoundException |
||
| 36 | * |
||
| 37 | * @return Post |
||
| 38 | */ |
||
| 39 | public function getPost(int $id): Post |
||
| 52 |