This commit is contained in:
James Cole
2018-04-28 21:54:48 +02:00
parent 7f459df9e9
commit fdc9467218
7 changed files with 79 additions and 38 deletions

View File

@@ -86,6 +86,11 @@ 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.
*
@@ -196,12 +201,12 @@ interface PiggyBankRepositoryInterface
/**
* Set specific piggy bank to specific order.
*
* @param int $piggyBankId
* @param PiggyBank $piggyBank
* @param int $order
*
* @return bool
*/
public function setOrder(int $piggyBankId, int $order): bool;
public function setOrder(PiggyBank $piggyBank, int $order): bool;
/**
* @param User $user