/** * @param int $page * @return object */ public function getMyPosts(User $user, $page) { $offset = ($page - 1) * self::ALL_POST_LIMIT; return $this->repository->getMyPosts($user, $offset, self::ALL_POST_LIMIT); }