firefly-iii/app/Repositories/Account/AccountTaskerInterface.php

62 lines
1.5 KiB
PHP
Raw Normal View History

2016-10-08 07:54:32 -05:00
<?php
/**
* AccountTaskerInterface.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\Repositories\Account;
2016-10-08 09:04:05 -05:00
use Carbon\Carbon;
use FireflyIII\Helpers\Collection\Account as AccountCollection;
use Illuminate\Support\Collection;
2016-10-08 07:54:32 -05:00
/**
* Interface AccountTaskerInterface
*
* @package FireflyIII\Repositories\Account
*/
interface AccountTaskerInterface
{
2016-10-09 00:58:27 -05:00
/**
* @param Collection $accounts
* @param Collection $excluded
* @param Carbon $start
* @param Carbon $end
*
* @see AccountTasker::amountInPeriod()
*
* @return string
*/
public function amountInInPeriod(Collection $accounts, Collection $excluded, Carbon $start, Carbon $end): string;
/**
* @param Collection $accounts
* @param Collection $excluded
* @param Carbon $start
* @param Carbon $end
*
* @see AccountTasker::amountInPeriod()
*
* @return string
*/
public function amountOutInPeriod(Collection $accounts, Collection $excluded, Carbon $start, Carbon $end): string;
2016-10-09 09:22:08 -05:00
/**
2016-12-06 01:59:08 -06:00
* @param Collection $accounts
2016-10-09 09:22:08 -05:00
* @param Carbon $start
* @param Carbon $end
*
2016-10-10 00:49:39 -05:00
* @return AccountCollection
2016-10-09 09:22:08 -05:00
*/
2016-12-06 01:59:08 -06:00
public function getAccountReport(Collection $accounts, Carbon $start, Carbon $end): AccountCollection;
2016-10-09 09:22:08 -05:00
2016-10-23 05:42:44 -05:00
}