mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 03:53:37 +00: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);
|
|
|
|
} |