2015-06-27 11:44:18 +02:00
|
|
|
<?php
|
2016-02-05 12:08:25 +01:00
|
|
|
declare(strict_types = 1);
|
2016-01-28 21:50:20 +01:00
|
|
|
/**
|
|
|
|
* BudgetChartGeneratorInterface.php
|
|
|
|
* Copyright (C) 2016 Sander Dorigo
|
|
|
|
*
|
|
|
|
* This software may be modified and distributed under the terms
|
|
|
|
* of the MIT license. See the LICENSE file for details.
|
|
|
|
*/
|
2015-06-27 11:44:18 +02:00
|
|
|
|
|
|
|
namespace FireflyIII\Generator\Chart\Budget;
|
|
|
|
|
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
|
|
|
|
/**
|
2016-01-28 21:50:20 +01:00
|
|
|
* Interface BudgetChartGeneratorInterface
|
2015-06-27 11:44:18 +02:00
|
|
|
*
|
|
|
|
* @package FireflyIII\Generator\Chart\Budget
|
|
|
|
*/
|
2016-01-28 21:50:20 +01:00
|
|
|
interface BudgetChartGeneratorInterface
|
2015-06-27 11:44:18 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param Collection $entries
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function budget(Collection $entries);
|
|
|
|
|
2015-12-16 10:17:15 +01:00
|
|
|
/**
|
|
|
|
* @param Collection $entries
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
2015-12-18 16:38:50 +01:00
|
|
|
public function budgetLimit(Collection $entries);
|
2015-12-16 10:17:15 +01:00
|
|
|
|
2015-06-27 11:44:18 +02:00
|
|
|
/**
|
|
|
|
* @param Collection $entries
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
2015-12-18 16:38:50 +01:00
|
|
|
public function frontpage(Collection $entries);
|
2015-06-27 11:44:18 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Collection $entries
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
2015-12-18 16:38:50 +01:00
|
|
|
public function multiYear(Collection $entries);
|
2015-06-27 11:44:18 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Collection $budgets
|
|
|
|
* @param Collection $entries
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function year(Collection $budgets, Collection $entries);
|
|
|
|
|
2015-06-28 08:24:12 +02:00
|
|
|
}
|