예제 #1
0
 /**
  * Returns the given money in the same currency as the current instance.
  *
  * @param Money $money
  * @return Money
  */
 protected function getNormalisedMoney(Money $money)
 {
     return $money->isSameCurrencyAs($this) ? $money : $money->toCurrency($this->currency);
 }