1 | <?php |
||
11 | class HotelsQuery extends Query |
||
12 | { |
||
13 | public const EXTRAS_HOTEL_DESCRIPTION = 'hotel_description'; |
||
14 | public const EXTRAS_HOTEL_FACILITIES = 'hotel_facilities'; |
||
15 | public const EXTRAS_HOTEL_INFO = 'hotel_info'; |
||
16 | public const EXTRAS_HOTEL_PHOTOS = 'hotel_photos'; |
||
17 | public const EXTRAS_HOTEL_POLICIES = 'hotel_policies'; |
||
18 | public const EXTRAS_KEY_COLLECTION_INFO = 'key_collection_info'; |
||
19 | public const EXTRAS_PAYMENT_DETAILS = 'payment_details'; |
||
20 | public const EXTRAS_ROOM_DESCRIPTION = 'room_description'; |
||
21 | public const EXTRAS_ROOM_FACILITIES = 'room_facilities'; |
||
22 | public const EXTRAS_ROOM_INFO = 'room_info'; |
||
23 | public const EXTRAS_ROOM_PHOTOS = 'room_photos'; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected static $uri = '/hotels'; |
||
29 | |||
30 | /** |
||
31 | * Limit the results to these cities. |
||
32 | * |
||
33 | * @var array |
||
34 | */ |
||
35 | protected $city_ids; |
||
36 | |||
37 | /** |
||
38 | * Limit the results to these regions. |
||
39 | * |
||
40 | * @var array |
||
41 | */ |
||
42 | protected $region_ids; |
||
43 | |||
44 | /** |
||
45 | * Limit the results to these country codes (cc1). |
||
46 | * |
||
47 | * @var array |
||
48 | */ |
||
49 | protected $country_ids; |
||
50 | |||
51 | /** |
||
52 | * Limit the results to these districts. |
||
53 | * |
||
54 | * @var array |
||
55 | */ |
||
56 | protected $district_ids; |
||
57 | |||
58 | /** |
||
59 | * Additional information available (via extras parameter) are: |
||
60 | * hotel_description |
||
61 | * hotel_facilities |
||
62 | * hotel_info |
||
63 | * hotel_photos |
||
64 | * hotel_policies |
||
65 | * key_collection_info |
||
66 | * payment_details |
||
67 | * room_description |
||
68 | * room_facilities |
||
69 | * room_info |
||
70 | * room_photos |
||
71 | * |
||
72 | * @var array |
||
73 | */ |
||
74 | protected $extras; |
||
75 | |||
76 | /** |
||
77 | * Limit the result to these hotels. |
||
78 | * |
||
79 | * @var array |
||
80 | */ |
||
81 | protected $hotel_ids; |
||
82 | |||
83 | /** |
||
84 | * The language code to return the results in. |
||
85 | * |
||
86 | * @var string |
||
87 | */ |
||
88 | protected $language; |
||
89 | |||
90 | /** |
||
91 | * Where in the resulting list to start. This can be used together with {rows} to get the data in parts. |
||
92 | * |
||
93 | * @var integer |
||
94 | */ |
||
95 | protected $offset; |
||
96 | |||
97 | /** |
||
98 | * The maximum number of entries to return. This can be used together with {offset} to get the data in parts. |
||
99 | * |
||
100 | * @var integer |
||
101 | */ |
||
102 | protected $rows; |
||
103 | |||
104 | /** |
||
105 | * @return bool |
||
106 | */ |
||
107 | public function isSecure(): bool |
||
111 | |||
112 | /** |
||
113 | * @return array |
||
114 | */ |
||
115 | public function getCityIds(): ?array |
||
119 | |||
120 | /** |
||
121 | * @param array $city_ids |
||
122 | * @return $this |
||
123 | */ |
||
124 | public function setCityIds(array $city_ids): self |
||
130 | |||
131 | /** |
||
132 | * @return array |
||
133 | */ |
||
134 | public function getCountryIds(): ?array |
||
138 | |||
139 | /** |
||
140 | * @param array $country_ids |
||
141 | * @return $this |
||
142 | */ |
||
143 | public function setCountryIds(array $country_ids): self |
||
149 | |||
150 | /** |
||
151 | * @return array |
||
152 | */ |
||
153 | public function getDistrictIds(): ?array |
||
157 | |||
158 | /** |
||
159 | * @param array $district_ids |
||
160 | * @return $this |
||
161 | */ |
||
162 | public function setDistrictIds(array $district_ids): self |
||
168 | |||
169 | /** |
||
170 | * @return array |
||
171 | */ |
||
172 | public function getExtras(): ?array |
||
176 | |||
177 | /** |
||
178 | * @param array $extras |
||
179 | * @return $this |
||
180 | */ |
||
181 | public function setExtras(array $extras): self |
||
187 | |||
188 | /** |
||
189 | * @return self |
||
190 | */ |
||
191 | public function withExtras(): self |
||
209 | |||
210 | /** |
||
211 | * @return array |
||
212 | */ |
||
213 | public function getHotelIds(): ?array |
||
217 | |||
218 | /** |
||
219 | * @param array $hotel_ids |
||
220 | * @return $this |
||
221 | */ |
||
222 | public function setHotelIds(array $hotel_ids): self |
||
228 | |||
229 | /** |
||
230 | * @return string |
||
231 | */ |
||
232 | public function getLanguage(): ?string |
||
236 | |||
237 | /** |
||
238 | * @param string $language |
||
239 | * @return $this |
||
240 | */ |
||
241 | public function setLanguage(string $language): self |
||
247 | |||
248 | /** |
||
249 | * @return int |
||
250 | */ |
||
251 | public function getOffset(): ?int |
||
255 | |||
256 | /** |
||
257 | * @param int $offset |
||
258 | * @return $this |
||
259 | */ |
||
260 | public function setOffset(int $offset): self |
||
266 | |||
267 | /** |
||
268 | * @return int |
||
269 | */ |
||
270 | public function getRows(): ?int |
||
274 | |||
275 | /** |
||
276 | * @param int $rows |
||
277 | * @return $this |
||
278 | */ |
||
279 | public function setRows(int $rows): self |
||
285 | |||
286 | /** |
||
287 | * @return array |
||
288 | */ |
||
289 | protected function getAttributeMap(): array |
||
303 | |||
304 | /** |
||
305 | * Specify Model class name. |
||
306 | * |
||
307 | * @return string |
||
308 | */ |
||
309 | protected function model(): string |
||
313 | } |
||
314 |