src/Uri.php
protected function setScheme($scheme)
    {
        $this->uriString = null;

        $this->scheme = strtolower(rtrim($scheme, ':/'));

        return $this;
    }
protected function setScheme($scheme)
    {
        $this->uriString = null;

        $this->scheme = strtolower(rtrim($scheme, ':/'));

        return $this;
    }
protected function setScheme ( $ scheme ) { $ this -> uriString = null ; $ this -> scheme = strtolower ( rtrim ( $ scheme , ':/' ) ) ; return $ this ; }
Sets the URI scheme to current instance.

@param string $scheme The URI scheme

@return Uri The current instance with the provided scheme
Sets the URI scheme to current instance .