SuiteItems::setRoomLocationIDs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class SuiteItems
6
{
7
8
    /**
9
     * @var int $ID_Room
10
     */
11
    protected $ID_Room = null;
12
13
    /**
14
     * @var int $ID_RoomType
15
     */
16
    protected $ID_RoomType = null;
17
18
    /**
19
     * @var int $ID_Building
20
     */
21
    protected $ID_Building = null;
22
23
    /**
24
     * @var string $RoomNo
25
     */
26
    protected $RoomNo = null;
27
28
    /**
29
     * @var string $OldRoomNo
30
     */
31
    protected $OldRoomNo = null;
32
33
    /**
34
     * @var string $OptionalRoomName
35
     */
36
    protected $OptionalRoomName = null;
37
38
    /**
39
     * @var boolean $IsMainRoom
40
     */
41
    protected $IsMainRoom = null;
42
43
    /**
44
     * @var int $ID_AccommodationType
45
     */
46
    protected $ID_AccommodationType = null;
47
48
    /**
49
     * @var int $ID_Floor
50
     */
51
    protected $ID_Floor = null;
52
53
    /**
54
     * @var string $FloorNo
55
     */
56
    protected $FloorNo = null;
57
58
    /**
59
     * @var int $ID_Bedding
60
     */
61
    protected $ID_Bedding = null;
62
63
    /**
64
     * @var ArrayOfInt $RoomAttributeIDs
65
     */
66
    protected $RoomAttributeIDs = null;
67
68
    /**
69
     * @var ArrayOfInt $RoomLocationIDs
70
     */
71
    protected $RoomLocationIDs = null;
72
73
    /**
74
     * @param int $ID_Room
75
     * @param int $ID_RoomType
76
     * @param int $ID_Building
77
     * @param boolean $IsMainRoom
78
     * @param int $ID_AccommodationType
79
     * @param int $ID_Floor
80
     * @param int $ID_Bedding
81
     */
82 View Code Duplication
    public function __construct($ID_Room, $ID_RoomType, $ID_Building, $IsMainRoom, $ID_AccommodationType, $ID_Floor, $ID_Bedding)
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...
83
    {
84
        $this->ID_Room = $ID_Room;
85
        $this->ID_RoomType = $ID_RoomType;
86
        $this->ID_Building = $ID_Building;
87
        $this->IsMainRoom = $IsMainRoom;
88
        $this->ID_AccommodationType = $ID_AccommodationType;
89
        $this->ID_Floor = $ID_Floor;
90
        $this->ID_Bedding = $ID_Bedding;
91
    }
92
93
    /**
94
     * @return int
95
     */
96
    public function getID_Room()
97
    {
98
        return $this->ID_Room;
99
    }
100
101
    /**
102
     * @param int $ID_Room
103
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
104
     */
105
    public function setID_Room($ID_Room)
106
    {
107
        $this->ID_Room = $ID_Room;
108
        return $this;
109
    }
110
111
    /**
112
     * @return int
113
     */
114
    public function getID_RoomType()
115
    {
116
        return $this->ID_RoomType;
117
    }
118
119
    /**
120
     * @param int $ID_RoomType
121
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
122
     */
123
    public function setID_RoomType($ID_RoomType)
124
    {
125
        $this->ID_RoomType = $ID_RoomType;
126
        return $this;
127
    }
128
129
    /**
130
     * @return int
131
     */
132
    public function getID_Building()
133
    {
134
        return $this->ID_Building;
135
    }
136
137
    /**
138
     * @param int $ID_Building
139
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
140
     */
141
    public function setID_Building($ID_Building)
142
    {
143
        $this->ID_Building = $ID_Building;
144
        return $this;
145
    }
146
147
    /**
148
     * @return string
149
     */
150
    public function getRoomNo()
151
    {
152
        return $this->RoomNo;
153
    }
154
155
    /**
156
     * @param string $RoomNo
157
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
158
     */
159
    public function setRoomNo($RoomNo)
160
    {
161
        $this->RoomNo = $RoomNo;
162
        return $this;
163
    }
164
165
    /**
166
     * @return string
167
     */
168
    public function getOldRoomNo()
169
    {
170
        return $this->OldRoomNo;
171
    }
172
173
    /**
174
     * @param string $OldRoomNo
175
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
176
     */
177
    public function setOldRoomNo($OldRoomNo)
178
    {
179
        $this->OldRoomNo = $OldRoomNo;
180
        return $this;
181
    }
182
183
    /**
184
     * @return string
185
     */
186
    public function getOptionalRoomName()
187
    {
188
        return $this->OptionalRoomName;
189
    }
190
191
    /**
192
     * @param string $OptionalRoomName
193
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
194
     */
195
    public function setOptionalRoomName($OptionalRoomName)
196
    {
197
        $this->OptionalRoomName = $OptionalRoomName;
198
        return $this;
199
    }
200
201
    /**
202
     * @return boolean
203
     */
204
    public function getIsMainRoom()
205
    {
206
        return $this->IsMainRoom;
207
    }
208
209
    /**
210
     * @param boolean $IsMainRoom
211
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
212
     */
213
    public function setIsMainRoom($IsMainRoom)
214
    {
215
        $this->IsMainRoom = $IsMainRoom;
216
        return $this;
217
    }
218
219
    /**
220
     * @return int
221
     */
222
    public function getID_AccommodationType()
223
    {
224
        return $this->ID_AccommodationType;
225
    }
226
227
    /**
228
     * @param int $ID_AccommodationType
229
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
230
     */
231
    public function setID_AccommodationType($ID_AccommodationType)
232
    {
233
        $this->ID_AccommodationType = $ID_AccommodationType;
234
        return $this;
235
    }
236
237
    /**
238
     * @return int
239
     */
240
    public function getID_Floor()
241
    {
242
        return $this->ID_Floor;
243
    }
244
245
    /**
246
     * @param int $ID_Floor
247
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
248
     */
249
    public function setID_Floor($ID_Floor)
250
    {
251
        $this->ID_Floor = $ID_Floor;
252
        return $this;
253
    }
254
255
    /**
256
     * @return string
257
     */
258
    public function getFloorNo()
259
    {
260
        return $this->FloorNo;
261
    }
262
263
    /**
264
     * @param string $FloorNo
265
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
266
     */
267
    public function setFloorNo($FloorNo)
268
    {
269
        $this->FloorNo = $FloorNo;
270
        return $this;
271
    }
272
273
    /**
274
     * @return int
275
     */
276
    public function getID_Bedding()
277
    {
278
        return $this->ID_Bedding;
279
    }
280
281
    /**
282
     * @param int $ID_Bedding
283
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
284
     */
285
    public function setID_Bedding($ID_Bedding)
286
    {
287
        $this->ID_Bedding = $ID_Bedding;
288
        return $this;
289
    }
290
291
    /**
292
     * @return ArrayOfInt
293
     */
294
    public function getRoomAttributeIDs()
295
    {
296
        return $this->RoomAttributeIDs;
297
    }
298
299
    /**
300
     * @param ArrayOfInt $RoomAttributeIDs
301
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
302
     */
303
    public function setRoomAttributeIDs($RoomAttributeIDs)
304
    {
305
        $this->RoomAttributeIDs = $RoomAttributeIDs;
306
        return $this;
307
    }
308
309
    /**
310
     * @return ArrayOfInt
311
     */
312
    public function getRoomLocationIDs()
313
    {
314
        return $this->RoomLocationIDs;
315
    }
316
317
    /**
318
     * @param ArrayOfInt $RoomLocationIDs
319
     * @return \Gueststream\PMS\IQWare\API\SuiteItems
320
     */
321
    public function setRoomLocationIDs($RoomLocationIDs)
322
    {
323
        $this->RoomLocationIDs = $RoomLocationIDs;
324
        return $this;
325
    }
326
}
327