mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-30 12:43:57 -06:00
42 lines
769 B
PHP
42 lines
769 B
PHP
<?php
|
|
|
|
namespace FireflyIII\Database\Ifaces;
|
|
use Carbon\Carbon;
|
|
use Illuminate\Support\Collection;
|
|
|
|
/**
|
|
* Interface TransactionJournalInterface
|
|
*
|
|
* @package FireflyIII\Database
|
|
*/
|
|
interface TransactionJournalInterface
|
|
{
|
|
/**
|
|
* @param Carbon $start
|
|
* @param Carbon $end
|
|
*
|
|
* @return Collection
|
|
*/
|
|
public function getInDateRange(Carbon $start, Carbon $end);
|
|
|
|
/**
|
|
* Get the very first transaction journal.
|
|
* @return mixed
|
|
*/
|
|
public function first();
|
|
|
|
/**
|
|
* @param Carbon $date
|
|
*
|
|
* @return float
|
|
*/
|
|
public function getSumOfIncomesByMonth(Carbon $date);
|
|
|
|
/**
|
|
* @param Carbon $date
|
|
*
|
|
* @return float
|
|
*/
|
|
public function getSumOfExpensesByMonth(Carbon $date);
|
|
|
|
}
|