lib/ExternalUriGenerator/Uri.php
private function setScheme($scheme)
    {
        if (in_array($scheme, array_keys(self::$schemes))) {
            $this->scheme = $scheme;
        } else {
            throw new \InvalidArgumentException("Invalid scheme");
        }
    }
private function setScheme($scheme)
    {
        if (in_array($scheme, array_keys(self::$schemes))) {
            $this->scheme = $scheme;
        } else {
            throw new \InvalidArgumentException("Invalid scheme");
        }
    }
@param string $scheme

@throws \InvalidArgumentException