2014-10-28 05:58:48 +01:00
|
|
|
<?php
|
|
|
|
|
2014-12-13 22:11:51 +01:00
|
|
|
namespace FireflyIII\Database\TransactionJournal;
|
2014-11-12 22:37:09 +01:00
|
|
|
|
2014-10-29 10:30:52 +01:00
|
|
|
use Carbon\Carbon;
|
|
|
|
use Illuminate\Support\Collection;
|
2014-10-28 05:58:48 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface TransactionJournalInterface
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Database
|
|
|
|
*/
|
|
|
|
interface TransactionJournalInterface
|
|
|
|
{
|
2014-11-12 22:37:09 +01:00
|
|
|
/**
|
|
|
|
* Get the very first transaction journal.
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function first();
|
|
|
|
|
2014-10-29 10:30:52 +01:00
|
|
|
/**
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
*
|
|
|
|
* @return Collection
|
|
|
|
*/
|
|
|
|
public function getInDateRange(Carbon $start, Carbon $end);
|
2014-10-28 05:58:48 +01:00
|
|
|
|
2014-11-02 18:46:01 +01:00
|
|
|
/**
|
|
|
|
* @param Carbon $date
|
|
|
|
*
|
|
|
|
* @return float
|
|
|
|
*/
|
2014-11-12 22:37:09 +01:00
|
|
|
public function getSumOfExpensesByMonth(Carbon $date);
|
2014-11-02 18:46:01 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Carbon $date
|
|
|
|
*
|
|
|
|
* @return float
|
|
|
|
*/
|
2014-11-12 22:37:09 +01:00
|
|
|
public function getSumOfIncomesByMonth(Carbon $date);
|
2014-11-02 18:46:01 +01:00
|
|
|
|
2014-10-28 05:58:48 +01:00
|
|
|
}
|