2015-02-23 20:25:48 +01:00
|
|
|
<?php
|
2016-05-20 12:27:31 +02:00
|
|
|
/**
|
|
|
|
* ReportHelperInterface.php
|
|
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
|
|
*
|
|
|
|
* This software may be modified and distributed under the terms
|
|
|
|
* of the MIT license. See the LICENSE file for details.
|
|
|
|
*/
|
|
|
|
|
2016-02-05 12:08:25 +01:00
|
|
|
declare(strict_types = 1);
|
2015-02-23 20:25:48 +01:00
|
|
|
|
|
|
|
namespace FireflyIII\Helpers\Report;
|
|
|
|
|
|
|
|
use Carbon\Carbon;
|
2015-06-03 21:25:11 +02:00
|
|
|
use FireflyIII\Helpers\Collection\Bill as BillCollection;
|
2015-05-16 13:53:08 +02:00
|
|
|
use FireflyIII\Helpers\Collection\Category as CategoryCollection;
|
2015-05-16 14:51:23 +02:00
|
|
|
use FireflyIII\Helpers\Collection\Expense;
|
|
|
|
use FireflyIII\Helpers\Collection\Income;
|
2015-12-06 13:11:43 +01:00
|
|
|
use Illuminate\Support\Collection;
|
2015-02-23 20:25:48 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface ReportHelperInterface
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Helpers\Report
|
|
|
|
*/
|
|
|
|
interface ReportHelperInterface
|
|
|
|
{
|
2015-12-12 10:33:19 +01:00
|
|
|
|
2015-12-11 18:45:39 +01:00
|
|
|
/**
|
2016-01-19 13:59:54 +01: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.
|
|
|
|
*
|
2015-12-12 10:33:19 +01:00
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
2015-12-11 18:45:39 +01:00
|
|
|
* @param Collection $accounts
|
|
|
|
*
|
2016-01-19 13:59:54 +01:00
|
|
|
* @return BillCollection
|
2015-12-11 18:45:39 +01:00
|
|
|
*/
|
2016-04-06 16:37:28 +02:00
|
|
|
public function getBillReport(Carbon $start, Carbon $end, Collection $accounts): BillCollection;
|
2015-12-11 17:53:17 +01:00
|
|
|
|
2015-12-11 18:03:13 +01:00
|
|
|
/**
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
* @param Collection $accounts
|
|
|
|
*
|
|
|
|
* @return CategoryCollection
|
|
|
|
*/
|
2016-04-06 16:37:28 +02:00
|
|
|
public function getCategoryReport(Carbon $start, Carbon $end, Collection $accounts): CategoryCollection;
|
2015-12-11 18:03:13 +01:00
|
|
|
|
2015-12-11 16:36:40 +01:00
|
|
|
/**
|
|
|
|
* Get a full report on the users expenses during the period for a list of accounts.
|
2015-05-16 13:06:38 +02:00
|
|
|
*
|
2015-12-11 17:53:17 +01:00
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
2015-12-11 16:36:40 +01:00
|
|
|
* @param Collection $accounts
|
2015-05-16 13:06:38 +02:00
|
|
|
*
|
|
|
|
* @return Expense
|
|
|
|
*/
|
2016-04-06 16:37:28 +02:00
|
|
|
public function getExpenseReport(Carbon $start, Carbon $end, Collection $accounts): Expense;
|
2015-05-16 13:06:38 +02:00
|
|
|
|
2015-12-11 09:39:17 +01: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
|
|
|
|
*/
|
2016-04-06 16:37:28 +02:00
|
|
|
public function getIncomeReport(Carbon $start, Carbon $end, Collection $accounts): Income;
|
2015-12-11 09:39:17 +01:00
|
|
|
|
2015-02-23 21:19:16 +01:00
|
|
|
/**
|
|
|
|
* @param Carbon $date
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
2016-04-06 16:37:28 +02:00
|
|
|
public function listOfMonths(Carbon $date): array;
|
2015-02-23 20:25:48 +01:00
|
|
|
|
2016-03-01 21:31:25 +01:00
|
|
|
/**
|
|
|
|
* Returns an array of tags and their comparitive size with amounts bla bla.
|
|
|
|
*
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
* @param Collection $accounts
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function tagReport(Carbon $start, Carbon $end, Collection $accounts): array;
|
|
|
|
|
2015-03-29 08:14:32 +02:00
|
|
|
}
|