public static function fromParts(
            string $scheme,
            string $host,
            int $port = null,
            string $path = '/',
            string $queryString = null
    ): self {
        return self::fromString(
                $scheme
                . '://'
                . $host
                . (null === $port ? '' : ':' . $port)
                . $path
                . ((null !== $queryString) ? (substr($queryString, 0, 1) !== '?' ? '?' . $queryString : $queryString) : $queryString)
        );
    }
public static function fromParts(
            string $scheme,
            string $host,
            int $port = null,
            string $path = '/',
            string $queryString = null
    ): self {
        return self::fromString(
                $scheme
                . '://'
                . $host
                . (null === $port ? '' : ':' . $port)
                . $path
                . ((null !== $queryString) ? (substr($queryString, 0, 1) !== '?' ? '?' . $queryString : $queryString) : $queryString)
        );
    }
public static function fromParts ( string $ scheme , string $ host , int $ port = null , string $ path = '/' , string $ queryString = null ) : self { return self :: fromString ( $ scheme . '://' . $ host . ( null === $ port ? '' : ':' . $ port ) . $ path . ( ( null !== $ queryString ) ? ( substr ( $ queryString , 0 , 1 ) !== '?' ? '?' . $ queryString : $ queryString ) : $ queryString ) ) ; }
creates http uri from given uri parts

@param   string  $scheme       scheme of http uri, must be either http or https
@param   string  $host         host name of http uri
@param   int     $port         optional  port of http uri
@param   string  $path         optional  path of http uri, defaults to /
@param   string  $queryString  optional  query string of http uri
@return  \stubbles\peer\http\HttpUri
@since   4.0.0
creates http uri from given uri parts