private function parseQuery(array $locationParts): void
    {
        if (isset($locationParts['query'])) {
            $queryParts = explode('&', $locationParts['query']);
            foreach ($queryParts as $part) {
                $option = $this->splitKeyValuePair($part);

                $this->query[$option[0]] = $option[1];
            }
        }
    }
private function parseQuery(array $locationParts): void
    {
        if (isset($locationParts['query'])) {
            $queryParts = explode('&', $locationParts['query']);
            foreach ($queryParts as $part) {
                $option = $this->splitKeyValuePair($part);

                $this->query[$option[0]] = $option[1];
            }
        }
    }
private function parseQuery ( array $ locationParts ) : void { if ( isset ( $ locationParts [ 'query' ] ) ) { $ queryParts = explode ( '&' , $ locationParts [ 'query' ] ) ; foreach ( $ queryParts as $ part ) { $ option = $ this -> splitKeyValuePair ( $ part ) ; $ this -> query [ $ option [ 0 ] ] = $ option [ 1 ] ; } } }
validates and sets the query property

@param string[] $locationParts
validates and sets the query property