mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
43 lines
1.1 KiB
PHP
43 lines
1.1 KiB
PHP
<?php
|
|
declare(strict_types = 1);
|
|
|
|
namespace FireflyIII\Helpers\Report;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Support\Collection;
|
|
|
|
/**
|
|
* Interface ReportQueryInterface
|
|
*
|
|
* @package FireflyIII\Helpers\Report
|
|
*/
|
|
interface ReportQueryInterface
|
|
{
|
|
|
|
/**
|
|
* 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
|
|
* @param Carbon $start
|
|
* @param Carbon $end
|
|
*
|
|
* @return array
|
|
*/
|
|
public function earnedPerMonth(Collection $accounts, Carbon $start, Carbon $end): array;
|
|
|
|
/**
|
|
* 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
|
|
* @param Carbon $start
|
|
* @param Carbon $end
|
|
*
|
|
* @return array
|
|
*/
|
|
public function spentPerMonth(Collection $accounts, Carbon $start, Carbon $end): array;
|
|
|
|
|
|
}
|