Room::getEndDate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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
     * @Serializer\Expose()
89
     * @Serializer\Type("string")
90
     *
91
     * @var string
92
     */
93
    protected $productId;
94
95
    /**
96
     * nb people in booking
97
     *
98
     * @Serializer\Expose()
99
     * @Serializer\Type("integer")
100
     *
101
     * @var int
102
     */
103
    protected $travelerCount;
104
105
    /**
106
     * @Serializer\Expose()
107
     * @Serializer\Type("string")
108
     *
109
     * @var string
110
     */
111
    protected $comment;
112
113
    /**
114
     * @Serializer\Expose()
115
     * @Serializer\Type("integer")
116
     *
117
     * @var int
118
     */
119
    protected $order = 0;
120
121
    /**
122
     * @return string
123
     */
124
    public function getCode()
125
    {
126
        return $this->code;
127
    }
128
129
    /**
130
     * @param string $code
131
     *
132
     * @return $this
133
     */
134
    public function setCode($code)
135
    {
136
        $this->code = $code;
137
138
        return $this;
139
    }
140
141
    /**
142
     * @return string
143
     */
144
    public function getRoomId()
145
    {
146
        return $this->roomId;
147
    }
148
149
    /**
150
     * @param string $roomId
151
     *
152
     * @return $this
153
     */
154
    public function setRoomId($roomId)
155
    {
156
        $this->roomId = $roomId;
157
158
        return $this;
159
    }
160
161
    /**
162
     * @return string
163
     */
164
    public function getName()
165
    {
166
        return $this->name;
167
    }
168
169
    /**
170
     * @param string $name
171
     *
172
     * @return $this
173
     */
174
    public function setName($name)
175
    {
176
        $this->name = $name;
177
178
        return $this;
179
    }
180
181
    /**
182
     * @return int
183
     */
184
    public function getQuantity()
185
    {
186
        return $this->quantity;
187
    }
188
189
    /**
190
     * @param int $quantity
191
     *
192
     * @return $this
193
     */
194
    public function setQuantity($quantity)
195
    {
196
        $this->quantity = $quantity;
197
198
        return $this;
199
    }
200
201
    /**
202
     * @return \DateTime
203
     */
204
    public function getStartDate()
205
    {
206
        return $this->startDate;
207
    }
208
209
    /**
210
     * @param \DateTime $startDate
211
     *
212
     * @return $this
213
     */
214
    public function setStartDate($startDate)
215
    {
216
        $this->startDate = $startDate;
217
218
        return $this;
219
    }
220
221
    /**
222
     * @return \DateTime
223
     */
224
    public function getEndDate()
225
    {
226
        return $this->endDate;
227
    }
228
229
    /**
230
     * @param \DateTime $endDate
231
     *
232
     * @return $this
233
     */
234
    public function setEndDate($endDate)
235
    {
236
        $this->endDate = $endDate;
237
238
        return $this;
239
    }
240
241
    /**
242
     * @return int
243
     */
244
    public function getTravelerCount()
245
    {
246
        return $this->travelerCount;
247
    }
248
249
    /**
250
     * @param int $travelerCount
251
     *
252
     * @return $this
253
     */
254
    public function setTravelerCount($travelerCount)
255
    {
256
        $this->travelerCount = $travelerCount;
257
258
        return $this;
259
    }
260
261
    /**
262
     * @return string
263
     */
264
    public function getComment()
265
    {
266
        return $this->comment;
267
    }
268
269
    /**
270
     * @param string $comment
271
     *
272
     * @return $this
273
     */
274
    public function setComment($comment)
275
    {
276
        $this->comment = $comment;
277
278
        return $this;
279
    }
280
281
    /**
282
     * @return float
283
     */
284
    public function getPrice()
285
    {
286
        return $this->price;
287
    }
288
289
    /**
290
     * @param float $price
291
     *
292
     * @return $this
293
     */
294
    public function setPrice($price)
295
    {
296
        $this->price = $price;
297
298
        return $this;
299
    }
300
301
    /**
302
     * @return Currency
303
     */
304
    public function getCurrency()
305
    {
306
        return $this->currency;
307
    }
308
309
    /**
310
     * @param Currency $currency
311
     *
312
     * @return $this
313
     */
314
    public function setCurrency($currency)
315
    {
316
        $this->currency = $currency;
317
318
        return $this;
319
    }
320
321
    /**
322
     * @return int $order
323
     */
324
    public function getOrder()
325
    {
326
        return $this->order;
327
    }
328
329
    /**
330
     * @param int $order
331
     *
332
     * @return $this
333
     */
334
    public function setOrder($order)
335
    {
336
        $this->order = $order;
337
338
        return $this;
339
    }
340
341
    /**
342
     * @return PriceDetail[]
343
     */
344
    public function getPriceDetails()
345
    {
346
        return $this->priceDetails;
347
    }
348
349
    /**
350
     * @param PriceDetail[] $priceDetails
351
     *
352
     * @return $this
353
     */
354
    public function setPriceDetails($priceDetails)
355
    {
356
        $this->priceDetails = $priceDetails;
357
358
        return $this;
359
    }
360
361
    /**
362
     * @return string
363
     */
364
    public function getProductId()
365
    {
366
        return $this->productId;
367
    }
368
369
    /**
370
     * @param string $productId
371
     *
372
     * @return $this
373
     */
374
    public function setProductId($productId)
375
    {
376
        $this->productId = $productId;
377
378
        return $this;
379
    }
380
}
381