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

80 lines
1.8 KiB
PHP
Raw Normal View History

2015-02-23 13:25:48 -06:00
<?php
namespace FireflyIII\Helpers\Report;
use Carbon\Carbon;
2015-05-16 06:06:38 -05:00
use FireflyIII\Helpers\Collection\Account;
use FireflyIII\Helpers\Collection\Expense;
use FireflyIII\Helpers\Collection\Income;
2015-05-16 06:53:08 -05:00
use FireflyIII\Helpers\Collection\Budget as BudgetCollection;
use FireflyIII\Helpers\Collection\Category as CategoryCollection;
2015-02-23 13:25:48 -06:00
/**
* Interface ReportHelperInterface
*
* @package FireflyIII\Helpers\Report
*/
interface ReportHelperInterface
{
/**
2015-05-16 06:06:38 -05:00
* This method generates a full report for the given period on all
* the users asset and cash accounts.
2015-03-10 13:57:20 -05:00
*
2015-05-16 06:06:38 -05:00
* @param Carbon $date
* @param Carbon $end
* @param boolean $shared
*
* @return Account
*/
public function getAccountReport(Carbon $date, Carbon $end, $shared);
2015-05-16 06:53:08 -05:00
/**
* @param Carbon $start
* @param Carbon $end
* @param boolean $shared
*
* @return BudgetCollection
*/
public function getBudgetReport(Carbon $start, Carbon $end, $shared);
/**
* @param Carbon $start
* @param Carbon $end
* @param boolean $shared
*
* @return CategoryCollection
*/
public function getCategoryReport(Carbon $start, Carbon $end, $shared);
2015-05-16 06:06:38 -05:00
/**
* Get a full report on the users expenses during the period.
*
* @param Carbon $start
* @param Carbon $end
* @param boolean $shared
*
* @return Expense
*/
public function getExpenseReport($start, $end, $shared);
/**
* Get a full report on the users incomes during the period.
*
* @param Carbon $start
* @param Carbon $end
* @param boolean $shared
2015-02-23 13:25:48 -06:00
*
2015-05-16 06:06:38 -05:00
* @return Income
2015-02-23 13:25:48 -06:00
*/
2015-05-16 06:06:38 -05:00
public function getIncomeReport($start, $end, $shared);
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-29 01:14:32 -05:00
}