1 | <?php |
||
9 | class Recurrence |
||
10 | { |
||
11 | /** |
||
12 | * @var Frequency |
||
13 | */ |
||
14 | private $frequency; |
||
15 | |||
16 | /** |
||
17 | * @var \Datetime |
||
18 | */ |
||
19 | private $periodStartAt; |
||
20 | |||
21 | /** |
||
22 | * @var \Datetime |
||
23 | */ |
||
24 | private $periodEndAt; |
||
25 | |||
26 | /** |
||
27 | * @var integer |
||
28 | */ |
||
29 | private $interval = 1; |
||
30 | |||
31 | /** |
||
32 | * @var integer |
||
33 | */ |
||
34 | private $count; |
||
35 | |||
36 | /** |
||
37 | * Recurrence constructor. |
||
38 | */ |
||
39 | public function __construct() |
||
43 | |||
44 | /** |
||
45 | * @param \Datetime $periodStartAt |
||
46 | * @return $this |
||
47 | */ |
||
48 | public function setPeriodStartAt(\Datetime $periodStartAt) |
||
54 | |||
55 | /** |
||
56 | * @return \Datetime |
||
57 | */ |
||
58 | public function getPeriodStartAt() |
||
62 | |||
63 | /** |
||
64 | * @param \Datetime $periodEndAt |
||
65 | * @return $this |
||
66 | */ |
||
67 | public function setPeriodEndAt(\Datetime $periodEndAt) |
||
73 | |||
74 | /** |
||
75 | * @return \Datetime |
||
76 | */ |
||
77 | public function getPeriodEndAt() |
||
81 | |||
82 | /** |
||
83 | * @param Frequency $frequency |
||
84 | * @return $this |
||
85 | */ |
||
86 | public function setFrequency(Frequency $frequency) |
||
92 | |||
93 | /** |
||
94 | * @return Frequency |
||
95 | */ |
||
96 | public function getFrequency() |
||
100 | |||
101 | /** |
||
102 | * @return int |
||
103 | */ |
||
104 | public function getInterval() |
||
108 | |||
109 | /** |
||
110 | * @param int $interval |
||
111 | * @return $this |
||
112 | */ |
||
113 | public function setInterval($interval) |
||
119 | |||
120 | /** |
||
121 | * @return int |
||
122 | */ |
||
123 | public function getCount() |
||
127 | |||
128 | /** |
||
129 | * @return int |
||
130 | */ |
||
131 | public function hasCount() |
||
135 | |||
136 | /** |
||
137 | * @param int $count |
||
138 | * @return $this |
||
139 | */ |
||
140 | public function setCount($count) |
||
146 | } |
||
147 |