mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Reformatted and checked everything. [skip ci]
This commit is contained in:
		| @@ -2,21 +2,69 @@ | ||||
|  | ||||
| namespace Firefly\Storage\TransactionJournal; | ||||
|  | ||||
| use Carbon\Carbon; | ||||
|  | ||||
| /** | ||||
|  * Interface TransactionJournalRepositoryInterface | ||||
|  * | ||||
|  * @package Firefly\Storage\TransactionJournal | ||||
|  */ | ||||
| interface TransactionJournalRepositoryInterface | ||||
| { | ||||
|     public function createSimpleJournal(\Account $from, \Account $to, $description, $amount, \Carbon\Carbon $date); | ||||
|     /** | ||||
|      * @param \Account $from | ||||
|      * @param \Account $toAccount | ||||
|      * @param          $description | ||||
|      * @param          $amount | ||||
|      * @param Carbon   $date | ||||
|      * | ||||
|      * @return mixed | ||||
|      */ | ||||
|     public function createSimpleJournal(\Account $from, \Account $toAccount, $description, $amount, Carbon $date); | ||||
|  | ||||
|     /** | ||||
|      * @return mixed | ||||
|      */ | ||||
|     public function get(); | ||||
|  | ||||
|     /** | ||||
|      * @param $journalId | ||||
|      * | ||||
|      * @return mixed | ||||
|      */ | ||||
|     public function find($journalId); | ||||
|  | ||||
|     public function getByAccountInDateRange(\Account $account, $count = 25, \Carbon\Carbon $start, \Carbon\Carbon $end); | ||||
|     /** | ||||
|      * @param \Account $account | ||||
|      * @param int      $count | ||||
|      * @param Carbon   $start | ||||
|      * @param Carbon   $end | ||||
|      * | ||||
|      * @return mixed | ||||
|      */ | ||||
|     public function getByAccountInDateRange(\Account $account, $count = 25, Carbon $start, Carbon $end); | ||||
|  | ||||
|     public function getByAccountAndDate(\Account $account, \Carbon\Carbon $date); | ||||
|     /** | ||||
|      * @param \Account $account | ||||
|      * @param Carbon   $date | ||||
|      * | ||||
|      * @return mixed | ||||
|      */ | ||||
|     public function getByAccountAndDate(\Account $account, Carbon $date); | ||||
|  | ||||
|     public function getByDateRange(\Carbon\Carbon $start, \Carbon\Carbon $end); | ||||
|     /** | ||||
|      * @param Carbon $start | ||||
|      * @param Carbon $end | ||||
|      * | ||||
|      * @return mixed | ||||
|      */ | ||||
|     public function getByDateRange(Carbon $start, Carbon $end); | ||||
|  | ||||
|     /** | ||||
|      * @param int $count | ||||
|      * | ||||
|      * @return mixed | ||||
|      */ | ||||
|     public function paginate($count = 25); | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user