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