/** * {@inheritdoc} */ public function equals(MoneyInterface $money) { return $this->amount == $money->getAmount() && $this->currency->equals($money->getCurrency()); }