mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
66 lines
1.4 KiB
PHP
66 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* ReportChartGeneratorInterface.php
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
declare(strict_types = 1);
|
|
|
|
namespace FireflyIII\Generator\Chart\Report;
|
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
/**
|
|
* Interface ReportChartGeneratorInterface
|
|
*
|
|
* @package FireflyIII\Generator\Chart\Report
|
|
*/
|
|
interface ReportChartGeneratorInterface
|
|
{
|
|
|
|
/**
|
|
* @param Collection $entries
|
|
*
|
|
* @return array
|
|
*/
|
|
public function multiYearOperations(Collection $entries): array;
|
|
|
|
/**
|
|
* @param string $income
|
|
* @param string $expense
|
|
* @param int $count
|
|
*
|
|
* @return array
|
|
*/
|
|
public function multiYearSum(string $income, string $expense, int $count): array;
|
|
|
|
/**
|
|
* @param Collection $entries
|
|
*
|
|
* @return array
|
|
*/
|
|
public function netWorth(Collection $entries): array;
|
|
|
|
/**
|
|
* @param Collection $entries
|
|
*
|
|
* @return array
|
|
*/
|
|
public function yearOperations(Collection $entries): array;
|
|
|
|
/**
|
|
* @param string $income
|
|
* @param string $expense
|
|
* @param int $count
|
|
*
|
|
* @return array
|
|
*/
|
|
public function yearSum(string $income, string $expense, int $count): array;
|
|
|
|
}
|