public static function getPagination(ResponseInterface $response)
    {
        try {
            return array_filter(static::getContent($response), function ($key) {
                return in_array($key, ['size', 'page', 'pagelen', 'next', 'previous'], true);
            }, ARRAY_FILTER_USE_KEY);
        } catch (DecodingFailedException $e) {
            return [];
        }
    }
public static function getPagination(ResponseInterface $response)
    {
        try {
            return array_filter(static::getContent($response), function ($key) {
                return in_array($key, ['size', 'page', 'pagelen', 'next', 'previous'], true);
            }, ARRAY_FILTER_USE_KEY);
        } catch (DecodingFailedException $e) {
            return [];
        }
    }
public static function getPagination ( ResponseInterface $ response ) { try { return array_filter ( static :: getContent ( $ response ) , function ( $ key ) { return in_array ( $ key , [ 'size' , 'page' , 'pagelen' , 'next' , 'previous' ] , true ) ; } , ARRAY_FILTER_USE_KEY ) ; } catch ( DecodingFailedException $ e ) { return [ ] ; } }
Get the pagination data from the response.

@param \Psr\Http\Message\ResponseInterface $response

@return array
Get the pagination data from the response .