1 | <?php |
||
24 | class RecurrenceId extends Property |
||
25 | { |
||
26 | /** |
||
27 | * The effective range of recurrence instances from the instance |
||
28 | * specified by the recurrence identifier specified by the property. |
||
29 | */ |
||
30 | const RANGE_THISANDPRIOR = 'THISANDPRIOR'; |
||
31 | const RANGE_THISANDFUTURE = 'THISANDFUTURE'; |
||
32 | |||
33 | /** |
||
34 | * The dateTime to identify a particular instance of a recurring event which is getting modified. |
||
35 | * |
||
36 | * @var \DateTimeInterface |
||
37 | */ |
||
38 | protected $dateTime; |
||
39 | |||
40 | /** |
||
41 | * Specify the effective range of recurrence instances from the instance. |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $range; |
||
46 | |||
47 | 11 | public function __construct(\DateTimeInterface $dateTime = null) |
|
55 | |||
56 | 3 | public function applyTimeSettings($noTime = false, $useTimezone = false, $useUtc = false, $timezoneString = '') |
|
69 | |||
70 | /** |
||
71 | * @return \DateTimeInterface |
||
72 | */ |
||
73 | 2 | public function getDatetime() |
|
77 | |||
78 | /** |
||
79 | * @return \Eluceo\iCal\Property\Event\RecurrenceId |
||
80 | */ |
||
81 | 1 | public function setDatetime(\DateTimeInterface $dateTime) |
|
87 | |||
88 | /** |
||
89 | * @return string |
||
90 | */ |
||
91 | 2 | public function getRange() |
|
95 | |||
96 | /** |
||
97 | * @param string $range |
||
98 | * |
||
99 | * @return \Eluceo\iCal\Property\Event\RecurrenceId |
||
100 | */ |
||
101 | 2 | public function setRange($range) |
|
107 | |||
108 | /** |
||
109 | * Get all unfolded lines. |
||
110 | * |
||
111 | * @return array |
||
112 | */ |
||
113 | 2 | public function toLines() |
|
121 | } |
||
122 |