1 | <?php |
||
17 | class RRule extends AbstractRule |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * @param DateTimeInterface $from |
||
22 | * @param DateTimeInterface $to |
||
23 | * @param boolean $inc |
||
24 | * @throws |
||
25 | * @return DateTimeInterface[] |
||
26 | */ |
||
27 | 14 | public function getRecurrences(DateTimeInterface $from, DateTimeInterface $to, $inc = true) |
|
37 | |||
38 | /** |
||
39 | * @param DateTimeInterface $from |
||
40 | * @param boolean $inc including $from and $to dates |
||
41 | * @return DateTimeInterface|null date of the next recurrence or null of no more recurrences scheduled. |
||
42 | * @throws |
||
43 | */ |
||
44 | 1 | public function getNextRecurrence(DateTimeInterface $from, $inc = true) |
|
53 | |||
54 | /** |
||
55 | * Get recurrence collection by given constraint |
||
56 | * |
||
57 | * @param $constraint |
||
58 | * @return Recurrence[]|\Recurr\RecurrenceCollection |
||
59 | * @throws \Recurr\Exception\InvalidRRule |
||
60 | * @throws \Recurr\Exception\InvalidWeekday |
||
61 | */ |
||
62 | 15 | private function getCollection($constraint) |
|
68 | } |