Code Duplication    Length = 375-375 lines in 2 locations

src/API/WebRes_FillPrices.php 1 location

@@ 5-379 (lines=375) @@
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
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

src/API/WebRes_getRateStayValueWebRes.php 1 location

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