2014-07-15 00:08:13 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Firefly\Storage\Budget;
|
|
|
|
|
2014-07-25 06:02:01 -05:00
|
|
|
use Carbon\Carbon;
|
2014-07-15 00:08:13 -05:00
|
|
|
|
2014-07-25 06:02:01 -05:00
|
|
|
/**
|
|
|
|
* Interface BudgetRepositoryInterface
|
|
|
|
*
|
|
|
|
* @package Firefly\Storage\Budget
|
|
|
|
*/
|
2014-07-15 04:04:53 -05:00
|
|
|
interface BudgetRepositoryInterface
|
|
|
|
{
|
2014-07-25 06:02:01 -05:00
|
|
|
/**
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-15 04:04:53 -05:00
|
|
|
public function getAsSelectList();
|
2014-07-25 06:02:01 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-20 11:24:27 -05:00
|
|
|
public function get();
|
|
|
|
|
2014-07-25 06:02:01 -05:00
|
|
|
/**
|
|
|
|
* @param $data
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-22 23:57:51 -05:00
|
|
|
public function store($data);
|
2014-07-15 15:16:29 -05:00
|
|
|
|
2014-07-25 06:02:01 -05:00
|
|
|
/**
|
|
|
|
* @param $budgetId
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function find($budgetId);
|
2014-07-15 00:08:13 -05:00
|
|
|
|
2014-07-25 06:02:01 -05:00
|
|
|
/**
|
|
|
|
* @param Carbon $date
|
|
|
|
* @param $range
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getWithRepetitionsInPeriod(Carbon $date, $range);
|
2014-07-23 09:44:20 -05:00
|
|
|
|
2014-07-15 00:08:13 -05:00
|
|
|
}
|