Code rearrangement.

This commit is contained in:
James Cole
2016-01-19 13:59:54 +01:00
parent 9360eb6a70
commit f3fff6f1c5
18 changed files with 805 additions and 822 deletions

View File

@@ -24,6 +24,14 @@ interface AccountRepositoryInterface
*/
public function countAccounts(array $types);
/**
* @param Account $account
* @param Account $moveTo
*
* @return boolean
*/
public function destroy(Account $account, Account $moveTo = null);
/**
* @param $accountId
*
@@ -33,14 +41,6 @@ interface AccountRepositoryInterface
*/
public function find($accountId);
/**
* @param Account $account
* @param Account $moveTo
*
* @return boolean
*/
public function destroy(Account $account, Account $moveTo = null);
/**
* @param array $types
*
@@ -48,14 +48,6 @@ interface AccountRepositoryInterface
*/
public function getAccounts(array $types);
/**
* @param TransactionJournal $journal
* @param Account $account
*
* @return Transaction
*/
public function getFirstTransaction(TransactionJournal $journal, Account $account);
/**
* This method returns the users credit cards, along with some basic information about the
* balance they have on their CC. To be used in the JSON boxes on the front page that say
@@ -70,11 +62,12 @@ interface AccountRepositoryInterface
public function getCreditCards(Carbon $date);
/**
* Get the accounts of a user that have piggy banks connected to them.
* @param TransactionJournal $journal
* @param Account $account
*
* @return Collection
* @return Transaction
*/
public function getPiggyBankAccounts();
public function getFirstTransaction(TransactionJournal $journal, Account $account);
/**
* @param Preference $preference
@@ -101,9 +94,11 @@ interface AccountRepositoryInterface
public function getJournals(Account $account, $page);
/**
* @return string
* Get the accounts of a user that have piggy banks connected to them.
*
* @return Collection
*/
public function sumOfEverything();
public function getPiggyBankAccounts();
/**
* Get savings accounts and the balance difference in the period.
@@ -134,6 +129,11 @@ interface AccountRepositoryInterface
*/
public function store(array $data);
/**
* @return string
*/
public function sumOfEverything();
/**
* @param Account $account
* @param array $data