src/Factory/UriSchemeFactory.php
public static function setForcedScheme($scheme = null)
    {
        if (! is_string($scheme) && ! is_null($scheme)) {
            throw new InvalidArgumentException(sprintf(
                'Invalid scheme provided; must be an string or a null, "%s" received.',
                is_object($scheme) ? get_class($scheme) : gettype($scheme)
            ));
        }
        static::$forcedScheme = $scheme;
    }
public static function setForcedScheme($scheme = null)
    {
        if (! is_string($scheme) && ! is_null($scheme)) {
            throw new InvalidArgumentException(sprintf(
                'Invalid scheme provided; must be an string or a null, "%s" received.',
                is_object($scheme) ? get_class($scheme) : gettype($scheme)
            ));
        }
        static::$forcedScheme = $scheme;
    }
public static function setForcedScheme ( $ scheme = null ) { if ( ! is_string ( $ scheme ) && ! is_null ( $ scheme ) ) { throw new InvalidArgumentException ( sprintf ( 'Invalid scheme provided; must be an string or a null, "%s" received.' , is_object ( $ scheme ) ? get_class ( $ scheme ) : gettype ( $ scheme ) ) ) ; } static :: $ forcedScheme = $ scheme ; }
Sets the Uri scheme for forced usage.

@param null|string $scheme Optional; null by default removes a forced
scheme. The Uri scheme

@throws \InvalidArgumentException If the received scheme is not a string
or not a null
Sets the Uri scheme for forced usage .