firefly-iii/app/Repositories/Journal/JournalRepositoryInterface.php

47 lines
1.0 KiB
PHP
Raw Normal View History

2015-02-09 00:23:39 -06:00
<?php
namespace FireflyIII\Repositories\Journal;
2015-02-24 15:53:38 -06:00
use FireflyIII\Models\TransactionJournal;
2015-02-25 14:19:06 -06:00
use Illuminate\Support\Collection;
2015-02-09 00:23:39 -06:00
2015-02-11 00:35:10 -06:00
/**
* Interface JournalRepositoryInterface
*
* @package FireflyIII\Repositories\Journal
*/
interface JournalRepositoryInterface
{
2015-02-27 07:27:04 -06:00
/**
*
* Get the account_id, which is the asset account that paid for the transaction.
*
* @param TransactionJournal $journal
*
* @return int
*/
public function getAssetAccount(TransactionJournal $journal);
/**
* @param string $query
* @param TransactionJournal $journal
*
* @return Collection
*/
public function searchRelated($query, TransactionJournal $journal);
2015-02-24 15:53:38 -06:00
/**
* @param array $data
*
* @return TransactionJournal
*/
public function store(array $data);
2015-02-09 00:23:39 -06:00
2015-02-25 14:19:06 -06:00
/**
* @param TransactionJournal $journal
2015-02-27 07:27:04 -06:00
* @param array $data
2015-02-25 14:19:06 -06:00
*
2015-02-27 07:27:04 -06:00
* @return mixed
2015-02-25 14:19:06 -06:00
*/
2015-02-27 07:27:04 -06:00
public function update(TransactionJournal $journal, array $data);
2015-02-09 00:23:39 -06:00
}