OwnerReservationValidityResponse::getRoomNo()   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 OwnerReservationValidityResponse
6
{
7
8
    /**
9
     * @var OwnerReservationValidity $Validity
10
     */
11
    protected $Validity = null;
12
13
    /**
14
     * @var RoomRestrictionStatus $RestrictionType
15
     */
16
    protected $RestrictionType = null;
17
18
    /**
19
     * @var int $RateYield_MinLengthValidity
20
     */
21
    protected $RateYield_MinLengthValidity = null;
22
23
    /**
24
     * @var int $RateCodeId
25
     */
26
    protected $RateCodeId = null;
27
28
    /**
29
     * @var int $RoomTypeId
30
     */
31
    protected $RoomTypeId = null;
32
33
    /**
34
     * @var int $RoomId
35
     */
36
    protected $RoomId = null;
37
38
    /**
39
     * @var string $RoomNo
40
     */
41
    protected $RoomNo = null;
42
43
    /**
44
     * @var string $RateCodeName
45
     */
46
    protected $RateCodeName = null;
47
48
    /**
49
     * @var string $RoomTypeName
50
     */
51
    protected $RoomTypeName = null;
52
53
    /**
54
     * @var string $RateCodeDescription
55
     */
56
    protected $RateCodeDescription = null;
57
58
    /**
59
     * @var string $RoomTypeDescription
60
     */
61
    protected $RoomTypeDescription = null;
62
63
    /**
64
     * @var string $Message
65
     */
66
    protected $Message = null;
67
68
    /**
69
     * @param OwnerReservationValidity $Validity
70
     * @param RoomRestrictionStatus $RestrictionType
71
     * @param int $RateYield_MinLengthValidity
72
     * @param int $RateCodeId
73
     * @param int $RoomTypeId
74
     * @param int $RoomId
75
     */
76 View Code Duplication
    public function __construct($Validity, $RestrictionType, $RateYield_MinLengthValidity, $RateCodeId, $RoomTypeId, $RoomId)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

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.

Loading history...
77
    {
78
        $this->Validity = $Validity;
79
        $this->RestrictionType = $RestrictionType;
80
        $this->RateYield_MinLengthValidity = $RateYield_MinLengthValidity;
81
        $this->RateCodeId = $RateCodeId;
82
        $this->RoomTypeId = $RoomTypeId;
83
        $this->RoomId = $RoomId;
84
    }
85
86
    /**
87
     * @return OwnerReservationValidity
88
     */
89
    public function getValidity()
90
    {
91
        return $this->Validity;
92
    }
93
94
    /**
95
     * @param OwnerReservationValidity $Validity
96
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
97
     */
98
    public function setValidity($Validity)
99
    {
100
        $this->Validity = $Validity;
101
        return $this;
102
    }
103
104
    /**
105
     * @return RoomRestrictionStatus
106
     */
107
    public function getRestrictionType()
108
    {
109
        return $this->RestrictionType;
110
    }
111
112
    /**
113
     * @param RoomRestrictionStatus $RestrictionType
114
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
115
     */
116
    public function setRestrictionType($RestrictionType)
117
    {
118
        $this->RestrictionType = $RestrictionType;
119
        return $this;
120
    }
121
122
    /**
123
     * @return int
124
     */
125
    public function getRateYield_MinLengthValidity()
126
    {
127
        return $this->RateYield_MinLengthValidity;
128
    }
129
130
    /**
131
     * @param int $RateYield_MinLengthValidity
132
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
133
     */
134
    public function setRateYield_MinLengthValidity($RateYield_MinLengthValidity)
135
    {
136
        $this->RateYield_MinLengthValidity = $RateYield_MinLengthValidity;
137
        return $this;
138
    }
139
140
    /**
141
     * @return int
142
     */
143
    public function getRateCodeId()
144
    {
145
        return $this->RateCodeId;
146
    }
147
148
    /**
149
     * @param int $RateCodeId
150
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
151
     */
152
    public function setRateCodeId($RateCodeId)
153
    {
154
        $this->RateCodeId = $RateCodeId;
155
        return $this;
156
    }
157
158
    /**
159
     * @return int
160
     */
161
    public function getRoomTypeId()
162
    {
163
        return $this->RoomTypeId;
164
    }
165
166
    /**
167
     * @param int $RoomTypeId
168
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
169
     */
170
    public function setRoomTypeId($RoomTypeId)
171
    {
172
        $this->RoomTypeId = $RoomTypeId;
173
        return $this;
174
    }
175
176
    /**
177
     * @return int
178
     */
179
    public function getRoomId()
180
    {
181
        return $this->RoomId;
182
    }
183
184
    /**
185
     * @param int $RoomId
186
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
187
     */
188
    public function setRoomId($RoomId)
189
    {
190
        $this->RoomId = $RoomId;
191
        return $this;
192
    }
193
194
    /**
195
     * @return string
196
     */
197
    public function getRoomNo()
198
    {
199
        return $this->RoomNo;
200
    }
201
202
    /**
203
     * @param string $RoomNo
204
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
205
     */
206
    public function setRoomNo($RoomNo)
207
    {
208
        $this->RoomNo = $RoomNo;
209
        return $this;
210
    }
211
212
    /**
213
     * @return string
214
     */
215
    public function getRateCodeName()
216
    {
217
        return $this->RateCodeName;
218
    }
219
220
    /**
221
     * @param string $RateCodeName
222
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
223
     */
224
    public function setRateCodeName($RateCodeName)
225
    {
226
        $this->RateCodeName = $RateCodeName;
227
        return $this;
228
    }
229
230
    /**
231
     * @return string
232
     */
233
    public function getRoomTypeName()
234
    {
235
        return $this->RoomTypeName;
236
    }
237
238
    /**
239
     * @param string $RoomTypeName
240
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
241
     */
242
    public function setRoomTypeName($RoomTypeName)
243
    {
244
        $this->RoomTypeName = $RoomTypeName;
245
        return $this;
246
    }
247
248
    /**
249
     * @return string
250
     */
251
    public function getRateCodeDescription()
252
    {
253
        return $this->RateCodeDescription;
254
    }
255
256
    /**
257
     * @param string $RateCodeDescription
258
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
259
     */
260
    public function setRateCodeDescription($RateCodeDescription)
261
    {
262
        $this->RateCodeDescription = $RateCodeDescription;
263
        return $this;
264
    }
265
266
    /**
267
     * @return string
268
     */
269
    public function getRoomTypeDescription()
270
    {
271
        return $this->RoomTypeDescription;
272
    }
273
274
    /**
275
     * @param string $RoomTypeDescription
276
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
277
     */
278
    public function setRoomTypeDescription($RoomTypeDescription)
279
    {
280
        $this->RoomTypeDescription = $RoomTypeDescription;
281
        return $this;
282
    }
283
284
    /**
285
     * @return string
286
     */
287
    public function getMessage()
288
    {
289
        return $this->Message;
290
    }
291
292
    /**
293
     * @param string $Message
294
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValidityResponse
295
     */
296
    public function setMessage($Message)
297
    {
298
        $this->Message = $Message;
299
        return $this;
300
    }
301
}
302