Files
firefly-iii/app/Helpers/Report/ReportQueryInterface.php

67 lines
1.8 KiB
PHP
Raw Normal View History

2015-02-23 20:25:48 +01:00
<?php
2016-02-05 12:08:25 +01:00
declare(strict_types = 1);
2015-02-23 20:25:48 +01:00
namespace FireflyIII\Helpers\Report;
use Carbon\Carbon;
use Illuminate\Support\Collection;
/**
* Interface ReportQueryInterface
*
* @package FireflyIII\Helpers\Report
*/
interface ReportQueryInterface
{
/**
2016-01-01 21:15:03 +01:00
* Returns an array of the amount of money spent in the given accounts (on withdrawals, opening balances and transfers)
* grouped by month like so: "2015-01" => '123.45'
*
2016-01-01 11:32:08 +01:00
* @param Collection $accounts
2015-12-18 16:38:50 +01:00
* @param Carbon $start
* @param Carbon $end
*
2016-01-01 21:15:03 +01:00
* @return array
*/
2016-04-06 16:37:28 +02:00
public function earnedPerMonth(Collection $accounts, Carbon $start, Carbon $end): array;
2016-01-01 11:32:08 +01:00
/**
* This method returns all the "out" transaction journals for the given account and given period. The amount
* is stored in "journalAmount".
*
* @param Collection $accounts
* @param Carbon $start
* @param Carbon $end
*
* @return Collection
*/
2016-04-06 16:37:28 +02:00
public function expense(Collection $accounts, Carbon $start, Carbon $end): Collection;
2015-12-31 08:26:04 +01:00
/**
2016-01-01 21:15:03 +01:00
* This method returns all the "in" transaction journals for the given account and given period. The amount
* is stored in "journalAmount".
2015-12-31 08:26:04 +01:00
*
* @param Collection $accounts
2016-01-01 12:41:00 +01:00
* @param Carbon $start
* @param Carbon $end
2015-12-31 08:26:04 +01:00
*
2016-01-01 21:15:03 +01:00
* @return Collection
2015-12-31 08:26:04 +01:00
*/
2016-04-06 16:37:28 +02:00
public function income(Collection $accounts, Carbon $start, Carbon $end): Collection;
2015-12-31 08:26:04 +01:00
/**
* Returns an array of the amount of money spent in the given accounts (on withdrawals, opening balances and transfers)
* grouped by month like so: "2015-01" => '123.45'
*
* @param Collection $accounts
2016-01-01 12:41:00 +01:00
* @param Carbon $start
* @param Carbon $end
2015-12-31 08:26:04 +01:00
*
* @return array
*/
2016-04-06 16:37:28 +02:00
public function spentPerMonth(Collection $accounts, Carbon $start, Carbon $end): array;
2015-12-31 08:26:04 +01:00
2015-05-16 14:51:23 +02:00
2015-03-29 08:14:32 +02:00
}