/** * @inheritdoc */ public function reverseTransform($value) { if (is_array($value)) { $value["tbbc_currency"] = new Currency($this->pairManager->getReferenceCurrencyCode()); } return parent::reverseTransform($value); }
/** * Converts the given Money object into another * currency and returns a new Money object * * @param Money $money * @param string $currencyCode * @return Money */ public function convert(Money $money, $currencyCode) { return $this->pairManager->convert($money, $currencyCode); }