hasMany('FireflyIII\Models\TransactionJournal'); } /** * @return bool */ public function isWithdrawal() { return $this->type === TransactionType::WITHDRAWAL; } /** * @return bool */ public function isDeposit() { return $this->type === TransactionType::DEPOSIT; } /** * @return bool */ public function isTransfer() { return $this->type === TransactionType::TRANSFER; } /** * @return bool */ public function isOpeningBalance() { return $this->type === TransactionType::OPENING_BALANCE; } }