posts = $posts; } public function edit($postId, $id, PostCommentEditForm $form): void { $post = $this->posts->get($postId); $post->editComment($id, $form->parentId, $form->text); $this->posts->save($post); } public function activate($postId, $id): void { $post = $this->posts->get($postId); $post->activateComment($id); $this->posts->save($post); } public function remove($postId, $id): void { $post = $this->posts->get($postId); $post->removeComment($id); $this->posts->save($post); } }