Add code for budgets

This commit is contained in:
James Cole
2022-06-06 16:41:54 +02:00
parent d007db166a
commit c916fbbee9
10 changed files with 280 additions and 64 deletions

View File

@@ -185,6 +185,16 @@ interface BudgetRepositoryInterface
*/
public function setUser(User $user);
/**
* Used in the v2 API to calculate the amount of money spent in all active budgets.
*
* @param Carbon $start
* @param Carbon $end
*
* @return array
*/
public function spentInPeriod(Carbon $start, Carbon $end): array;
/**
* @param array $data
*