public function scheme($raw = false)
    {
        if (!$raw) {
            $scheme = '';
            if ($this->scheme) {
                $scheme = $this->scheme . '://';
            } elseif ($this->host) {
                $scheme = '//';
            }

            return $scheme;
        }

        return $this->scheme;
    }
public function scheme($raw = false)
    {
        if (!$raw) {
            $scheme = '';
            if ($this->scheme) {
                $scheme = $this->scheme . '://';
            } elseif ($this->host) {
                $scheme = '//';
            }

            return $scheme;
        }

        return $this->scheme;
    }
public function scheme ( $ raw = false ) { if ( ! $ raw ) { $ scheme = '' ; if ( $ this -> scheme ) { $ scheme = $ this -> scheme . '://' ; } elseif ( $ this -> host ) { $ scheme = '//' ; } return $ scheme ; } return $ this -> scheme ; }
Return the scheme of the URI

@param bool $raw
@return string The scheme of the URI
Return the scheme of the URI