2015-02-23 13:25:48 -06:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FireflyIII\Helpers\Report;
|
|
|
|
|
|
|
|
use Carbon\Carbon;
|
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface ReportHelperInterface
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Helpers\Report
|
|
|
|
*/
|
|
|
|
interface ReportHelperInterface
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Carbon $date
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function listOfMonths(Carbon $date);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Carbon $date
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function listOfYears(Carbon $date);
|
|
|
|
|
2015-02-23 14:19:16 -06:00
|
|
|
/**
|
|
|
|
* @param Carbon $date
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
2015-02-23 13:25:48 -06:00
|
|
|
public function yearBalanceReport(Carbon $date);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This methods fails to take in account transfers FROM shared accounts.
|
|
|
|
*
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
* @param int $limit
|
|
|
|
*
|
|
|
|
* @return Collection
|
|
|
|
*/
|
|
|
|
public function expensesGroupedByAccount(Carbon $start, Carbon $end, $limit = 15);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This method gets some kind of list for a monthly overview.
|
|
|
|
*
|
|
|
|
* @param Carbon $date
|
|
|
|
*
|
|
|
|
* @return Collection
|
|
|
|
*/
|
|
|
|
public function getBudgetsForMonth(Carbon $date);
|
|
|
|
}
|