| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | public function getRecurrences(DateTimeInterface $from, DateTimeInterface $to, $inc = true) |
||
| 55 | { |
||
| 56 | $rRule = new RecurrRule($this->getRrule(), $this->getStartDate()); |
||
| 57 | $rRuleTransformer = new ArrayTransformer(); |
||
| 58 | $recurrenceCollection = $rRuleTransformer->transform($rRule)->startsBetween($from, $to, $inc); |
||
| 59 | $result = []; |
||
| 60 | /** @var Recurrence $recurrence */ |
||
| 61 | foreach ($recurrenceCollection as $recurrence) { |
||
| 62 | $result[] =$recurrence->getStart(); |
||
| 63 | } |
||
| 64 | return $result; |
||
| 65 | } |
||
| 66 | } |