/** * {@inheritdoc} */ public function importByCountry($countryCode) { $countryRepository = new CountryRepository(); $country = $countryRepository->get($countryCode); $currencyCode = $country->getCurrencyCode(); $entity = NULL; if ($currencyCode) { $entity = $this->import($currencyCode); } return $entity; }