/** * {@inheritDoc} */ public function equals(CurrencyInterface $currency) { return $this->toArray() == $currency->toArray(); }