2014-07-20 11:24:27 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Firefly\Storage\Limit;
|
|
|
|
|
2014-07-25 06:02:01 -05:00
|
|
|
use Carbon\Carbon;
|
2014-07-20 11:24:27 -05:00
|
|
|
|
2014-07-25 06:02:01 -05:00
|
|
|
/**
|
|
|
|
* Interface LimitRepositoryInterface
|
|
|
|
*
|
|
|
|
* @package Firefly\Storage\Limit
|
|
|
|
*/
|
2014-07-20 11:24:27 -05:00
|
|
|
interface LimitRepositoryInterface
|
|
|
|
{
|
|
|
|
|
2014-07-25 06:02:01 -05:00
|
|
|
/**
|
|
|
|
* @param $data
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-20 11:24:27 -05:00
|
|
|
public function store($data);
|
|
|
|
|
2014-07-25 06:02:01 -05:00
|
|
|
/**
|
|
|
|
* @param \Budget $budget
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getTJByBudgetAndDateRange(\Budget $budget, Carbon $start, Carbon $end);
|
2014-07-20 13:46:10 -05:00
|
|
|
|
2014-07-25 06:02:01 -05:00
|
|
|
/**
|
|
|
|
* @param $limitId
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-20 13:46:10 -05:00
|
|
|
public function find($limitId);
|
2014-08-09 03:01:37 -05:00
|
|
|
|
2014-08-10 08:01:46 -05:00
|
|
|
/**
|
|
|
|
* @param \Limit $limit
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-08-09 03:01:37 -05:00
|
|
|
public function destroy(\Limit $limit);
|
2014-07-20 11:24:27 -05:00
|
|
|
}
|