mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-12 04:38:06 +00:00
Refactor upgrade and verify commands.
This commit is contained in:
@@ -39,7 +39,6 @@ use Illuminate\Support\MessageBag;
|
||||
*/
|
||||
interface JournalRepositoryInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* @param TransactionJournal $journal
|
||||
* @param TransactionType $type
|
||||
@@ -57,9 +56,6 @@ interface JournalRepositoryInterface
|
||||
*/
|
||||
public function countTransactions(TransactionJournal $journal): int;
|
||||
|
||||
|
||||
/** @noinspection MoreThanThreeArgumentsInspection */
|
||||
|
||||
/**
|
||||
* Deletes a journal.
|
||||
*
|
||||
@@ -69,6 +65,9 @@ interface JournalRepositoryInterface
|
||||
*/
|
||||
public function destroy(TransactionJournal $journal): bool;
|
||||
|
||||
|
||||
/** @noinspection MoreThanThreeArgumentsInspection */
|
||||
|
||||
/**
|
||||
* Find a journal by its hash.
|
||||
*
|
||||
@@ -205,6 +204,13 @@ interface JournalRepositoryInterface
|
||||
*/
|
||||
public function getJournalTotal(TransactionJournal $journal): string;
|
||||
|
||||
/**
|
||||
* Return all journals without a group, used in an upgrade routine.
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function getJournalsWithoutGroup(): Collection;
|
||||
|
||||
/**
|
||||
* @param TransactionJournalLink $link
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user