2016-01-27 20:54:14 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* BudgetReportHelperInterface.php
|
2016-04-01 16:44:46 +02:00
|
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
2016-01-27 20:54:14 +01:00
|
|
|
*
|
2016-10-05 06:52:15 +02:00
|
|
|
* This software may be modified and distributed under the terms of the
|
|
|
|
* Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
|
|
*
|
|
|
|
* See the LICENSE file for details.
|
2016-01-27 20:54:14 +01:00
|
|
|
*/
|
|
|
|
|
2016-05-20 12:27:31 +02:00
|
|
|
declare(strict_types = 1);
|
|
|
|
|
2016-01-27 20:54:14 +01:00
|
|
|
namespace FireflyIII\Helpers\Report;
|
|
|
|
|
|
|
|
|
|
|
|
use Carbon\Carbon;
|
|
|
|
use FireflyIII\Helpers\Collection\Budget as BudgetCollection;
|
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface BudgetReportHelperInterface
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Helpers\Report
|
|
|
|
*/
|
|
|
|
interface BudgetReportHelperInterface
|
|
|
|
{
|
2016-06-16 20:52:30 +02:00
|
|
|
/**
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
* @param Collection $accounts
|
|
|
|
*
|
|
|
|
* @return Collection
|
|
|
|
*/
|
|
|
|
public function budgetYearOverview(Carbon $start, Carbon $end, Collection $accounts): Collection;
|
|
|
|
|
2016-11-06 16:17:22 +01:00
|
|
|
/**
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
* @param Collection $accounts
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function getBudgetMultiYear(Carbon $start, Carbon $end, Collection $accounts): array;
|
|
|
|
|
2016-01-27 20:54:14 +01:00
|
|
|
/**
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
* @param Collection $accounts
|
|
|
|
*
|
|
|
|
* @return BudgetCollection
|
|
|
|
*/
|
2016-04-06 16:37:28 +02:00
|
|
|
public function getBudgetReport(Carbon $start, Carbon $end, Collection $accounts): BudgetCollection;
|
2016-04-24 20:00:20 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
* @param Collection $accounts
|
|
|
|
*
|
|
|
|
* @return Collection
|
|
|
|
*/
|
|
|
|
public function getBudgetsWithExpenses(Carbon $start, Carbon $end, Collection $accounts): Collection;
|
2016-05-08 13:45:23 +02:00
|
|
|
|
2016-11-06 16:17:22 +01:00
|
|
|
/**
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function listOfYears(Carbon $start, Carbon $end): array;
|
|
|
|
|
2016-01-28 21:50:20 +01:00
|
|
|
}
|