. */ declare(strict_types=1); namespace FireflyIII\Repositories\Journal; use FireflyIII\Models\TransactionJournal; use FireflyIII\User; use Illuminate\Support\Collection; /** * Interface JournalTaskerInterface. */ interface JournalTaskerInterface { /** * @param TransactionJournal $journal * * @return Collection */ public function getPiggyBankEvents(TransactionJournal $journal): Collection; /** * Get an overview of the transactions of a journal, tailored to the view * that shows a transaction (transaction/show/xx). * * @param TransactionJournal $journal * * @return array */ public function getTransactionsOverview(TransactionJournal $journal): array; /** * @param User $user */ public function setUser(User $user); }