1 | <?php |
||
10 | class Subscription |
||
11 | { |
||
12 | use SubscriptionTrait; |
||
13 | |||
14 | /** |
||
15 | * The subscription start date. |
||
16 | * |
||
17 | * @var \DateTime |
||
18 | * |
||
19 | * @JMS\Type("DateTime<'Y-m-d H:i:s'>") |
||
20 | * @JMS\SerializedName("start_date") |
||
21 | */ |
||
22 | protected $startDate; |
||
23 | |||
24 | /** |
||
25 | * The subscription last event date. |
||
26 | * |
||
27 | * @var \DateTime |
||
28 | * |
||
29 | * @JMS\Type("DateTime<'Y-m-d H:i:s'>") |
||
30 | * @JMS\SerializedName("last_event") |
||
31 | */ |
||
32 | protected $lastEvent; |
||
33 | |||
34 | /** |
||
35 | * The subscription next event date. |
||
36 | * |
||
37 | * @var \DateTime |
||
38 | * |
||
39 | * @JMS\Type("DateTime<'Y-m-d H:i:s'>") |
||
40 | * @JMS\SerializedName("next_event") |
||
41 | */ |
||
42 | protected $nextEvent; |
||
43 | |||
44 | /** |
||
45 | * The subscription cancellation date. |
||
46 | * |
||
47 | * @var \DateTime |
||
48 | * |
||
49 | * @JMS\Type("DateTime<'Y-m-d H:i:s'>") |
||
50 | * @JMS\SerializedName("cancellation_date") |
||
51 | */ |
||
52 | protected $cancellationDate; |
||
53 | |||
54 | /** |
||
55 | * The subscription status. |
||
56 | * |
||
57 | * @var string |
||
58 | * |
||
59 | * @JMS\Type("string") |
||
60 | * @JMS\SerializedName("status") |
||
61 | */ |
||
62 | protected $status; |
||
63 | |||
64 | /** |
||
65 | * The subscription expiration date. |
||
66 | * |
||
67 | * @var \DateTime |
||
68 | * |
||
69 | * @JMS\Type("DateTime<'Y-m-d H:i:s'>") |
||
70 | * @JMS\SerializedName("expiration_date") |
||
71 | */ |
||
72 | protected $expirationDate; |
||
73 | |||
74 | /** |
||
75 | * Get the start date and time. |
||
76 | * |
||
77 | * @return \DateTime |
||
78 | */ |
||
79 | public function getStartDate() |
||
83 | |||
84 | /** |
||
85 | * Set the start date and time. |
||
86 | * |
||
87 | * @param \DateTime $startDate The start date and time. |
||
88 | * @return Subscription |
||
89 | */ |
||
90 | public function setStartDate($startDate) |
||
96 | |||
97 | /** |
||
98 | * Get the last event date and time. |
||
99 | * |
||
100 | * @return \DateTime |
||
101 | */ |
||
102 | public function getLastEvent() |
||
106 | |||
107 | /** |
||
108 | * Set the last event date and time. |
||
109 | * |
||
110 | * @param \DateTime $lastEvent The last event date and time. |
||
111 | * @return Subscription |
||
112 | */ |
||
113 | public function setLastEvent($lastEvent) |
||
119 | |||
120 | /** |
||
121 | * Get the next event date and time. |
||
122 | * |
||
123 | * @return \DateTime |
||
124 | */ |
||
125 | public function getNextEvent() |
||
129 | |||
130 | /** |
||
131 | * Set the next event date and time. |
||
132 | * |
||
133 | * @param \DateTime $nextEvent The next event date and time. |
||
134 | * @return Subscription |
||
135 | */ |
||
136 | public function setNextEvent($nextEvent) |
||
142 | |||
143 | /** |
||
144 | * Get the cancellation date and time. |
||
145 | * |
||
146 | * @return \DateTime |
||
147 | */ |
||
148 | public function getCancellationDate() |
||
152 | |||
153 | /** |
||
154 | * Set the cancellation date and time. |
||
155 | * |
||
156 | * @param \DateTime $cancellationDate The cancellation date and time. |
||
157 | * @return Subscription |
||
158 | */ |
||
159 | public function setCancellationDate($cancellationDate) |
||
165 | |||
166 | /** |
||
167 | * Get the status. |
||
168 | * |
||
169 | * @return string |
||
170 | */ |
||
171 | public function getStatus() |
||
175 | |||
176 | /** |
||
177 | * Set the status. |
||
178 | * |
||
179 | * @param string $status The status. |
||
180 | * @return Subscription |
||
181 | */ |
||
182 | public function setStatus($status) |
||
188 | |||
189 | /** |
||
190 | * Get the expiration date and time. |
||
191 | * |
||
192 | * @return \DateTime |
||
193 | */ |
||
194 | public function getExpirationDate() |
||
198 | |||
199 | /** |
||
200 | * Set the expiration date and time. |
||
201 | * |
||
202 | * @param \DateTime $expirationDate The expiration date and time. |
||
203 | * @return Subscription |
||
204 | */ |
||
205 | public function setExpirationDate($expirationDate) |
||
211 | } |
||
212 |