data['currency'])) { $currencyPreference = Preferences::get('currencyPreference', 'EUR'); $this->data['currency'] = TransactionCurrency::whereCode($currencyPreference->data)->first(); } return $this->data; } /** * @param array $data */ public function setData(array $data) { $this->data = $data; } }