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