src/Url.php
public function setQuery($query)
    {
        if (!empty($query)) {
            $this->data['query'] = $this->_queryToArray($query);
        }

        return $this;
    }
public function setQuery($query)
    {
        if (!empty($query)) {
            $this->data['query'] = $this->_queryToArray($query);
        }

        return $this;
    }
public function setQuery ( $ query ) { if ( ! empty ( $ query ) ) { $ this -> data [ 'query' ] = $ this -> _queryToArray ( $ query ) ; } return $ this ; }
Sets a query.
@param string $query query.
@return $this
Sets a query .