1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace XoteliaClient\Model; |
4
|
|
|
|
5
|
|
|
use JMS\Serializer\Annotation as Serializer; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* @Serializer\ExclusionPolicy("all") |
9
|
|
|
*/ |
10
|
|
|
class PriceDetail |
11
|
|
|
{ |
12
|
|
|
/** |
13
|
|
|
* @Serializer\Expose() |
14
|
|
|
* @Serializer\Type("float") |
15
|
|
|
* |
16
|
|
|
* @var float |
17
|
|
|
*/ |
18
|
|
|
protected $amount; |
19
|
|
|
|
20
|
|
|
/** |
21
|
|
|
* @Serializer\Expose() |
22
|
|
|
* @Serializer\Type("boolean") |
23
|
|
|
* |
24
|
|
|
* @var boolean |
25
|
|
|
*/ |
26
|
|
|
protected $isIncluded; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @Serializer\Expose() |
30
|
|
|
* @Serializer\Type("boolean") |
31
|
|
|
* |
32
|
|
|
* @var boolean |
33
|
|
|
*/ |
34
|
|
|
protected $isPerNight; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @Serializer\Expose() |
38
|
|
|
* @Serializer\Type("boolean") |
39
|
|
|
* |
40
|
|
|
* @var boolean |
41
|
|
|
*/ |
42
|
|
|
protected $isPerPerson; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @Serializer\Expose() |
46
|
|
|
* @Serializer\Type("string") |
47
|
|
|
* |
48
|
|
|
* @var string |
49
|
|
|
*/ |
50
|
|
|
protected $percentage; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @Serializer\Expose() |
54
|
|
|
* @Serializer\Type("string") |
55
|
|
|
* |
56
|
|
|
* @var string |
57
|
|
|
*/ |
58
|
|
|
protected $text; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @return float |
62
|
|
|
*/ |
63
|
|
|
public function getAmount() |
64
|
|
|
{ |
65
|
|
|
return $this->amount; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @param float $amount |
70
|
|
|
* |
71
|
|
|
* @return $this |
72
|
|
|
*/ |
73
|
|
|
public function setAmount($amount) |
74
|
|
|
{ |
75
|
|
|
$this->amount = $amount; |
76
|
|
|
|
77
|
|
|
return $this; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @return string |
82
|
|
|
*/ |
83
|
|
|
public function getIsIncluded() |
84
|
|
|
{ |
85
|
|
|
return $this->isIncluded; |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @param bool $isIncluded |
90
|
|
|
* |
91
|
|
|
* @return $this |
92
|
|
|
*/ |
93
|
|
|
public function setIsIncluded($isIncluded) |
94
|
|
|
{ |
95
|
|
|
$this->isIncluded = $isIncluded; |
96
|
|
|
|
97
|
|
|
return $this; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @return bool |
102
|
|
|
*/ |
103
|
|
|
public function getIsPerNight() |
104
|
|
|
{ |
105
|
|
|
return $this->isPerNight; |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* @param bool $isPerNight |
110
|
|
|
* |
111
|
|
|
* @return $this |
112
|
|
|
*/ |
113
|
|
|
public function setIsPerNight($isPerNight) |
114
|
|
|
{ |
115
|
|
|
$this->isPerNight = $isPerNight; |
116
|
|
|
|
117
|
|
|
return $this; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @return bool |
122
|
|
|
*/ |
123
|
|
|
public function getIsPerPerson() |
124
|
|
|
{ |
125
|
|
|
return $this->isPerPerson; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
/** |
129
|
|
|
* @param bool $isPerPerson |
130
|
|
|
* |
131
|
|
|
* @return $this |
132
|
|
|
*/ |
133
|
|
|
public function setIsPerPerson($isPerPerson) |
134
|
|
|
{ |
135
|
|
|
$this->isPerPerson = $isPerPerson; |
136
|
|
|
|
137
|
|
|
return $this; |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
/** |
141
|
|
|
* @return string |
142
|
|
|
*/ |
143
|
|
|
public function getPercentage() |
144
|
|
|
{ |
145
|
|
|
return $this->percentage; |
146
|
|
|
} |
147
|
|
|
|
148
|
|
|
/** |
149
|
|
|
* @param string $percentage |
150
|
|
|
* |
151
|
|
|
* @return $this |
152
|
|
|
*/ |
153
|
|
|
public function setPercentage($percentage) |
154
|
|
|
{ |
155
|
|
|
$this->percentage = $percentage; |
156
|
|
|
|
157
|
|
|
return $this; |
158
|
|
|
} |
159
|
|
|
|
160
|
|
|
/** |
161
|
|
|
* @return string |
162
|
|
|
*/ |
163
|
|
|
public function getText() |
164
|
|
|
{ |
165
|
|
|
return $this->text; |
166
|
|
|
} |
167
|
|
|
|
168
|
|
|
/** |
169
|
|
|
* @param string $text |
170
|
|
|
* |
171
|
|
|
* @return $this |
172
|
|
|
*/ |
173
|
|
|
public function setText($text) |
174
|
|
|
{ |
175
|
|
|
$this->text = $text; |
176
|
|
|
|
177
|
|
|
return $this; |
178
|
|
|
} |
179
|
|
|
} |
180
|
|
|
|