WebRes_GetSingleStayValue::getIntGuestCount()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class WebRes_GetSingleStayValue
6
{
7
8
    /**
9
     * @var int $intGUID
10
     */
11
    protected $intGUID = null;
12
13
    /**
14
     * @var string $strISOLanguage
15
     */
16
    protected $strISOLanguage = null;
17
18
    /**
19
     * @var int $intRoomType
20
     */
21
    protected $intRoomType = null;
22
23
    /**
24
     * @var int $intRateID
25
     */
26
    protected $intRateID = null;
27
28
    /**
29
     * @var string $strRateSpecial
30
     */
31
    protected $strRateSpecial = null;
32
33
    /**
34
     * @var int $intGuestCount
35
     */
36
    protected $intGuestCount = null;
37
38
    /**
39
     * @var string $strChildren
40
     */
41
    protected $strChildren = null;
42
43
    /**
44
     * @var \DateTime $dArrDate
45
     */
46
    protected $dArrDate = null;
47
48
    /**
49
     * @var \DateTime $dDepDate
50
     */
51
    protected $dDepDate = 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 dstElements $dstElements
65
     */
66
    protected $dstElements = null;
67
68
    /**
69
     * @var int $intRoomQty
70
     */
71
    protected $intRoomQty = null;
72
73
    /**
74
     * @param int $intGUID
75
     * @param string $strISOLanguage
76
     * @param int $intRoomType
77
     * @param int $intRateID
78
     * @param string $strRateSpecial
79
     * @param int $intGuestCount
80
     * @param string $strChildren
81
     * @param \DateTime $dArrDate
82
     * @param \DateTime $dDepDate
83
     * @param string $strAttributes
84
     * @param string $strLocations
85
     * @param dstElements $dstElements
86
     * @param int $intRoomQty
87
     */
88
    public function __construct($intGUID, $strISOLanguage, $intRoomType, $intRateID, $strRateSpecial, $intGuestCount, $strChildren, \DateTime $dArrDate, \DateTime $dDepDate, $strAttributes, $strLocations, $dstElements, $intRoomQty)
89
    {
90
        $this->intGUID = $intGUID;
91
        $this->strISOLanguage = $strISOLanguage;
92
        $this->intRoomType = $intRoomType;
93
        $this->intRateID = $intRateID;
94
        $this->strRateSpecial = $strRateSpecial;
95
        $this->intGuestCount = $intGuestCount;
96
        $this->strChildren = $strChildren;
97
        $this->dArrDate = $dArrDate->format('Y-m-d');
0 ignored issues
show
Documentation Bug introduced by
It seems like $dArrDate->format('Y-m-d') of type string is incompatible with the declared type object<DateTime> of property $dArrDate.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
98
        $this->dDepDate = $dDepDate->format('Y-m-d');
0 ignored issues
show
Documentation Bug introduced by
It seems like $dDepDate->format('Y-m-d') of type string is incompatible with the declared type object<DateTime> of property $dDepDate.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
99
        $this->strAttributes = $strAttributes;
100
        $this->strLocations = $strLocations;
101
        $this->dstElements = $dstElements;
102
        $this->intRoomQty = $intRoomQty;
103
    }
104
105
    /**
106
     * @return int
107
     */
108
    public function getIntGUID()
109
    {
110
        return $this->intGUID;
111
    }
112
113
    /**
114
     * @param int $intGUID
115
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetSingleStayValue
116
     */
117
    public function setIntGUID($intGUID)
118
    {
119
        $this->intGUID = $intGUID;
120
        return $this;
121
    }
122
123
    /**
124
     * @return string
125
     */
126
    public function getStrISOLanguage()
127
    {
128
        return $this->strISOLanguage;
129
    }
130
131
    /**
132
     * @param string $strISOLanguage
133
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetSingleStayValue
134
     */
135
    public function setStrISOLanguage($strISOLanguage)
136
    {
137
        $this->strISOLanguage = $strISOLanguage;
138
        return $this;
139
    }
140
141
    /**
142
     * @return int
143
     */
144
    public function getIntRoomType()
145
    {
146
        return $this->intRoomType;
147
    }
148
149
    /**
150
     * @param int $intRoomType
151
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetSingleStayValue
152
     */
153
    public function setIntRoomType($intRoomType)
154
    {
155
        $this->intRoomType = $intRoomType;
156
        return $this;
157
    }
158
159
    /**
160
     * @return int
161
     */
162
    public function getIntRateID()
163
    {
164
        return $this->intRateID;
165
    }
166
167
    /**
168
     * @param int $intRateID
169
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetSingleStayValue
170
     */
171
    public function setIntRateID($intRateID)
172
    {
173
        $this->intRateID = $intRateID;
174
        return $this;
175
    }
176
177
    /**
178
     * @return string
179
     */
180
    public function getStrRateSpecial()
181
    {
182
        return $this->strRateSpecial;
183
    }
184
185
    /**
186
     * @param string $strRateSpecial
187
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetSingleStayValue
188
     */
189
    public function setStrRateSpecial($strRateSpecial)
190
    {
191
        $this->strRateSpecial = $strRateSpecial;
192
        return $this;
193
    }
194
195
    /**
196
     * @return int
197
     */
198
    public function getIntGuestCount()
199
    {
200
        return $this->intGuestCount;
201
    }
202
203
    /**
204
     * @param int $intGuestCount
205
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetSingleStayValue
206
     */
207
    public function setIntGuestCount($intGuestCount)
208
    {
209
        $this->intGuestCount = $intGuestCount;
210
        return $this;
211
    }
212
213
    /**
214
     * @return string
215
     */
216
    public function getStrChildren()
217
    {
218
        return $this->strChildren;
219
    }
220
221
    /**
222
     * @param string $strChildren
223
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetSingleStayValue
224
     */
225
    public function setStrChildren($strChildren)
226
    {
227
        $this->strChildren = $strChildren;
228
        return $this;
229
    }
230
231
    /**
232
     * @return \DateTime
233
     */
234
    public function getDArrDate()
235
    {
236
        if ($this->dArrDate == null) {
237
            return null;
238
        } else {
239
            try {
240
                return new \DateTime($this->dArrDate);
241
            } catch (\Exception $e) {
242
                return false;
243
            }
244
        }
245
    }
246
247
    /**
248
     * @param \DateTime $dArrDate
249
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetSingleStayValue
250
     */
251
    public function setDArrDate(\DateTime $dArrDate)
252
    {
253
        $this->dArrDate = $dArrDate->format('Y-m-d');
0 ignored issues
show
Documentation Bug introduced by
It seems like $dArrDate->format('Y-m-d') of type string is incompatible with the declared type object<DateTime> of property $dArrDate.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
254
        return $this;
255
    }
256
257
    /**
258
     * @return \DateTime
259
     */
260
    public function getDDepDate()
261
    {
262
        if ($this->dDepDate == null) {
263
            return null;
264
        } else {
265
            try {
266
                return new \DateTime($this->dDepDate);
267
            } catch (\Exception $e) {
268
                return false;
269
            }
270
        }
271
    }
272
273
    /**
274
     * @param \DateTime $dDepDate
275
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetSingleStayValue
276
     */
277
    public function setDDepDate(\DateTime $dDepDate)
278
    {
279
        $this->dDepDate = $dDepDate->format('Y-m-d');
0 ignored issues
show
Documentation Bug introduced by
It seems like $dDepDate->format('Y-m-d') of type string is incompatible with the declared type object<DateTime> of property $dDepDate.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
280
        return $this;
281
    }
282
283
    /**
284
     * @return string
285
     */
286
    public function getStrAttributes()
287
    {
288
        return $this->strAttributes;
289
    }
290
291
    /**
292
     * @param string $strAttributes
293
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetSingleStayValue
294
     */
295
    public function setStrAttributes($strAttributes)
296
    {
297
        $this->strAttributes = $strAttributes;
298
        return $this;
299
    }
300
301
    /**
302
     * @return string
303
     */
304
    public function getStrLocations()
305
    {
306
        return $this->strLocations;
307
    }
308
309
    /**
310
     * @param string $strLocations
311
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetSingleStayValue
312
     */
313
    public function setStrLocations($strLocations)
314
    {
315
        $this->strLocations = $strLocations;
316
        return $this;
317
    }
318
319
    /**
320
     * @return dstElements
321
     */
322
    public function getDstElements()
323
    {
324
        return $this->dstElements;
325
    }
326
327
    /**
328
     * @param dstElements $dstElements
329
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetSingleStayValue
330
     */
331
    public function setDstElements($dstElements)
332
    {
333
        $this->dstElements = $dstElements;
334
        return $this;
335
    }
336
337
    /**
338
     * @return int
339
     */
340
    public function getIntRoomQty()
341
    {
342
        return $this->intRoomQty;
343
    }
344
345
    /**
346
     * @param int $intRoomQty
347
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetSingleStayValue
348
     */
349
    public function setIntRoomQty($intRoomQty)
350
    {
351
        $this->intRoomQty = $intRoomQty;
352
        return $this;
353
    }
354
}
355