/** * @return string */ public function format() { return $this->currency->format($this->getDollars()); }
/** * @param Currency $other * @return bool */ public function equals(CurrencyInterface $other) { return $this->getName() === $other->getName(); }
/** * @param CurrencyPair $other * @return boolean */ public function equals(CurrencyPair $other) { return $this->baseCurrency->equals($other->baseCurrency) && $this->counterCurrency->equals($other->counterCurrency) && $this->ratio === $other->ratio; }