This commit is contained in:
James Cole
2019-09-26 19:16:17 +02:00
parent f370a1b486
commit 3ff8aa7509
4 changed files with 284 additions and 5 deletions

View File

@@ -163,6 +163,22 @@ interface RecurringRepositoryInterface
*/
public function getXOccurrences(RecurrenceRepetition $repetition, Carbon $date, int $count): array;
/**
* Calculate the next X iterations starting on the date given in $date.
* Returns an array of Carbon objects.
*
* Only returns them of they are after $afterDate
*
* @param RecurrenceRepetition $repetition
* @param Carbon $date
* @param Carbon $afterDate
* @param int $count
*
* @throws FireflyException
* @return array
*/
public function getXOccurrencesSince(RecurrenceRepetition $repetition, Carbon $date,Carbon $afterDate, int $count): array;
/**
* Parse the repetition in a string that is user readable.
*