/**
* Creates a URI from a hash of `parse_url` components.
*
* @see http://php.net/manual/en/function.parse-url.php
*
* @throws MalformedUriException If the components do not form a valid URI.
*/
public static function fromParts(array
$parts): UriInterface
{ $uri =
new self();
$uri->
applyParts($parts);
$uri->
validateState();
return $uri;
} public function getScheme(): string
{ return $this->scheme;
} public function getAuthority(): string
{