private function hydrateCountry($country, $elements)
    {
        $countryCode = $country['cca3'];

        $this->addCountry($countryCode, $country);

        foreach ($elements as $element => $enabled) {
            $this->hydrateCountryElement($countryCode, $element, $enabled);
        }

        return $this->getCountry($countryCode);
    }
private function hydrateCountry($country, $elements)
    {
        $countryCode = $country['cca3'];

        $this->addCountry($countryCode, $country);

        foreach ($elements as $element => $enabled) {
            $this->hydrateCountryElement($countryCode, $element, $enabled);
        }

        return $this->getCountry($countryCode);
    }
private function hydrateCountry ( $ country , $ elements ) { $ countryCode = $ country [ 'cca3' ] ; $ this -> addCountry ( $ countryCode , $ country ) ; foreach ( $ elements as $ element => $ enabled ) { $ this -> hydrateCountryElement ( $ countryCode , $ element , $ enabled ) ; } return $ this -> getCountry ( $ countryCode ) ; }
Hydrate elements of a country.

@param $country
@param $elements
@return mixed
Hydrate elements of a country .