public function createCursorBasedPagination($defaultCursor = null, int $defaultSize = 0): CursorBasedPagination
    {
        return CursorBasedPagination::fromPaginationQueryParams($this->request->getPagination(), $defaultCursor, $defaultSize);
    }
public function createCursorBasedPagination($defaultCursor = null, int $defaultSize = 0): CursorBasedPagination
    {
        return CursorBasedPagination::fromPaginationQueryParams($this->request->getPagination(), $defaultCursor, $defaultSize);
    }
public function createCursorBasedPagination ( $ defaultCursor = null , int $ defaultSize = 0 ) : CursorBasedPagination { return CursorBasedPagination :: fromPaginationQueryParams ( $ this -> request -> getPagination ( ) , $ defaultCursor , $ defaultSize ) ; }
Returns a CursorBasedPagination class in order to be used for cursor-based pagination.

The CursorBasedPagination class stores the value of the "page[cursor]" and "page[size]" query parameters if present
or the $defaultCursor and $defaultSize otherwise.
@param mixed $defaultCursor
Returns a CursorBasedPagination class in order to be used for cursor - based pagination .