StayValue::setID_Stay()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 5
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 View Code Duplication
class StayValue
0 ignored issues
show
Duplication introduced by
This class 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...
6
{
7
8
    /**
9
     * @var int $GUID
10
     */
11
    protected $GUID = null;
12
13
    /**
14
     * @var int $ID_Stay
15
     */
16
    protected $ID_Stay = null;
17
18
    /**
19
     * @var int $ID_RoomType
20
     */
21
    protected $ID_RoomType = null;
22
23
    /**
24
     * @var int $ID_RateCode
25
     */
26
    protected $ID_RateCode = null;
27
28
    /**
29
     * @var float $FirstNight
30
     */
31
    protected $FirstNight = null;
32
33
    /**
34
     * @var float $FirstNightTax
35
     */
36
    protected $FirstNightTax = null;
37
38
    /**
39
     * @var float $AvgNight
40
     */
41
    protected $AvgNight = null;
42
43
    /**
44
     * @var float $AvgNightTax
45
     */
46
    protected $AvgNightTax = null;
47
48
    /**
49
     * @var float $TotalStay
50
     */
51
    protected $TotalStay = null;
52
53
    /**
54
     * @var float $TotalStayTax
55
     */
56
    protected $TotalStayTax = null;
57
58
    /**
59
     * @var float $RequiredDeposit
60
     */
61
    protected $RequiredDeposit = null;
62
63
    /**
64
     * @var float $TotalOthers
65
     */
66
    protected $TotalOthers = null;
67
68
    /**
69
     * @var ArrayOfStayDailyValue $StayDailyValuesArray
70
     */
71
    protected $StayDailyValuesArray = null;
72
73
    /**
74
     * @param int $GUID
75
     * @param int $ID_Stay
76
     * @param int $ID_RoomType
77
     * @param int $ID_RateCode
78
     * @param float $FirstNight
79
     * @param float $FirstNightTax
80
     * @param float $AvgNight
81
     * @param float $AvgNightTax
82
     * @param float $TotalStay
83
     * @param float $TotalStayTax
84
     * @param float $RequiredDeposit
85
     * @param float $TotalOthers
86
     */
87
    public function __construct($GUID, $ID_Stay, $ID_RoomType, $ID_RateCode, $FirstNight, $FirstNightTax, $AvgNight, $AvgNightTax, $TotalStay, $TotalStayTax, $RequiredDeposit, $TotalOthers)
88
    {
89
        $this->GUID = $GUID;
90
        $this->ID_Stay = $ID_Stay;
91
        $this->ID_RoomType = $ID_RoomType;
92
        $this->ID_RateCode = $ID_RateCode;
93
        $this->FirstNight = $FirstNight;
94
        $this->FirstNightTax = $FirstNightTax;
95
        $this->AvgNight = $AvgNight;
96
        $this->AvgNightTax = $AvgNightTax;
97
        $this->TotalStay = $TotalStay;
98
        $this->TotalStayTax = $TotalStayTax;
99
        $this->RequiredDeposit = $RequiredDeposit;
100
        $this->TotalOthers = $TotalOthers;
101
    }
102
103
    /**
104
     * @return int
105
     */
106
    public function getGUID()
107
    {
108
        return $this->GUID;
109
    }
110
111
    /**
112
     * @param int $GUID
113
     * @return \Gueststream\PMS\IQWare\API\StayValue
114
     */
115
    public function setGUID($GUID)
116
    {
117
        $this->GUID = $GUID;
118
        return $this;
119
    }
120
121
    /**
122
     * @return int
123
     */
124
    public function getID_Stay()
125
    {
126
        return $this->ID_Stay;
127
    }
128
129
    /**
130
     * @param int $ID_Stay
131
     * @return \Gueststream\PMS\IQWare\API\StayValue
132
     */
133
    public function setID_Stay($ID_Stay)
134
    {
135
        $this->ID_Stay = $ID_Stay;
136
        return $this;
137
    }
138
139
    /**
140
     * @return int
141
     */
142
    public function getID_RoomType()
143
    {
144
        return $this->ID_RoomType;
145
    }
146
147
    /**
148
     * @param int $ID_RoomType
149
     * @return \Gueststream\PMS\IQWare\API\StayValue
150
     */
151
    public function setID_RoomType($ID_RoomType)
152
    {
153
        $this->ID_RoomType = $ID_RoomType;
154
        return $this;
155
    }
156
157
    /**
158
     * @return int
159
     */
160
    public function getID_RateCode()
161
    {
162
        return $this->ID_RateCode;
163
    }
164
165
    /**
166
     * @param int $ID_RateCode
167
     * @return \Gueststream\PMS\IQWare\API\StayValue
168
     */
169
    public function setID_RateCode($ID_RateCode)
170
    {
171
        $this->ID_RateCode = $ID_RateCode;
172
        return $this;
173
    }
174
175
    /**
176
     * @return float
177
     */
178
    public function getFirstNight()
179
    {
180
        return $this->FirstNight;
181
    }
182
183
    /**
184
     * @param float $FirstNight
185
     * @return \Gueststream\PMS\IQWare\API\StayValue
186
     */
187
    public function setFirstNight($FirstNight)
188
    {
189
        $this->FirstNight = $FirstNight;
190
        return $this;
191
    }
192
193
    /**
194
     * @return float
195
     */
196
    public function getFirstNightTax()
197
    {
198
        return $this->FirstNightTax;
199
    }
200
201
    /**
202
     * @param float $FirstNightTax
203
     * @return \Gueststream\PMS\IQWare\API\StayValue
204
     */
205
    public function setFirstNightTax($FirstNightTax)
206
    {
207
        $this->FirstNightTax = $FirstNightTax;
208
        return $this;
209
    }
210
211
    /**
212
     * @return float
213
     */
214
    public function getAvgNight()
215
    {
216
        return $this->AvgNight;
217
    }
218
219
    /**
220
     * @param float $AvgNight
221
     * @return \Gueststream\PMS\IQWare\API\StayValue
222
     */
223
    public function setAvgNight($AvgNight)
224
    {
225
        $this->AvgNight = $AvgNight;
226
        return $this;
227
    }
228
229
    /**
230
     * @return float
231
     */
232
    public function getAvgNightTax()
233
    {
234
        return $this->AvgNightTax;
235
    }
236
237
    /**
238
     * @param float $AvgNightTax
239
     * @return \Gueststream\PMS\IQWare\API\StayValue
240
     */
241
    public function setAvgNightTax($AvgNightTax)
242
    {
243
        $this->AvgNightTax = $AvgNightTax;
244
        return $this;
245
    }
246
247
    /**
248
     * @return float
249
     */
250
    public function getTotalStay()
251
    {
252
        return $this->TotalStay;
253
    }
254
255
    /**
256
     * @param float $TotalStay
257
     * @return \Gueststream\PMS\IQWare\API\StayValue
258
     */
259
    public function setTotalStay($TotalStay)
260
    {
261
        $this->TotalStay = $TotalStay;
262
        return $this;
263
    }
264
265
    /**
266
     * @return float
267
     */
268
    public function getTotalStayTax()
269
    {
270
        return $this->TotalStayTax;
271
    }
272
273
    /**
274
     * @param float $TotalStayTax
275
     * @return \Gueststream\PMS\IQWare\API\StayValue
276
     */
277
    public function setTotalStayTax($TotalStayTax)
278
    {
279
        $this->TotalStayTax = $TotalStayTax;
280
        return $this;
281
    }
282
283
    /**
284
     * @return float
285
     */
286
    public function getRequiredDeposit()
287
    {
288
        return $this->RequiredDeposit;
289
    }
290
291
    /**
292
     * @param float $RequiredDeposit
293
     * @return \Gueststream\PMS\IQWare\API\StayValue
294
     */
295
    public function setRequiredDeposit($RequiredDeposit)
296
    {
297
        $this->RequiredDeposit = $RequiredDeposit;
298
        return $this;
299
    }
300
301
    /**
302
     * @return float
303
     */
304
    public function getTotalOthers()
305
    {
306
        return $this->TotalOthers;
307
    }
308
309
    /**
310
     * @param float $TotalOthers
311
     * @return \Gueststream\PMS\IQWare\API\StayValue
312
     */
313
    public function setTotalOthers($TotalOthers)
314
    {
315
        $this->TotalOthers = $TotalOthers;
316
        return $this;
317
    }
318
319
    /**
320
     * @return ArrayOfStayDailyValue
321
     */
322
    public function getStayDailyValuesArray()
323
    {
324
        return $this->StayDailyValuesArray;
325
    }
326
327
    /**
328
     * @param ArrayOfStayDailyValue $StayDailyValuesArray
329
     * @return \Gueststream\PMS\IQWare\API\StayValue
330
     */
331
    public function setStayDailyValuesArray($StayDailyValuesArray)
332
    {
333
        $this->StayDailyValuesArray = $StayDailyValuesArray;
334
        return $this;
335
    }
336
}
337