public function createOffsetBasedPagination(int $defaultOffset = 0, int $defaultLimit = 0): OffsetBasedPagination
    {
        return OffsetBasedPagination::fromPaginationQueryParams($this->request->getPagination(), $defaultOffset, $defaultLimit);
    }
public function createOffsetBasedPagination(int $defaultOffset = 0, int $defaultLimit = 0): OffsetBasedPagination
    {
        return OffsetBasedPagination::fromPaginationQueryParams($this->request->getPagination(), $defaultOffset, $defaultLimit);
    }
public function createOffsetBasedPagination ( int $ defaultOffset = 0 , int $ defaultLimit = 0 ) : OffsetBasedPagination { return OffsetBasedPagination :: fromPaginationQueryParams ( $ this -> request -> getPagination ( ) , $ defaultOffset , $ defaultLimit ) ; }
Returns a OffsetBasedPagination class in order to be used for offset-based pagination.

The OffsetBasedPagination class stores the value of the "page[offset]" and "page[limit]" query parameters
if present or the $defaultOffset and $defaultLimit otherwise.
Returns a OffsetBasedPagination class in order to be used for offset - based pagination .