This commit is contained in:
James Cole
2018-05-26 07:48:49 +02:00
parent 4031057bc0
commit 664451d0c6
12 changed files with 88 additions and 50 deletions

View File

@@ -67,6 +67,11 @@ interface PiggyBankRepositoryInterface
*/
public function canRemoveAmount(PiggyBank $piggyBank, string $amount): bool;
/**
* Correct order of piggies in case of issues.
*/
public function correctOrder(): void;
/**
* Create a new event.
*
@@ -86,11 +91,6 @@ interface PiggyBankRepositoryInterface
*/
public function createEventWithJournal(PiggyBank $piggyBank, string $amount, TransactionJournal $journal): PiggyBankEvent;
/**
* Correct order of piggies in case of issues.
*/
public function correctOrder(): void;
/**
* Destroy piggy bank.
*
@@ -173,6 +173,15 @@ interface PiggyBankRepositoryInterface
*/
public function getRepetition(PiggyBank $piggyBank): ?PiggyBankRepetition;
/**
* Returns the suggested amount the user should save per month, or "".
*
* @param PiggyBank $piggyBank
*
* @return string
*/
public function getSuggestedMonthlyAmount(PiggyBank $piggyBank): string;
/**
* Get for piggy account what is left to put in piggies.
*
@@ -202,7 +211,7 @@ interface PiggyBankRepositoryInterface
* Set specific piggy bank to specific order.
*
* @param PiggyBank $piggyBank
* @param int $order
* @param int $order
*
* @return bool
*/