public function serializeList(PageModel $pageModel, $type, $page, $statusCode = Response::HTTP_OK)
    {
        $page = new ResponsePageModel($pageModel, $type, $page);

        return new JsonResponse($page->getBody(), $statusCode);
    }
public function serializeList(PageModel $pageModel, $type, $page, $statusCode = Response::HTTP_OK)
    {
        $page = new ResponsePageModel($pageModel, $type, $page);

        return new JsonResponse($page->getBody(), $statusCode);
    }
public function serializeList ( PageModel $ pageModel , $ type , $ page , $ statusCode = Response :: HTTP_OK ) { $ page = new ResponsePageModel ( $ pageModel , $ type , $ page ) ; return new JsonResponse ( $ page -> getBody ( ) , $ statusCode ) ; }
Serializes a paged response

@param PageModel $pageModel
@param string $type represents the type
@param int $page the current page number
@param int $statusCode http response status code
@return \Symfony\Component\HttpFoundation\JsonResponse
Serializes a paged response