/** * Is same currency * * @param self $money * * @return boolean */ public function isSameCurrency(Paysera_WalletApi_Entity_Money $money) { return $this->getCurrency() == $money->getCurrency(); }
/** * Decodes Money object from array * * @param array $data * * @return Paysera_WalletApi_Entity_Money */ public function decodeMoney($data) { return Paysera_WalletApi_Entity_Money::create()->setAmountInCents($data['amount'])->setCurrency($data['currency']); }