private function parseHostAndPath(array $locationParts): void
    {
        $path = $locationParts['path'] ?? '';
        $host = $locationParts['host'] ?? '';

        if ($this->getScheme() === 'file') {
            $this->path = $host . $path;
        } else {
            $this->host = $host;
            $this->path = $path;
        }
    }
private function parseHostAndPath(array $locationParts): void
    {
        $path = $locationParts['path'] ?? '';
        $host = $locationParts['host'] ?? '';

        if ($this->getScheme() === 'file') {
            $this->path = $host . $path;
        } else {
            $this->host = $host;
            $this->path = $path;
        }
    }
private function parseHostAndPath ( array $ locationParts ) : void { $ path = $ locationParts [ 'path' ] ?? '' ; $ host = $ locationParts [ 'host' ] ?? '' ; if ( $ this -> getScheme ( ) === 'file' ) { $ this -> path = $ host . $ path ; } else { $ this -> host = $ host ; $ this -> path = $ path ; } }
Validates and sets the host and path properties

@param string[] $locationParts
Validates and sets the host and path properties