More refactoring

This commit is contained in:
James Cole
2016-05-13 17:22:24 +02:00
parent 3e36a29c23
commit 5166171e5d
7 changed files with 177 additions and 131 deletions

View File

@@ -91,16 +91,22 @@ interface AccountRepositoryInterface
/**
* Get the accounts of a user that have piggy banks connected to them.
*
* @return Collection
*/
public function getPiggyBankAccounts(): Collection;
/**
* Get savings accounts and the balance difference in the period.
* @param Carbon $start
* @param Carbon $end
*
* @return Collection
*/
public function getSavingsAccounts() : Collection;
public function getPiggyBankAccounts(Carbon $start, Carbon $end): Collection;
/**
* Get savings accounts.
*
* @param Carbon $start
* @param Carbon $end
*
* @return Collection
*/
public function getSavingsAccounts(Carbon $start, Carbon $end): Collection;
/**
* @param Collection $accounts