firefly-iii/app/lib/Firefly/Storage/Budget/BudgetRepositoryInterface.php

58 lines
900 B
PHP
Raw Normal View History

2014-07-15 00:08:13 -05:00
<?php
namespace Firefly\Storage\Budget;
/**
* Interface BudgetRepositoryInterface
*
* @package Firefly\Storage\Budget
*/
interface BudgetRepositoryInterface
{
/**
2014-08-10 08:01:46 -05:00
* @param \Budget $budget
2014-08-02 08:23:29 -05:00
*
* @return mixed
*/
2014-08-02 08:23:29 -05:00
public function destroy(\Budget $budget);
/**
2014-08-02 08:23:29 -05:00
* @param $budgetId
*
* @return mixed
*/
2014-08-02 08:23:29 -05:00
public function find($budgetId);
/**
* @param $budgetName
* @return mixed
*/
public function findByName($budgetName);
/**
* @return mixed
*/
2014-08-02 08:23:29 -05:00
public function get();
/**
* @return mixed
*/
2014-08-02 08:23:29 -05:00
public function getAsSelectList();
2014-07-15 15:16:29 -05:00
/**
2014-08-02 08:23:29 -05:00
* @param $data
*
* @return mixed
*/
2014-08-02 08:23:29 -05:00
public function store($data);
2014-07-15 00:08:13 -05:00
/**
2014-08-10 08:01:46 -05:00
* @param \Budget $budget
* @param $data
*
* @return mixed
*/
2014-08-02 08:23:29 -05:00
public function update(\Budget $budget, $data);
2014-07-23 09:44:20 -05:00
2014-07-15 00:08:13 -05:00
}