firefly-iii/app/lib/FireflyIII/Database/Ifaces/RecurringInterface.php

38 lines
878 B
PHP
Raw Normal View History

2014-10-29 04:30:52 -05:00
<?php
2014-10-30 13:26:28 -05:00
namespace FireflyIII\Database\Ifaces;
2014-11-12 15:37:09 -06:00
2014-10-29 04:30:52 -05:00
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);
2014-11-13 09:13:32 -06:00
/**
* @param \RecurringTransaction $recurring
2014-11-17 00:33:18 -06:00
* @param \TransactionJournal $journal
2014-11-13 09:13:32 -06:00
*
* @return bool
*/
2014-11-17 00:33:18 -06:00
public function scan(\RecurringTransaction $recurring, \TransactionJournal $journal);
2014-11-13 09:13:32 -06:00
/**
* @param \RecurringTransaction $recurring
*
* @return bool
*/
2014-11-17 00:33:18 -06:00
public function scanEverything(\RecurringTransaction $recurring);
2014-11-13 09:13:32 -06:00
2014-10-29 04:30:52 -05:00
}