public function loadCurrency($currencyCode) {
    $filePath = $this->getCurrencyResourceDirectory() . "/$currencyCode.json";
    if (is_readable($filePath)) {
      return $this->createCurrencyFromJson(file_get_contents($filePath));
    }
    else {
      return null;
    }
  }
public function loadCurrency($currencyCode) {
    $filePath = $this->getCurrencyResourceDirectory() . "/$currencyCode.json";
    if (is_readable($filePath)) {
      return $this->createCurrencyFromJson(file_get_contents($filePath));
    }
    else {
      return null;
    }
  }
public function loadCurrency ( $ currencyCode ) { $ filePath = $ this -> getCurrencyResourceDirectory ( ) . "/$currencyCode.json" ; if ( is_readable ( $ filePath ) ) { return $ this -> createCurrencyFromJson ( file_get_contents ( $ filePath ) ) ; } else { return null ; } }
Loads a currency.

@param string $currencyCode

@return \Commercie\Currency\CurrencyInterface|null
Loads a currency .