mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
58 lines
900 B
PHP
58 lines
900 B
PHP
<?php
|
|
|
|
namespace Firefly\Storage\Budget;
|
|
|
|
/**
|
|
* Interface BudgetRepositoryInterface
|
|
*
|
|
* @package Firefly\Storage\Budget
|
|
*/
|
|
interface BudgetRepositoryInterface
|
|
{
|
|
/**
|
|
* @param \Budget $budget
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function destroy(\Budget $budget);
|
|
|
|
/**
|
|
* @param $budgetId
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function find($budgetId);
|
|
|
|
|
|
/**
|
|
* @param $budgetName
|
|
* @return mixed
|
|
*/
|
|
public function findByName($budgetName);
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function get();
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getAsSelectList();
|
|
|
|
/**
|
|
* @param $data
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function store($data);
|
|
|
|
/**
|
|
* @param \Budget $budget
|
|
* @param $data
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function update(\Budget $budget, $data);
|
|
|
|
}
|