1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Gueststream\PMS\IQWare\API; |
4
|
|
|
|
5
|
|
View Code Duplication |
class WebRes_FillPrices |
|
|
|
|
6
|
|
|
{ |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* @var dstRatesAndRooms $dstRatesAndRooms |
10
|
|
|
*/ |
11
|
|
|
protected $dstRatesAndRooms = null; |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* @var int $intRate |
15
|
|
|
*/ |
16
|
|
|
protected $intRate = null; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var int $intRoomType |
20
|
|
|
*/ |
21
|
|
|
protected $intRoomType = null; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var int $intGUID |
25
|
|
|
*/ |
26
|
|
|
protected $intGUID = null; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @var \DateTime $dtArrivalDate |
30
|
|
|
*/ |
31
|
|
|
protected $dtArrivalDate = null; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var \DateTime $dtDepartureDate |
35
|
|
|
*/ |
36
|
|
|
protected $dtDepartureDate = null; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var int $intGuestCount |
40
|
|
|
*/ |
41
|
|
|
protected $intGuestCount = null; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var string $strISOLanguage |
45
|
|
|
*/ |
46
|
|
|
protected $strISOLanguage = null; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @var string $strChildren |
50
|
|
|
*/ |
51
|
|
|
protected $strChildren = null; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var string $strAttributes |
55
|
|
|
*/ |
56
|
|
|
protected $strAttributes = null; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @var string $strLocations |
60
|
|
|
*/ |
61
|
|
|
protected $strLocations = null; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @var int $intRoomQty |
65
|
|
|
*/ |
66
|
|
|
protected $intRoomQty = null; |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @var int $intRateSpecial |
70
|
|
|
*/ |
71
|
|
|
protected $intRateSpecial = null; |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @var int $GroupId |
75
|
|
|
*/ |
76
|
|
|
protected $GroupId = null; |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @param dstRatesAndRooms $dstRatesAndRooms |
80
|
|
|
* @param int $intRate |
81
|
|
|
* @param int $intRoomType |
82
|
|
|
* @param int $intGUID |
83
|
|
|
* @param \DateTime $dtArrivalDate |
84
|
|
|
* @param \DateTime $dtDepartureDate |
85
|
|
|
* @param int $intGuestCount |
86
|
|
|
* @param string $strISOLanguage |
87
|
|
|
* @param string $strChildren |
88
|
|
|
* @param string $strAttributes |
89
|
|
|
* @param string $strLocations |
90
|
|
|
* @param int $intRoomQty |
91
|
|
|
* @param int $intRateSpecial |
92
|
|
|
* @param int $GroupId |
93
|
|
|
*/ |
94
|
|
|
public function __construct($dstRatesAndRooms, $intRate, $intRoomType, $intGUID, \DateTime $dtArrivalDate, \DateTime $dtDepartureDate, $intGuestCount, $strISOLanguage, $strChildren, $strAttributes, $strLocations, $intRoomQty, $intRateSpecial, $GroupId) |
95
|
|
|
{ |
96
|
|
|
$this->dstRatesAndRooms = $dstRatesAndRooms; |
97
|
|
|
$this->intRate = $intRate; |
98
|
|
|
$this->intRoomType = $intRoomType; |
99
|
|
|
$this->intGUID = $intGUID; |
100
|
|
|
$this->dtArrivalDate = $dtArrivalDate->format(\DateTime::ATOM); |
|
|
|
|
101
|
|
|
$this->dtDepartureDate = $dtDepartureDate->format(\DateTime::ATOM); |
|
|
|
|
102
|
|
|
$this->intGuestCount = $intGuestCount; |
103
|
|
|
$this->strISOLanguage = $strISOLanguage; |
104
|
|
|
$this->strChildren = $strChildren; |
105
|
|
|
$this->strAttributes = $strAttributes; |
106
|
|
|
$this->strLocations = $strLocations; |
107
|
|
|
$this->intRoomQty = $intRoomQty; |
108
|
|
|
$this->intRateSpecial = $intRateSpecial; |
109
|
|
|
$this->GroupId = $GroupId; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* @return dstRatesAndRooms |
114
|
|
|
*/ |
115
|
|
|
public function getDstRatesAndRooms() |
116
|
|
|
{ |
117
|
|
|
return $this->dstRatesAndRooms; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @param dstRatesAndRooms $dstRatesAndRooms |
122
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_FillPrices |
123
|
|
|
*/ |
124
|
|
|
public function setDstRatesAndRooms($dstRatesAndRooms) |
125
|
|
|
{ |
126
|
|
|
$this->dstRatesAndRooms = $dstRatesAndRooms; |
127
|
|
|
return $this; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @return int |
132
|
|
|
*/ |
133
|
|
|
public function getIntRate() |
134
|
|
|
{ |
135
|
|
|
return $this->intRate; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* @param int $intRate |
140
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_FillPrices |
141
|
|
|
*/ |
142
|
|
|
public function setIntRate($intRate) |
143
|
|
|
{ |
144
|
|
|
$this->intRate = $intRate; |
145
|
|
|
return $this; |
146
|
|
|
} |
147
|
|
|
|
148
|
|
|
/** |
149
|
|
|
* @return int |
150
|
|
|
*/ |
151
|
|
|
public function getIntRoomType() |
152
|
|
|
{ |
153
|
|
|
return $this->intRoomType; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
/** |
157
|
|
|
* @param int $intRoomType |
158
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_FillPrices |
159
|
|
|
*/ |
160
|
|
|
public function setIntRoomType($intRoomType) |
161
|
|
|
{ |
162
|
|
|
$this->intRoomType = $intRoomType; |
163
|
|
|
return $this; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* @return int |
168
|
|
|
*/ |
169
|
|
|
public function getIntGUID() |
170
|
|
|
{ |
171
|
|
|
return $this->intGUID; |
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
/** |
175
|
|
|
* @param int $intGUID |
176
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_FillPrices |
177
|
|
|
*/ |
178
|
|
|
public function setIntGUID($intGUID) |
179
|
|
|
{ |
180
|
|
|
$this->intGUID = $intGUID; |
181
|
|
|
return $this; |
182
|
|
|
} |
183
|
|
|
|
184
|
|
|
/** |
185
|
|
|
* @return \DateTime |
186
|
|
|
*/ |
187
|
|
|
public function getDtArrivalDate() |
188
|
|
|
{ |
189
|
|
|
if ($this->dtArrivalDate == null) { |
190
|
|
|
return null; |
191
|
|
|
} else { |
192
|
|
|
try { |
193
|
|
|
return new \DateTime($this->dtArrivalDate); |
194
|
|
|
} catch (\Exception $e) { |
195
|
|
|
return false; |
196
|
|
|
} |
197
|
|
|
} |
198
|
|
|
} |
199
|
|
|
|
200
|
|
|
/** |
201
|
|
|
* @param \DateTime $dtArrivalDate |
202
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_FillPrices |
203
|
|
|
*/ |
204
|
|
|
public function setDtArrivalDate(\DateTime $dtArrivalDate) |
205
|
|
|
{ |
206
|
|
|
$this->dtArrivalDate = $dtArrivalDate->format(\DateTime::ATOM); |
|
|
|
|
207
|
|
|
return $this; |
208
|
|
|
} |
209
|
|
|
|
210
|
|
|
/** |
211
|
|
|
* @return \DateTime |
212
|
|
|
*/ |
213
|
|
|
public function getDtDepartureDate() |
214
|
|
|
{ |
215
|
|
|
if ($this->dtDepartureDate == null) { |
216
|
|
|
return null; |
217
|
|
|
} else { |
218
|
|
|
try { |
219
|
|
|
return new \DateTime($this->dtDepartureDate); |
220
|
|
|
} catch (\Exception $e) { |
221
|
|
|
return false; |
222
|
|
|
} |
223
|
|
|
} |
224
|
|
|
} |
225
|
|
|
|
226
|
|
|
/** |
227
|
|
|
* @param \DateTime $dtDepartureDate |
228
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_FillPrices |
229
|
|
|
*/ |
230
|
|
|
public function setDtDepartureDate(\DateTime $dtDepartureDate) |
231
|
|
|
{ |
232
|
|
|
$this->dtDepartureDate = $dtDepartureDate->format(\DateTime::ATOM); |
|
|
|
|
233
|
|
|
return $this; |
234
|
|
|
} |
235
|
|
|
|
236
|
|
|
/** |
237
|
|
|
* @return int |
238
|
|
|
*/ |
239
|
|
|
public function getIntGuestCount() |
240
|
|
|
{ |
241
|
|
|
return $this->intGuestCount; |
242
|
|
|
} |
243
|
|
|
|
244
|
|
|
/** |
245
|
|
|
* @param int $intGuestCount |
246
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_FillPrices |
247
|
|
|
*/ |
248
|
|
|
public function setIntGuestCount($intGuestCount) |
249
|
|
|
{ |
250
|
|
|
$this->intGuestCount = $intGuestCount; |
251
|
|
|
return $this; |
252
|
|
|
} |
253
|
|
|
|
254
|
|
|
/** |
255
|
|
|
* @return string |
256
|
|
|
*/ |
257
|
|
|
public function getStrISOLanguage() |
258
|
|
|
{ |
259
|
|
|
return $this->strISOLanguage; |
260
|
|
|
} |
261
|
|
|
|
262
|
|
|
/** |
263
|
|
|
* @param string $strISOLanguage |
264
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_FillPrices |
265
|
|
|
*/ |
266
|
|
|
public function setStrISOLanguage($strISOLanguage) |
267
|
|
|
{ |
268
|
|
|
$this->strISOLanguage = $strISOLanguage; |
269
|
|
|
return $this; |
270
|
|
|
} |
271
|
|
|
|
272
|
|
|
/** |
273
|
|
|
* @return string |
274
|
|
|
*/ |
275
|
|
|
public function getStrChildren() |
276
|
|
|
{ |
277
|
|
|
return $this->strChildren; |
278
|
|
|
} |
279
|
|
|
|
280
|
|
|
/** |
281
|
|
|
* @param string $strChildren |
282
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_FillPrices |
283
|
|
|
*/ |
284
|
|
|
public function setStrChildren($strChildren) |
285
|
|
|
{ |
286
|
|
|
$this->strChildren = $strChildren; |
287
|
|
|
return $this; |
288
|
|
|
} |
289
|
|
|
|
290
|
|
|
/** |
291
|
|
|
* @return string |
292
|
|
|
*/ |
293
|
|
|
public function getStrAttributes() |
294
|
|
|
{ |
295
|
|
|
return $this->strAttributes; |
296
|
|
|
} |
297
|
|
|
|
298
|
|
|
/** |
299
|
|
|
* @param string $strAttributes |
300
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_FillPrices |
301
|
|
|
*/ |
302
|
|
|
public function setStrAttributes($strAttributes) |
303
|
|
|
{ |
304
|
|
|
$this->strAttributes = $strAttributes; |
305
|
|
|
return $this; |
306
|
|
|
} |
307
|
|
|
|
308
|
|
|
/** |
309
|
|
|
* @return string |
310
|
|
|
*/ |
311
|
|
|
public function getStrLocations() |
312
|
|
|
{ |
313
|
|
|
return $this->strLocations; |
314
|
|
|
} |
315
|
|
|
|
316
|
|
|
/** |
317
|
|
|
* @param string $strLocations |
318
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_FillPrices |
319
|
|
|
*/ |
320
|
|
|
public function setStrLocations($strLocations) |
321
|
|
|
{ |
322
|
|
|
$this->strLocations = $strLocations; |
323
|
|
|
return $this; |
324
|
|
|
} |
325
|
|
|
|
326
|
|
|
/** |
327
|
|
|
* @return int |
328
|
|
|
*/ |
329
|
|
|
public function getIntRoomQty() |
330
|
|
|
{ |
331
|
|
|
return $this->intRoomQty; |
332
|
|
|
} |
333
|
|
|
|
334
|
|
|
/** |
335
|
|
|
* @param int $intRoomQty |
336
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_FillPrices |
337
|
|
|
*/ |
338
|
|
|
public function setIntRoomQty($intRoomQty) |
339
|
|
|
{ |
340
|
|
|
$this->intRoomQty = $intRoomQty; |
341
|
|
|
return $this; |
342
|
|
|
} |
343
|
|
|
|
344
|
|
|
/** |
345
|
|
|
* @return int |
346
|
|
|
*/ |
347
|
|
|
public function getIntRateSpecial() |
348
|
|
|
{ |
349
|
|
|
return $this->intRateSpecial; |
350
|
|
|
} |
351
|
|
|
|
352
|
|
|
/** |
353
|
|
|
* @param int $intRateSpecial |
354
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_FillPrices |
355
|
|
|
*/ |
356
|
|
|
public function setIntRateSpecial($intRateSpecial) |
357
|
|
|
{ |
358
|
|
|
$this->intRateSpecial = $intRateSpecial; |
359
|
|
|
return $this; |
360
|
|
|
} |
361
|
|
|
|
362
|
|
|
/** |
363
|
|
|
* @return int |
364
|
|
|
*/ |
365
|
|
|
public function getGroupId() |
366
|
|
|
{ |
367
|
|
|
return $this->GroupId; |
368
|
|
|
} |
369
|
|
|
|
370
|
|
|
/** |
371
|
|
|
* @param int $GroupId |
372
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_FillPrices |
373
|
|
|
*/ |
374
|
|
|
public function setGroupId($GroupId) |
375
|
|
|
{ |
376
|
|
|
$this->GroupId = $GroupId; |
377
|
|
|
return $this; |
378
|
|
|
} |
379
|
|
|
} |
380
|
|
|
|
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.