src/Koldy/Url.php
public function getScheme(): string
    {
        if (!isset($this->segments['scheme'])) {
            throw new UrlException('Unable to get scheme for ' . $this->url);
        }

        return $this->segments['scheme'];
    }
public function getScheme(): string
    {
        if (!isset($this->segments['scheme'])) {
            throw new UrlException('Unable to get scheme for ' . $this->url);
        }

        return $this->segments['scheme'];
    }
public function getScheme ( ) : string { if ( ! isset ( $ this -> segments [ 'scheme' ] ) ) { throw new UrlException ( 'Unable to get scheme for ' . $ this -> url ) ; } return $ this -> segments [ 'scheme' ] ; }
Get URL's scheme

@return string
@throws \Koldy\Url\Exception
Get URL s scheme