Optimised chart.

This commit is contained in:
James Cole
2015-12-29 08:27:13 +01:00
parent 77056dcf8d
commit 38fe9e7e1c
3 changed files with 81 additions and 16 deletions

View File

@@ -20,6 +20,18 @@ interface BudgetRepositoryInterface
*/
public function cleanupBudgets();
/**
* Returns the expenses for this budget grouped per day, with the date
* in "date" (a string, not a Carbon) and the amount in "dailyAmount".
*
* @param Budget $budget
* @param Carbon $start
* @param Carbon $end
*
* @return Collection
*/
public function getExpensesPerDay(Budget $budget, Carbon $start, Carbon $end);
/**
* @param Budget $budget
*