2015-06-27 01:18:47 -05:00
|
|
|
<?php
|
2016-02-05 05:08:25 -06:00
|
|
|
declare(strict_types = 1);
|
2016-01-28 14:50:20 -06:00
|
|
|
/**
|
|
|
|
* AccountChartGeneratorInterface.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 01:18:47 -05:00
|
|
|
|
|
|
|
namespace FireflyIII\Generator\Chart\Account;
|
2015-06-27 04:44:18 -05:00
|
|
|
|
|
|
|
use Carbon\Carbon;
|
2015-06-27 01:38:27 -05:00
|
|
|
use FireflyIII\Models\Account;
|
2015-06-27 01:18:47 -05:00
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
|
|
|
|
/**
|
2016-01-28 14:50:20 -06:00
|
|
|
* Interface AccountChartGeneratorInterface
|
2015-06-27 01:18:47 -05:00
|
|
|
*
|
|
|
|
* @package FireflyIII\Generator\Chart\Account
|
|
|
|
*/
|
2016-01-28 14:50:20 -06:00
|
|
|
interface AccountChartGeneratorInterface
|
2015-06-27 01:18:47 -05:00
|
|
|
{
|
|
|
|
|
2015-06-27 01:38:27 -05:00
|
|
|
/**
|
|
|
|
* @param Collection $accounts
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
2016-02-18 00:21:48 -06:00
|
|
|
public function expenseAccounts(Collection $accounts, Carbon $start, Carbon $end): array;
|
2015-06-27 01:38:27 -05:00
|
|
|
|
|
|
|
/**
|
2016-01-19 06:59:54 -06:00
|
|
|
* @param Collection $accounts
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
2015-06-27 01:38:27 -05:00
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
2016-02-18 00:21:48 -06:00
|
|
|
public function frontpage(Collection $accounts, Carbon $start, Carbon $end): array;
|
2015-08-01 00:22:48 -05:00
|
|
|
|
|
|
|
/**
|
2016-01-19 06:59:54 -06:00
|
|
|
* @param Account $account
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
2015-08-01 00:22:48 -05:00
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
2016-02-18 00:21:48 -06:00
|
|
|
public function single(Account $account, Carbon $start, Carbon $end): array;
|
2015-06-28 01:24:12 -05:00
|
|
|
}
|