public function offsetSet($offset, $value)
    {
        if ($offset == self::QUERY) {
            $parameters = [];
            parse_str($value, $parameters);
            $value = $parameters;
        }
        $this->set($offset, $value);
    }
public function offsetSet($offset, $value)
    {
        if ($offset == self::QUERY) {
            $parameters = [];
            parse_str($value, $parameters);
            $value = $parameters;
        }
        $this->set($offset, $value);
    }
public function offsetSet ( $ offset , $ value ) { if ( $ offset == self :: QUERY ) { $ parameters = [ ] ; parse_str ( $ value , $ parameters ) ; $ value = $ parameters ; } $ this -> set ( $ offset , $ value ) ; }
Set the specified URL part.

@param string $offset
@param mixed $value
@return void

@throws \OutOfBoundsException If the specified part is not a valid URL part.
Set the specified URL part .