Files
firefly-iii/app/Generator/Chart/Account/AccountChartGeneratorInterface.php

72 lines
1.6 KiB
PHP
Raw Normal View History

<?php
/**
* AccountChartGeneratorInterface.php
2016-04-01 16:44:46 +02:00
* 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\Account;
2015-06-27 11:44:18 +02:00
use Carbon\Carbon;
2015-06-27 08:38:27 +02:00
use FireflyIII\Models\Account;
use Illuminate\Support\Collection;
/**
* Interface AccountChartGeneratorInterface
*
* @package FireflyIII\Generator\Chart\Account
*/
interface AccountChartGeneratorInterface
{
2016-11-20 18:31:29 +01:00
/**
* @param array $values
* @param array $names
*
* @return array
*/
public function pieChart(array $values, array $names): array;
2016-10-14 19:59:10 +02:00
/**
* @param Collection $accounts
* @param Carbon $start
* @param Carbon $end
*
* @return array
*/
2016-10-22 09:39:31 +02:00
public function expenseAccounts(Collection $accounts, Carbon $start, Carbon $end): array;
2015-06-27 08:38:27 +02:00
/**
* @param Collection $accounts
* @param Carbon $start
* @param Carbon $end
*
* @return array
*/
2016-10-22 09:39:31 +02:00
public function frontpage(Collection $accounts, Carbon $start, Carbon $end): array;
2015-06-27 08:38:27 +02:00
/**
2016-01-19 13:59:54 +01:00
* @param Collection $accounts
* @param Carbon $start
* @param Carbon $end
2015-06-27 08:38:27 +02:00
*
* @return array
*/
2016-10-22 09:39:31 +02:00
public function revenueAccounts(Collection $accounts, Carbon $start, Carbon $end): array;
/**
2016-01-19 13:59:54 +01:00
* @param Account $account
2016-05-13 17:22:24 +02:00
* @param array $labels
* @param array $dataSet
*
* @return array
*/
2016-05-13 17:22:24 +02:00
public function single(Account $account, array $labels, array $dataSet): array;
2015-06-28 08:24:12 +02:00
}