// * // * 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): array; // /** // * 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): Collection; // /** // * 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 // * @param Collection $accounts // * // * @return array // */ // public function spentPerDay(Budget $budget, Carbon $start, Carbon $end, Collection $accounts): array; /** * @param array $data * * @return Budget */ public function store(array $data): Budget; /** * @param Budget $budget * @param array $data * * @return Budget */ public function update(Budget $budget, array $data) : Budget; /** * @param Budget $budget * @param Carbon $start * @param Carbon $end * @param string $range * @param int $amount * * @return BudgetLimit */ public function updateLimitAmount(Budget $budget, Carbon $start, Carbon $end, string $range, int $amount) : BudgetLimit; }