mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-14 02:32:04 -06:00
Expand journal repos
This commit is contained in:
parent
0458058cb1
commit
a302aba3ab
@ -377,6 +377,30 @@ class JournalRepository implements JournalRepositoryInterface
|
||||
return $journal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a new transaction journal based on the values given.
|
||||
*
|
||||
* @param array $values
|
||||
*
|
||||
* @return TransactionJournal
|
||||
*/
|
||||
public function storeBasic(array $values): TransactionJournal
|
||||
{
|
||||
return TransactionJournal::create($values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a new transaction based on the values given.
|
||||
*
|
||||
* @param array $values
|
||||
*
|
||||
* @return Transaction
|
||||
*/
|
||||
public function storeBasicTransaction(array $values): Transaction
|
||||
{
|
||||
return Transaction::create($values);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param TransactionJournal $journal
|
||||
* @param array $data
|
||||
|
@ -152,6 +152,24 @@ interface JournalRepositoryInterface
|
||||
*/
|
||||
public function store(array $data): TransactionJournal;
|
||||
|
||||
/**
|
||||
* Store a new transaction journal based on the values given.
|
||||
*
|
||||
* @param array $values
|
||||
*
|
||||
* @return TransactionJournal
|
||||
*/
|
||||
public function storeBasic(array $values): TransactionJournal;
|
||||
|
||||
/**
|
||||
* Store a new transaction based on the values given.
|
||||
*
|
||||
* @param array $values
|
||||
*
|
||||
* @return Transaction
|
||||
*/
|
||||
public function storeBasicTransaction(array $values): Transaction;
|
||||
|
||||
/**
|
||||
* @param TransactionJournal $journal
|
||||
* @param array $data
|
||||
|
Loading…
Reference in New Issue
Block a user