2016-10-08 14:54:32 +02: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 16:04:05 +02:00
|
|
|
use Carbon\Carbon;
|
2017-01-30 16:40:49 +01:00
|
|
|
use FireflyIII\User;
|
2016-10-08 16:04:05 +02:00
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
|
2016-10-08 14:54:32 +02:00
|
|
|
/**
|
|
|
|
* Interface AccountTaskerInterface
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Repositories\Account
|
|
|
|
*/
|
|
|
|
interface AccountTaskerInterface
|
|
|
|
{
|
2016-10-09 07:58:27 +02: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 16:22:08 +02:00
|
|
|
/**
|
2016-12-06 08:59:08 +01:00
|
|
|
* @param Collection $accounts
|
2016-10-09 16:22:08 +02:00
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
*
|
2017-01-19 21:54:27 +01:00
|
|
|
* @return array
|
2016-10-09 16:22:08 +02:00
|
|
|
*/
|
2017-01-19 21:54:27 +01:00
|
|
|
public function getAccountReport(Collection $accounts, Carbon $start, Carbon $end): array;
|
2016-10-09 16:22:08 +02:00
|
|
|
|
2017-01-30 16:42:58 +01:00
|
|
|
/**
|
|
|
|
* @param User $user
|
|
|
|
*/
|
|
|
|
public function setUser(User $user);
|
|
|
|
|
2016-10-23 12:42:44 +02:00
|
|
|
}
|