firefly-iii/app/Helpers/Report/ReportHelperInterface.php

58 lines
1.1 KiB
PHP
Raw Normal View History

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
{
/**
2015-03-10 13:57:20 -05:00
* This methods fails to take in account transfers FROM shared accounts.
2015-02-23 13:25:48 -06:00
*
2015-03-10 13:57:20 -05:00
* @param Carbon $start
* @param Carbon $end
* @param int $limit
*
* @return Collection
2015-02-23 13:25:48 -06:00
*/
2015-03-10 13:57:20 -05:00
public function expensesGroupedByAccount(Carbon $start, Carbon $end, $limit = 15);
2015-02-23 13:25:48 -06:00
/**
2015-03-10 13:57:20 -05:00
* This method gets some kind of list for a monthly overview.
*
2015-02-23 13:25:48 -06:00
* @param Carbon $date
*
2015-03-10 13:57:20 -05:00
* @return Collection
2015-02-23 13:25:48 -06:00
*/
2015-03-10 13:57:20 -05:00
public function getBudgetsForMonth(Carbon $date);
2015-02-23 13:25:48 -06:00
2015-02-23 14:19:16 -06:00
/**
* @param Carbon $date
*
* @return array
*/
2015-03-10 13:57:20 -05:00
public function listOfMonths(Carbon $date);
2015-02-23 13:25:48 -06:00
/**
2015-03-10 13:57:20 -05:00
* @param Carbon $date
2015-02-23 13:25:48 -06:00
*
2015-03-10 13:57:20 -05:00
* @return array
2015-02-23 13:25:48 -06:00
*/
2015-03-10 13:57:20 -05:00
public function listOfYears(Carbon $date);
2015-02-23 13:25:48 -06:00
/**
* @param Carbon $date
2015-03-10 13:57:20 -05:00
* @param bool $showSharedReports
2015-02-23 13:25:48 -06:00
*
2015-03-10 13:57:20 -05:00
* @return array
2015-02-23 13:25:48 -06:00
*/
2015-03-10 13:57:20 -05:00
public function yearBalanceReport(Carbon $date, $showSharedReports = false);
2015-02-23 13:25:48 -06:00
}