/** * @param string $scheme * @param string $host * @param int $port * @param Path $path * @param Map $parameters * @param string|null $fragment */ function __construct($scheme, $host, $port = 80, Path $path = null, Map $parameters = null, $fragment = null) { parent::__construct($path ?: new Path()); $this->scheme = $scheme; $this->host = $host; $this->port = $port; $this->parameters = $parameters ?: new Map(); $this->fragment = $fragment; }