mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-22 06:23:12 -06:00
38 lines
878 B
PHP
38 lines
878 B
PHP
<?php
|
|
|
|
namespace FireflyIII\Database\Ifaces;
|
|
|
|
use Carbon\Carbon;
|
|
|
|
/**
|
|
* Interface RecurringInterface
|
|
*
|
|
* @package FireflyIII\Database
|
|
*/
|
|
interface RecurringInterface
|
|
{
|
|
/**
|
|
* @param \RecurringTransaction $recurring
|
|
* @param Carbon $current
|
|
* @param Carbon $currentEnd
|
|
*
|
|
* @return \TransactionJournal|null
|
|
*/
|
|
public function getJournalForRecurringInRange(\RecurringTransaction $recurring, Carbon $start, Carbon $end);
|
|
|
|
/**
|
|
* @param \RecurringTransaction $recurring
|
|
* @param \TransactionJournal $journal
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function scan(\RecurringTransaction $recurring, \TransactionJournal $journal);
|
|
|
|
/**
|
|
* @param \RecurringTransaction $recurring
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function scanEverything(\RecurringTransaction $recurring);
|
|
|
|
}
|