mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code cleanup
This commit is contained in:
@@ -53,8 +53,6 @@ interface PiggyBankRepositoryInterface
|
||||
|
||||
public function destroyAll(): void;
|
||||
|
||||
public function purgeAll(): void;
|
||||
|
||||
public function find(int $piggyBankId): ?PiggyBank;
|
||||
|
||||
/**
|
||||
@@ -70,22 +68,20 @@ interface PiggyBankRepositoryInterface
|
||||
* Get current amount saved in piggy bank.
|
||||
*/
|
||||
public function getCurrentAmount(PiggyBank $piggyBank, ?Account $account = null): string;
|
||||
/**
|
||||
* Get current amount saved in piggy bank.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get all events.
|
||||
*/
|
||||
public function getEvents(PiggyBank $piggyBank): Collection;
|
||||
/**
|
||||
* Get current amount saved in piggy bank.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Used for connecting to a piggy bank.
|
||||
*/
|
||||
public function getExactAmount(PiggyBank $piggyBank, PiggyBankRepetition $repetition, TransactionJournal $journal): string;
|
||||
|
||||
public function updateNote(PiggyBank $piggyBank, string $note): void;
|
||||
|
||||
/**
|
||||
* Return note for piggy bank.
|
||||
*/
|
||||
@@ -113,6 +109,8 @@ interface PiggyBankRepositoryInterface
|
||||
*/
|
||||
public function leftOnAccount(PiggyBank $piggyBank, Account $account, Carbon $date): string;
|
||||
|
||||
public function purgeAll(): void;
|
||||
|
||||
public function removeAmount(PiggyBank $piggyBank, Account $account, string $amount, ?TransactionJournal $journal = null): bool;
|
||||
|
||||
public function removeAmountFromAll(PiggyBank $piggyBank, string $amount): void;
|
||||
@@ -148,4 +146,6 @@ interface PiggyBankRepositoryInterface
|
||||
* Update existing piggy bank.
|
||||
*/
|
||||
public function update(PiggyBank $piggyBank, array $data): PiggyBank;
|
||||
|
||||
public function updateNote(PiggyBank $piggyBank, string $note): void;
|
||||
}
|
||||
|
Reference in New Issue
Block a user