action = $action; } /** * @param TransactionJournal $journal * * @return bool */ public function act(TransactionJournal $journal): bool { $notes = $journal->getMeta('notes'); Log::debug(sprintf('RuleAction AppendNotes appended "%s" to "%s".', $this->action->action_value, $notes)); $notes = $notes . $this->action->action_value; $journal->setMeta('notes', $notes); $journal->save(); return true; } }