firefly-iii/app/lib/FireflyIII/Database/TransactionJournal/TransactionJournalInterface.php

44 lines
789 B
PHP
Raw Normal View History

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