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-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-07-25 13:02:01 +02:00
|
|
|
/**
|
|
|
|
* @param $data
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-20 18:24:27 +02:00
|
|
|
public function store($data);
|
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
|
|
|
* @param \Budget $budget
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
*
|
|
|
|
* @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
|
|
|
/**
|
|
|
|
* @param $limitId
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-20 20:46:10 +02:00
|
|
|
public function find($limitId);
|
2014-08-09 10:01:37 +02:00
|
|
|
|
|
|
|
public function destroy(\Limit $limit);
|
2014-07-20 18:24:27 +02:00
|
|
|
}
|