Add new tests for transformers.

This commit is contained in:
James Cole
2018-12-20 05:46:05 +01:00
parent c1ae0ab57d
commit 6f54f41946
8 changed files with 255 additions and 408 deletions

View File

@@ -35,6 +35,7 @@ use Illuminate\Support\Collection;
*/
interface PiggyBankRepositoryInterface
{
/**
* @param PiggyBank $piggyBank
* @param string $amount
@@ -152,6 +153,15 @@ interface PiggyBankRepositoryInterface
*/
public function getMaxOrder(): int;
/**
* Return note for piggy bank.
*
* @param PiggyBank $piggyBank
*
* @return string
*/
public function getNoteText(PiggyBank $piggyBank): string;
/**
* Return all piggy banks.
*
@@ -182,6 +192,13 @@ interface PiggyBankRepositoryInterface
*/
public function getSuggestedMonthlyAmount(PiggyBank $piggyBank): string;
/**
* @param PiggyBankEvent $event
*
* @return int|null
*/
public function getTransactionWithEvent(PiggyBankEvent $event): ?int;
/**
* Get for piggy account what is left to put in piggies.
*