private function addOptionalQueryParameters($apiKey, $language, $region)
    {
        if ($apiKey) {
            $this->endpoint = $this->buildQuery('key', $apiKey);
        }

        if ($language) {
            $this->endpoint = $this->buildQuery('language', $language);
        }

        if ($region) {
            $this->endpoint = $this->buildQuery('region', $region);
        }
    }
private function addOptionalQueryParameters($apiKey, $language, $region)
    {
        if ($apiKey) {
            $this->endpoint = $this->buildQuery('key', $apiKey);
        }

        if ($language) {
            $this->endpoint = $this->buildQuery('language', $language);
        }

        if ($region) {
            $this->endpoint = $this->buildQuery('region', $region);
        }
    }
private function addOptionalQueryParameters ( $ apiKey , $ language , $ region ) { if ( $ apiKey ) { $ this -> endpoint = $ this -> buildQuery ( 'key' , $ apiKey ) ; } if ( $ language ) { $ this -> endpoint = $ this -> buildQuery ( 'language' , $ language ) ; } if ( $ region ) { $ this -> endpoint = $ this -> buildQuery ( 'region' , $ region ) ; } }
Adds any of the optional query parameters to the query.

@param $apiKey
@param $language
@param $region
Adds any of the optional query parameters to the query .