/** * Returns post by id * * @param int $id * @return Post */ public function getPost($id) { return $this->postRepository->findById($id); }