Completed
Push — master ( 98fc75...1c7a02 )
by Rémy
03:43
created

Room::setQuantity()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace XoteliaClient\Model;
4
5
use Doctrine\Common\Collections\ArrayCollection;
6
use JMS\Serializer\Annotation as Serializer;
7
8
/**
9
 * @Serializer\ExclusionPolicy("all")
10
 */
11
class Room
12
{
13
    /**
14
     * @Serializer\Expose()
15
     * @Serializer\Type("string")
16
     *
17
     * @var string
18
     */
19
    protected $code;
20
21
    /**
22
     * @Serializer\Expose()
23
     * @Serializer\Type("string")
24
     *
25
     * @var string
26
     */
27
    protected $roomId;
28
29
    /**
30
     * product name
31
     *
32
     * @Serializer\Expose()
33
     * @Serializer\Type("string")
34
     *
35
     * @var string
36
     */
37
    protected $name;
38
39
    /**
40
     * @Serializer\Expose()
41
     * @Serializer\Type("integer")
42
     *
43
     * @var int
44
     */
45
    protected $quantity;
46
47
    /**
48
     * @Serializer\Expose()
49
     * @Serializer\Type("DateTime")
50
     *
51
     * @var \DateTime
52
     */
53
    protected $startDate;
54
55
    /**
56
     * @Serializer\Expose()
57
     * @Serializer\Type("DateTime")
58
     *
59
     * @var \DateTime
60
     */
61
    protected $endDate;
62
63
    /**
64
     * @Serializer\Expose()
65
     * @Serializer\Type("float")
66
     *
67
     * @var float
68
     */
69
    protected $price;
70
71
    /**
72
     * @Serializer\Expose()
73
     * @Serializer\Type("array<XoteliaClient\Model\PriceDetail>")
74
     *
75
     * @var array
76
     */
77
    protected $priceDetails;
78
79
    /**
80
     * @Serializer\Expose()
81
     * @Serializer\Type("XoteliaClient\Model\Currency")
82
     *
83
     * @var \XoteliaClient\Model\Currency
84
     */
85
    protected $currency;
86
87
    /**
88
     * nb people in booking
89
     *
90
     * @Serializer\Expose()
91
     * @Serializer\Type("integer")
92
     *
93
     * @var int
94
     */
95
    protected $travelerCount;
96
97
    /**
98
     * @Serializer\Expose()
99
     * @Serializer\Type("string")
100
     *
101
     * @var string
102
     */
103
    protected $comment;
104
105
    /**
106
     * @Serializer\Expose()
107
     * @Serializer\Type("integer")
108
     *
109
     * @var int
110
     */
111
    protected $order = 0;
112
113
    /**
114
     * @return string
115
     */
116
    public function getCode()
117
    {
118
        return $this->code;
119
    }
120
121
    /**
122
     * @param string $code
123
     *
124
     * @return $this
125
     */
126
    public function setCode($code)
127
    {
128
        $this->code = $code;
129
130
        return $this;
131
    }
132
133
    /**
134
     * @return string
135
     */
136
    public function getRoomId()
137
    {
138
        return $this->roomId;
139
    }
140
141
    /**
142
     * @param string $roomId
143
     *
144
     * @return $this
145
     */
146
    public function setRoomId($roomId)
147
    {
148
        $this->roomId = $roomId;
149
150
        return $this;
151
    }
152
153
    /**
154
     * @return string
155
     */
156
    public function getName()
157
    {
158
        return $this->name;
159
    }
160
161
    /**
162
     * @param string $name
163
     *
164
     * @return $this
165
     */
166
    public function setName($name)
167
    {
168
        $this->name = $name;
169
170
        return $this;
171
    }
172
173
    /**
174
     * @return int
175
     */
176
    public function getQuantity()
177
    {
178
        return $this->quantity;
179
    }
180
181
    /**
182
     * @param int $quantity
183
     *
184
     * @return $this
185
     */
186
    public function setQuantity($quantity)
187
    {
188
        $this->quantity = $quantity;
189
190
        return $this;
191
    }
192
193
    /**
194
     * @return \DateTime
195
     */
196
    public function getStartDate()
197
    {
198
        return $this->startDate;
199
    }
200
201
    /**
202
     * @param \DateTime $startDate
203
     *
204
     * @return $this
205
     */
206
    public function setStartDate($startDate)
207
    {
208
        $this->startDate = $startDate;
209
210
        return $this;
211
    }
212
213
    /**
214
     * @return \DateTime
215
     */
216
    public function getEndDate()
217
    {
218
        return $this->endDate;
219
    }
220
221
    /**
222
     * @param \DateTime $endDate
223
     *
224
     * @return $this
225
     */
226
    public function setEndDate($endDate)
227
    {
228
        $this->endDate = $endDate;
229
230
        return $this;
231
    }
232
233
    /**
234
     * @return int
235
     */
236
    public function getTravelerCount()
237
    {
238
        return $this->travelerCount;
239
    }
240
241
    /**
242
     * @param int $travelerCount
243
     *
244
     * @return $this
245
     */
246
    public function setTravelerCount($travelerCount)
247
    {
248
        $this->travelerCount = $travelerCount;
249
250
        return $this;
251
    }
252
253
    /**
254
     * @return string
255
     */
256
    public function getComment()
257
    {
258
        return $this->comment;
259
    }
260
261
    /**
262
     * @param string $comment
263
     *
264
     * @return $this
265
     */
266
    public function setComment($comment)
267
    {
268
        $this->comment = $comment;
269
270
        return $this;
271
    }
272
273
    /**
274
     * @return float
275
     */
276
    public function getPrice()
277
    {
278
        return $this->price;
279
    }
280
281
    /**
282
     * @param float $price
283
     *
284
     * @return $this
285
     */
286
    public function setPrice($price)
287
    {
288
        $this->price = $price;
289
290
        return $this;
291
    }
292
293
    /**
294
     * @return Currency
295
     */
296
    public function getCurrency()
297
    {
298
        return $this->currency;
299
    }
300
301
    /**
302
     * @param Currency $currency
303
     *
304
     * @return $this
305
     */
306
    public function setCurrency($currency)
307
    {
308
        $this->currency = $currency;
309
310
        return $this;
311
    }
312
313
    /**
314
     * @return int $order
315
     */
316
    public function getOrder()
317
    {
318
        return $this->order;
319
    }
320
321
    /**
322
     * @param int $order
323
     *
324
     * @return $this
325
     */
326
    public function setOrder($order)
327
    {
328
        $this->order = $order;
329
330
        return $this;
331
    }
332
333
    /**
334
     * @return PriceDetail[]
335
     */
336
    public function getPriceDetails()
337
    {
338
        return $this->priceDetails;
339
    }
340
341
    /**
342
     * @param PriceDetail[] $priceDetails
343
     *
344
     * @return $this
345
     */
346
    public function setPriceDetails($priceDetails)
347
    {
348
        $this->priceDetails = $priceDetails;
349
350
        return $this;
351
    }
352
}
353