Exemple #1
0
 /**
  * @return string
  */
 public function format()
 {
     return $this->currency->format($this->getDollars());
 }
Exemple #2
0
 /**
  * @param Currency $other
  * @return bool
  */
 public function equals(CurrencyInterface $other)
 {
     return $this->getName() === $other->getName();
 }
Exemple #3
0
 /**
  * @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;
 }