public function createPageBasedPagination(int $defaultPage = 0, int $defaultSize = 0): PageBasedPagination
    {
        return PageBasedPagination::fromPaginationQueryParams($this->request->getPagination(), $defaultPage, $defaultSize);
    }
public function createPageBasedPagination(int $defaultPage = 0, int $defaultSize = 0): PageBasedPagination
    {
        return PageBasedPagination::fromPaginationQueryParams($this->request->getPagination(), $defaultPage, $defaultSize);
    }
public function createPageBasedPagination ( int $ defaultPage = 0 , int $ defaultSize = 0 ) : PageBasedPagination { return PageBasedPagination :: fromPaginationQueryParams ( $ this -> request -> getPagination ( ) , $ defaultPage , $ defaultSize ) ; }
Returns a PageBasedPagination class in order to be used for page-based pagination.

The PageBasedPagination class stores the value of the "page[number]" and "page[size]" query parameters
if present or the $defaultPage and $defaultSize otherwise.
Returns a PageBasedPagination class in order to be used for page - based pagination .