Expand journal repos

This commit is contained in:
James Cole 2018-02-16 16:45:03 +01:00
parent 0458058cb1
commit a302aba3ab
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 42 additions and 0 deletions

View File

@ -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

View File

@ -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