mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-09 07:33:06 -06:00
32 lines
534 B
PHP
32 lines
534 B
PHP
<?php
|
|
|
|
namespace Firefly\Storage\Transaction;
|
|
|
|
/**
|
|
* Class EloquentTransactionRepository
|
|
*
|
|
* @package Firefly\Storage\Transaction
|
|
*/
|
|
class EloquentTransactionRepository implements TransactionRepositoryInterface
|
|
{
|
|
protected $_user = null;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public function __construct()
|
|
{
|
|
$this->_user = \Auth::user();
|
|
}
|
|
|
|
/**
|
|
* @param \User $user
|
|
* @return mixed|void
|
|
*/
|
|
public function overruleUser(\User $user)
|
|
{
|
|
$this->_user = $user;
|
|
return true;
|
|
}
|
|
|
|
} |