Moved some import routines to the repositories.

This commit is contained in:
James Cole
2014-09-14 21:07:43 +02:00
parent 19402b9022
commit 69cee59e23
14 changed files with 1852 additions and 490 deletions

View File

@@ -3,6 +3,7 @@
namespace Firefly\Storage\Limit;
use Carbon\Carbon;
use Illuminate\Queue\Jobs\Job;
/**
* Interface LimitRepositoryInterface
@@ -12,6 +13,14 @@ use Carbon\Carbon;
interface LimitRepositoryInterface
{
/**
* @param Job $job
* @param array $payload
*
* @return mixed
*/
public function importLimit(Job $job, array $payload);
/**
* @param \Limit $limit
*
@@ -28,15 +37,16 @@ interface LimitRepositoryInterface
/**
* @param \Budget $budget
* @param Carbon $date
* @param Carbon $date
*
* @return mixed
*/
public function findByBudgetAndDate(\Budget $budget, Carbon $date);
/**
* @param \Budget $budget
* @param Carbon $start
* @param Carbon $end
* @param Carbon $start
* @param Carbon $end
*
* @return mixed
*/
@@ -59,6 +69,7 @@ interface LimitRepositoryInterface
/**
* @param \User $user
*
* @return mixed
*/
public function overruleUser(\User $user);