예제 #1
0
파일: Money.php 프로젝트: srtfisher/money
 /**
  * @return string
  */
 public function format()
 {
     return $this->currency->format($this->getDollars());
 }
예제 #2
0
 /**
  * @param Currency $other
  * @return bool
  */
 public function equals(CurrencyInterface $other)
 {
     return $this->getName() === $other->getName();
 }
예제 #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;
 }