public function buildQueryStringParams()
    {
        $params = [];
        if ($this->limit > 0) {
            $params['page']['limit'] = $this->limit;
        }
        if ($this->offset > 0) {
            $params['page']['offset'] = $this->offset;
        }
        if ($this->sort) {
            $params['sort'] = $this->sort;
        }
        if ($this->filter) {
            $params['filter'] = (string) $this->filter;
        }
        if (!empty($this->includes)) {
            $params['include'] = implode(',', $this->includes);
        }
        return $params;
    }
public function buildQueryStringParams()
    {
        $params = [];
        if ($this->limit > 0) {
            $params['page']['limit'] = $this->limit;
        }
        if ($this->offset > 0) {
            $params['page']['offset'] = $this->offset;
        }
        if ($this->sort) {
            $params['sort'] = $this->sort;
        }
        if ($this->filter) {
            $params['filter'] = (string) $this->filter;
        }
        if (!empty($this->includes)) {
            $params['include'] = implode(',', $this->includes);
        }
        return $params;
    }
public function buildQueryStringParams ( ) { $ params = [ ] ; if ( $ this -> limit > 0 ) { $ params [ 'page' ] [ 'limit' ] = $ this -> limit ; } if ( $ this -> offset > 0 ) { $ params [ 'page' ] [ 'offset' ] = $ this -> offset ; } if ( $ this -> sort ) { $ params [ 'sort' ] = $ this -> sort ; } if ( $ this -> filter ) { $ params [ 'filter' ] = ( string ) $ this -> filter ; } if ( ! empty ( $ this -> includes ) ) { $ params [ 'include' ] = implode ( ',' , $ this -> includes ) ; } return $ params ; }
Build the query string parameters based on the resource settings

@return array
Build the query string parameters based on the resource settings