2015-02-23 13:25:48 -06:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FireflyIII\Helpers\Report;
|
|
|
|
|
|
|
|
use Carbon\Carbon;
|
2015-05-26 05:08:46 -05:00
|
|
|
use FireflyIII\Helpers\Collection\Account as AccountCollection;
|
2015-05-16 07:51:23 -05:00
|
|
|
use FireflyIII\Helpers\Collection\Balance;
|
2015-06-03 14:25:11 -05:00
|
|
|
use FireflyIII\Helpers\Collection\Bill as BillCollection;
|
2015-05-16 06:53:08 -05:00
|
|
|
use FireflyIII\Helpers\Collection\Budget as BudgetCollection;
|
|
|
|
use FireflyIII\Helpers\Collection\Category as CategoryCollection;
|
2015-05-16 07:51:23 -05:00
|
|
|
use FireflyIII\Helpers\Collection\Expense;
|
|
|
|
use FireflyIII\Helpers\Collection\Income;
|
2015-12-06 06:11:43 -06:00
|
|
|
use Illuminate\Support\Collection;
|
2015-02-23 13:25:48 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface ReportHelperInterface
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Helpers\Report
|
|
|
|
*/
|
|
|
|
interface ReportHelperInterface
|
|
|
|
{
|
|
|
|
|
2015-12-06 06:11:43 -06:00
|
|
|
/**
|
|
|
|
* This method generates a full report for the given period on all
|
|
|
|
* given accounts
|
|
|
|
*
|
2015-12-11 02:39:17 -06:00
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
2015-12-06 06:11:43 -06:00
|
|
|
* @param Collection $accounts
|
|
|
|
*
|
|
|
|
* @return AccountCollection
|
|
|
|
*/
|
2015-12-13 02:41:22 -06:00
|
|
|
public function getAccountReport(Carbon $start, Carbon $end, Collection $accounts);
|
2015-12-06 06:11:43 -06:00
|
|
|
|
2015-12-12 03:33:19 -06:00
|
|
|
/**
|
|
|
|
* This method generates a full report for the given period on all
|
|
|
|
* the users bills and their payments.
|
|
|
|
*
|
|
|
|
* Excludes bills which have not had a payment on the mentioned accounts.
|
|
|
|
*
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
* @param Collection $accounts
|
|
|
|
*
|
|
|
|
* @return BillCollection
|
|
|
|
*/
|
2015-12-13 02:41:22 -06:00
|
|
|
public function getBillReport(Carbon $start, Carbon $end, Collection $accounts);
|
2015-12-12 03:33:19 -06:00
|
|
|
|
2015-12-11 11:45:39 -06:00
|
|
|
/**
|
2015-12-12 03:33:19 -06:00
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
2015-12-11 11:45:39 -06:00
|
|
|
* @param Collection $accounts
|
|
|
|
*
|
|
|
|
* @return Balance
|
|
|
|
*/
|
2015-12-13 02:41:22 -06:00
|
|
|
public function getBalanceReport(Carbon $start, Carbon $end, Collection $accounts);
|
2015-12-11 11:45:39 -06:00
|
|
|
|
2015-12-11 10:53:17 -06:00
|
|
|
/**
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
* @param Collection $accounts
|
|
|
|
*
|
|
|
|
* @return BudgetCollection
|
|
|
|
*/
|
2015-12-13 02:41:22 -06:00
|
|
|
public function getBudgetReport(Carbon $start, Carbon $end, Collection $accounts);
|
2015-12-11 10:53:17 -06:00
|
|
|
|
2015-12-11 11:03:13 -06:00
|
|
|
/**
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
* @param Collection $accounts
|
|
|
|
*
|
|
|
|
* @return CategoryCollection
|
|
|
|
*/
|
2015-12-13 02:41:22 -06:00
|
|
|
public function getCategoryReport(Carbon $start, Carbon $end, Collection $accounts);
|
2015-12-11 11:03:13 -06:00
|
|
|
|
2015-12-11 09:36:40 -06:00
|
|
|
/**
|
|
|
|
* Get a full report on the users expenses during the period for a list of accounts.
|
2015-05-16 06:06:38 -05:00
|
|
|
*
|
2015-12-11 10:53:17 -06:00
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
2015-12-11 09:36:40 -06:00
|
|
|
* @param Collection $accounts
|
2015-05-16 06:06:38 -05:00
|
|
|
*
|
|
|
|
* @return Expense
|
|
|
|
*/
|
2015-12-13 02:41:22 -06:00
|
|
|
public function getExpenseReport($start, $end, Collection $accounts);
|
2015-05-16 06:06:38 -05:00
|
|
|
|
2015-12-11 02:39:17 -06:00
|
|
|
/**
|
|
|
|
* Get a full report on the users incomes during the period for the given accounts.
|
|
|
|
*
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
* @param Collection $accounts
|
|
|
|
*
|
|
|
|
* @return Income
|
|
|
|
*/
|
2015-12-13 02:41:22 -06:00
|
|
|
public function getIncomeReport($start, $end, Collection $accounts);
|
2015-12-11 02:39:17 -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
|
|
|
}
|