mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
60 lines
909 B
PHP
60 lines
909 B
PHP
<?php
|
|
|
|
namespace Firefly\Storage\Budget;
|
|
|
|
use Carbon\Carbon;
|
|
|
|
/**
|
|
* Interface BudgetRepositoryInterface
|
|
*
|
|
* @package Firefly\Storage\Budget
|
|
*/
|
|
interface BudgetRepositoryInterface
|
|
{
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getAsSelectList();
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function get();
|
|
|
|
/**
|
|
* @param $data
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function update($data);
|
|
|
|
/**
|
|
* @param $data
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function store($data);
|
|
|
|
/**
|
|
* @param $data
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function destroy($budgetId);
|
|
|
|
/**
|
|
* @param $budgetId
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function find($budgetId);
|
|
|
|
/**
|
|
* @param Carbon $date
|
|
* @param $range
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function getWithRepetitionsInPeriod(Carbon $date, $range);
|
|
|
|
}
|