2014-07-20 18:24:27 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Firefly\Storage\Limit;
|
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
use Carbon\Carbon;
|
2014-09-14 21:07:43 +02:00
|
|
|
use Illuminate\Queue\Jobs\Job;
|
2014-07-20 18:24:27 +02:00
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
|
|
|
* Interface LimitRepositoryInterface
|
|
|
|
*
|
|
|
|
* @package Firefly\Storage\Limit
|
|
|
|
*/
|
2014-07-20 18:24:27 +02:00
|
|
|
interface LimitRepositoryInterface
|
|
|
|
{
|
|
|
|
|
2014-09-14 21:07:43 +02:00
|
|
|
/**
|
|
|
|
* @param Job $job
|
|
|
|
* @param array $payload
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function importLimit(Job $job, array $payload);
|
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
2014-09-02 08:58:56 +02:00
|
|
|
* @param \Limit $limit
|
2014-07-25 13:02:01 +02:00
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-09-02 08:58:56 +02:00
|
|
|
public function destroy(\Limit $limit);
|
2014-07-20 18:24:27 +02:00
|
|
|
|
2014-08-19 13:24:11 +02:00
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
|
|
|
* @param \Budget $budget
|
2014-09-14 21:07:43 +02:00
|
|
|
* @param Carbon $date
|
|
|
|
*
|
2014-09-02 08:58:56 +02:00
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function findByBudgetAndDate(\Budget $budget, Carbon $date);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param \Budget $budget
|
2014-09-14 21:07:43 +02:00
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
2014-07-25 13:02:01 +02:00
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getTJByBudgetAndDateRange(\Budget $budget, Carbon $start, Carbon $end);
|
2014-07-20 20:46:10 +02:00
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
2014-09-02 08:58:56 +02:00
|
|
|
* @param $data
|
2014-07-25 13:02:01 +02:00
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-09-02 08:58:56 +02:00
|
|
|
public function store($data);
|
2014-08-09 10:01:37 +02:00
|
|
|
|
2014-08-10 15:01:46 +02:00
|
|
|
/**
|
|
|
|
* @param \Limit $limit
|
2014-09-02 08:58:56 +02:00
|
|
|
* @param $data
|
2014-08-10 15:01:46 +02:00
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-09-02 08:58:56 +02:00
|
|
|
public function update(\Limit $limit, $data);
|
2014-09-02 17:27:28 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param \User $user
|
2014-09-14 21:07:43 +02:00
|
|
|
*
|
2014-09-02 17:27:28 +02:00
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function overruleUser(\User $user);
|
2014-07-20 18:24:27 +02:00
|
|
|
}
|