Improve code for recurring transactions.

This commit is contained in:
James Cole
2018-06-21 18:57:51 +02:00
parent 7bdd4ddeab
commit 1d162edb59
15 changed files with 431 additions and 153 deletions

View File

@@ -97,6 +97,8 @@ interface RecurringRepositoryInterface
public function setUser(User $user): void;
/**
* Store a new recurring transaction.
*
* @param array $data
*
* @throws FireflyException
@@ -104,4 +106,14 @@ interface RecurringRepositoryInterface
*/
public function store(array $data): Recurrence;
/**
* Update a recurring transaction.
*
* @param Recurrence $recurrence
* @param array $data
*
* @return Recurrence
*/
public function update(Recurrence $recurrence, array $data): Recurrence;
}