firefly-iii/app/lib/FireflyIII/Database/Ifaces/TransactionJournalInterface.php
2014-11-12 22:37:09 +01:00

44 lines
777 B
PHP

<?php
namespace FireflyIII\Database\Ifaces;
use Carbon\Carbon;
use Illuminate\Support\Collection;
/**
* Interface TransactionJournalInterface
*
* @package FireflyIII\Database
*/
interface TransactionJournalInterface
{
/**
* Get the very first transaction journal.
*
* @return mixed
*/
public function first();
/**
* @param Carbon $start
* @param Carbon $end
*
* @return Collection
*/
public function getInDateRange(Carbon $start, Carbon $end);
/**
* @param Carbon $date
*
* @return float
*/
public function getSumOfExpensesByMonth(Carbon $date);
/**
* @param Carbon $date
*
* @return float
*/
public function getSumOfIncomesByMonth(Carbon $date);
}