* * That array contains: * * budgetid: * * Where yyyy-mm-dd is the date and is the money spent using WITHDRAWALS in the $budget * from the given users accounts.. * * @param Collection $accounts * @param Carbon $start * @param Carbon $end * * @return array */ public function spentAllPerDayForAccounts(Collection $accounts, Carbon $start, Carbon $end); /** * Returns a list of expenses (in the field "spent", grouped per budget per account. * * @param Collection $budgets * @param Collection $accounts * @param Carbon $start * @param Carbon $end * * @return Collection */ public function spentPerBudgetPerAccount(Collection $budgets, Collection $accounts, Carbon $start, Carbon $end); /** * Returns an array with the following key:value pairs: * * yyyy-mm-dd: * * Where yyyy-mm-dd is the date and is the money spent using WITHDRAWALS in the $budget * from all the users accounts. * * @param Budget $budget * @param Carbon $start * @param Carbon $end * * @return array */ public function spentPerDay(Budget $budget, Carbon $start, Carbon $end); /** * @param array $data * * @return Budget */ public function store(array $data); /** * @param Budget $budget * @param array $data * * @return Budget */ public function update(Budget $budget, array $data); /** * @param Budget $budget * @param Carbon $date * @param int $amount * * @return mixed */ public function updateLimitAmount(Budget $budget, Carbon $date, int $amount); }