mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
44 lines
726 B
PHP
44 lines
726 B
PHP
<?php
|
|
|
|
namespace Firefly\Storage\Limit;
|
|
|
|
use Carbon\Carbon;
|
|
|
|
/**
|
|
* Interface LimitRepositoryInterface
|
|
*
|
|
* @package Firefly\Storage\Limit
|
|
*/
|
|
interface LimitRepositoryInterface
|
|
{
|
|
|
|
/**
|
|
* @param $data
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function store($data);
|
|
|
|
/**
|
|
* @param \Budget $budget
|
|
* @param Carbon $start
|
|
* @param Carbon $end
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function getTJByBudgetAndDateRange(\Budget $budget, Carbon $start, Carbon $end);
|
|
|
|
/**
|
|
* @param $limitId
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function find($limitId);
|
|
|
|
/**
|
|
* @param \Limit $limit
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function destroy(\Limit $limit);
|
|
}
|