mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
31 lines
604 B
PHP
31 lines
604 B
PHP
|
<?php
|
||
|
|
||
|
namespace FireflyIII\Repositories\Budget;
|
||
|
use FireflyIII\Models\Budget;
|
||
|
use Carbon\Carbon;
|
||
|
/**
|
||
|
* Interface BudgetRepositoryInterface
|
||
|
*
|
||
|
* @package FireflyIII\Repositories\Budget
|
||
|
*/
|
||
|
interface BudgetRepositoryInterface
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* @param Budget $budget
|
||
|
* @param Carbon $date
|
||
|
*
|
||
|
* @return float
|
||
|
*/
|
||
|
public function spentInMonth(Budget $budget, Carbon $date);
|
||
|
|
||
|
/**
|
||
|
* @param Budget $budget
|
||
|
* @param Carbon $date
|
||
|
* @param $amount
|
||
|
*
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function updateLimitAmount(Budget $budget, Carbon $date, $amount);
|
||
|
|
||
|
}
|