src/http/Uri.php
protected function setComponent($name, $value)
    {
        if ($this->_string !== null) {
            $this->_components = $this->parseUri($this->_string);
        }
        $this->_components[$name] = $value;
        $this->_string = null;
    }
protected function setComponent($name, $value)
    {
        if ($this->_string !== null) {
            $this->_components = $this->parseUri($this->_string);
        }
        $this->_components[$name] = $value;
        $this->_string = null;
    }
protected function setComponent ( $ name , $ value ) { if ( $ this -> _string !== null ) { $ this -> _components = $ this -> parseUri ( $ this -> _string ) ; } $ this -> _components [ $ name ] = $ value ; $ this -> _string = null ; }
Sets up particular URI component.
@param string $name URI component name.
@param mixed $value URI component value.
Sets up particular URI component .