/** * Stores the preferred currency of the order. * IMPORTANTLY we store the exchange rate for future reference... * @param EcommerceCurrency $currency */ public function SetCurrency($currency) { $this->CurrencyUsedID = $currency->ID; $this->ExchangeRate = $currency->ExchangeRate(); $this->write(); }