src/Url.php
public function offsetSet($key, $value)
    {
        if ($key === 'query' && isset($value)) {
            $value = $this->_queryToArray($value);
        }
        $this->data[$key] = $value;
    }
public function offsetSet($key, $value)
    {
        if ($key === 'query' && isset($value)) {
            $value = $this->_queryToArray($value);
        }
        $this->data[$key] = $value;
    }
public function offsetSet ( $ key , $ value ) { if ( $ key === 'query' && isset ( $ value ) ) { $ value = $ this -> _queryToArray ( $ value ) ; } $ this -> data [ $ key ] = $ value ; }
Sets a URL-data by key.
@param string $key key of data.
@param $value
Sets a URL - data by key .