protected function setScheme($scheme)
    {
        $scheme = strtolower($scheme);
        
        if ($scheme !== '' && !$this->isSupportedScheme($scheme)) {
            throw new \InvalidArgumentException("Invalid or unsupported scheme '$scheme'");
        }
        
        $this->scheme = $scheme;
    }
protected function setScheme($scheme)
    {
        $scheme = strtolower($scheme);
        
        if ($scheme !== '' && !$this->isSupportedScheme($scheme)) {
            throw new \InvalidArgumentException("Invalid or unsupported scheme '$scheme'");
        }
        
        $this->scheme = $scheme;
    }
protected function setScheme ( $ scheme ) { $ scheme = strtolower ( $ scheme ) ; if ( $ scheme !== '' && ! $ this -> isSupportedScheme ( $ scheme ) ) { throw new \ InvalidArgumentException ( "Invalid or unsupported scheme '$scheme'" ) ; } $ this -> scheme = $ scheme ; }
Set the scheme

@param string $scheme
@throws \InvalidArgumentException for invalid or unsupported schemes.
Set the scheme