2014-07-03 21:31:32 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Firefly\Storage\TransactionJournal;
|
|
|
|
|
|
|
|
|
2014-07-06 15:18:11 +02:00
|
|
|
interface TransactionJournalRepositoryInterface
|
|
|
|
{
|
2014-07-03 21:31:32 +02:00
|
|
|
public function createSimpleJournal(\Account $from, \Account $to, $description, $amount, \Carbon\Carbon $date);
|
|
|
|
|
2014-07-06 21:07:52 +02:00
|
|
|
public function get();
|
|
|
|
|
2014-07-16 21:11:43 +02:00
|
|
|
public function find($journalId);
|
|
|
|
|
2014-07-06 21:07:52 +02:00
|
|
|
public function getByAccount(\Account $account, $count = 25);
|
|
|
|
|
2014-07-17 20:52:54 +02:00
|
|
|
public function getByAccountAndDate(\Account $account, \Carbon\Carbon $date);
|
2014-07-15 22:16:29 +02:00
|
|
|
|
2014-07-17 20:52:54 +02:00
|
|
|
public function getByDateRange(\Carbon\Carbon $start, \Carbon\Carbon $end);
|
2014-07-09 12:56:06 +02:00
|
|
|
|
2014-07-06 21:07:52 +02:00
|
|
|
}
|