2014-07-03 14:31:32 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Firefly\Storage\TransactionJournal;
|
|
|
|
|
|
|
|
|
2014-07-06 08:18:11 -05:00
|
|
|
interface TransactionJournalRepositoryInterface
|
|
|
|
{
|
2014-07-03 14:31:32 -05:00
|
|
|
public function createSimpleJournal(\Account $from, \Account $to, $description, $amount, \Carbon\Carbon $date);
|
|
|
|
|
2014-07-06 14:07:52 -05:00
|
|
|
public function get();
|
|
|
|
|
2014-07-16 14:11:43 -05:00
|
|
|
public function find($journalId);
|
|
|
|
|
2014-07-23 23:47:28 -05:00
|
|
|
public function getByAccountInDateRange(\Account $account, $count = 25,\Carbon\Carbon $start, \Carbon\Carbon $end);
|
2014-07-06 14:07:52 -05:00
|
|
|
|
2014-07-17 13:52:54 -05:00
|
|
|
public function getByAccountAndDate(\Account $account, \Carbon\Carbon $date);
|
2014-07-15 15:16:29 -05:00
|
|
|
|
2014-07-17 13:52:54 -05:00
|
|
|
public function getByDateRange(\Carbon\Carbon $start, \Carbon\Carbon $end);
|
2014-07-09 05:56:06 -05:00
|
|
|
|
2014-07-06 14:07:52 -05:00
|
|
|
}
|