| 1 | <?php |
||
| 14 | class RRule implements RRuleInterface |
||
| 15 | { |
||
| 16 | |||
| 17 | private $startDate; |
||
| 18 | private $rRule; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * RRule constructor. |
||
| 22 | * @param string $rRule |
||
| 23 | * @param string|DateTimeInterface $startDate |
||
| 24 | */ |
||
| 25 | 11 | public function __construct($rRule, DateTimeInterface $startDate) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @return DateTimeInterface |
||
| 33 | */ |
||
| 34 | 15 | public function getStartDate() |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return string RRULE string |
||
| 41 | */ |
||
| 42 | 15 | public function getRrule() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @param DateTimeInterface $from |
||
| 49 | * @param DateTimeInterface $to |
||
| 50 | * @param boolean $inc |
||
| 51 | * @throws |
||
| 52 | * @return DateTimeInterface[] |
||
| 53 | */ |
||
| 54 | 13 | public function getRecurrences(DateTimeInterface $from, DateTimeInterface $to, $inc = true) |
|
| 66 | } |