Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class PostService |
||
13 | { |
||
14 | private PostRepository $repository; |
||
15 | private TagRepository $tagRepository; |
||
16 | |||
17 | public function __construct(PostRepository $repository, TagRepository $tagRepository) |
||
18 | { |
||
19 | $this->repository = $repository; |
||
20 | $this->tagRepository = $tagRepository; |
||
21 | } |
||
22 | |||
23 | public function savePost(User $user, Post $model, PostForm $form): void |
||
39 | } |
||
40 | |||
41 | public function getPostTags(Post $post): array |
||
49 |