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