| @@ 5-354 (lines=350) @@ | ||
| 2 | ||
| 3 | namespace Gueststream\PMS\IQWare\API; |
|
| 4 | ||
| 5 | class AvailRatesAndRooms |
|
| 6 | { |
|
| 7 | ||
| 8 | /** |
|
| 9 | * @var int $intGUID |
|
| 10 | */ |
|
| 11 | protected $intGUID = null; |
|
| 12 | ||
| 13 | /** |
|
| 14 | * @var string $strLang |
|
| 15 | */ |
|
| 16 | protected $strLang = null; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * @var \DateTime $ArrivalDate |
|
| 20 | */ |
|
| 21 | protected $ArrivalDate = null; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * @var \DateTime $DepartureDate |
|
| 25 | */ |
|
| 26 | protected $DepartureDate = null; |
|
| 27 | ||
| 28 | /** |
|
| 29 | * @var int $AccomodationType |
|
| 30 | */ |
|
| 31 | protected $AccomodationType = null; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @var int $RoomQuantity |
|
| 35 | */ |
|
| 36 | protected $RoomQuantity = null; |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @var int $GuestCount |
|
| 40 | */ |
|
| 41 | protected $GuestCount = null; |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @var string $Attributes |
|
| 45 | */ |
|
| 46 | protected $Attributes = null; |
|
| 47 | ||
| 48 | /** |
|
| 49 | * @var string $Localizations |
|
| 50 | */ |
|
| 51 | protected $Localizations = null; |
|
| 52 | ||
| 53 | /** |
|
| 54 | * @var string $ListOfRoomTypes |
|
| 55 | */ |
|
| 56 | protected $ListOfRoomTypes = null; |
|
| 57 | ||
| 58 | /** |
|
| 59 | * @var string $ListOfRateCodes |
|
| 60 | */ |
|
| 61 | protected $ListOfRateCodes = null; |
|
| 62 | ||
| 63 | /** |
|
| 64 | * @var string $ChidrenBreakDown |
|
| 65 | */ |
|
| 66 | protected $ChidrenBreakDown = null; |
|
| 67 | ||
| 68 | /** |
|
| 69 | * @var IAB2BMode $BackToBackMode |
|
| 70 | */ |
|
| 71 | protected $BackToBackMode = null; |
|
| 72 | ||
| 73 | /** |
|
| 74 | * @param int $intGUID |
|
| 75 | * @param string $strLang |
|
| 76 | * @param \DateTime $ArrivalDate |
|
| 77 | * @param \DateTime $DepartureDate |
|
| 78 | * @param int $AccomodationType |
|
| 79 | * @param int $RoomQuantity |
|
| 80 | * @param int $GuestCount |
|
| 81 | * @param string $Attributes |
|
| 82 | * @param string $Localizations |
|
| 83 | * @param string $ListOfRoomTypes |
|
| 84 | * @param string $ListOfRateCodes |
|
| 85 | * @param string $ChidrenBreakDown |
|
| 86 | * @param IAB2BMode $BackToBackMode |
|
| 87 | */ |
|
| 88 | public function __construct($intGUID, $strLang, \DateTime $ArrivalDate, \DateTime $DepartureDate, $AccomodationType, $RoomQuantity, $GuestCount, $Attributes, $Localizations, $ListOfRoomTypes, $ListOfRateCodes, $ChidrenBreakDown, $BackToBackMode) |
|
| 89 | { |
|
| 90 | $this->intGUID = $intGUID; |
|
| 91 | $this->strLang = $strLang; |
|
| 92 | $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM); |
|
| 93 | $this->DepartureDate = $DepartureDate->format(\DateTime::ATOM); |
|
| 94 | $this->AccomodationType = $AccomodationType; |
|
| 95 | $this->RoomQuantity = $RoomQuantity; |
|
| 96 | $this->GuestCount = $GuestCount; |
|
| 97 | $this->Attributes = $Attributes; |
|
| 98 | $this->Localizations = $Localizations; |
|
| 99 | $this->ListOfRoomTypes = $ListOfRoomTypes; |
|
| 100 | $this->ListOfRateCodes = $ListOfRateCodes; |
|
| 101 | $this->ChidrenBreakDown = $ChidrenBreakDown; |
|
| 102 | $this->BackToBackMode = $BackToBackMode; |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * @return int |
|
| 107 | */ |
|
| 108 | public function getIntGUID() |
|
| 109 | { |
|
| 110 | return $this->intGUID; |
|
| 111 | } |
|
| 112 | ||
| 113 | /** |
|
| 114 | * @param int $intGUID |
|
| 115 | * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms |
|
| 116 | */ |
|
| 117 | public function setIntGUID($intGUID) |
|
| 118 | { |
|
| 119 | $this->intGUID = $intGUID; |
|
| 120 | return $this; |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * @return string |
|
| 125 | */ |
|
| 126 | public function getStrLang() |
|
| 127 | { |
|
| 128 | return $this->strLang; |
|
| 129 | } |
|
| 130 | ||
| 131 | /** |
|
| 132 | * @param string $strLang |
|
| 133 | * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms |
|
| 134 | */ |
|
| 135 | public function setStrLang($strLang) |
|
| 136 | { |
|
| 137 | $this->strLang = $strLang; |
|
| 138 | return $this; |
|
| 139 | } |
|
| 140 | ||
| 141 | /** |
|
| 142 | * @return \DateTime |
|
| 143 | */ |
|
| 144 | public function getArrivalDate() |
|
| 145 | { |
|
| 146 | if ($this->ArrivalDate == null) { |
|
| 147 | return null; |
|
| 148 | } else { |
|
| 149 | try { |
|
| 150 | return new \DateTime($this->ArrivalDate); |
|
| 151 | } catch (\Exception $e) { |
|
| 152 | return false; |
|
| 153 | } |
|
| 154 | } |
|
| 155 | } |
|
| 156 | ||
| 157 | /** |
|
| 158 | * @param \DateTime $ArrivalDate |
|
| 159 | * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms |
|
| 160 | */ |
|
| 161 | public function setArrivalDate(\DateTime $ArrivalDate) |
|
| 162 | { |
|
| 163 | $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM); |
|
| 164 | return $this; |
|
| 165 | } |
|
| 166 | ||
| 167 | /** |
|
| 168 | * @return \DateTime |
|
| 169 | */ |
|
| 170 | public function getDepartureDate() |
|
| 171 | { |
|
| 172 | if ($this->DepartureDate == null) { |
|
| 173 | return null; |
|
| 174 | } else { |
|
| 175 | try { |
|
| 176 | return new \DateTime($this->DepartureDate); |
|
| 177 | } catch (\Exception $e) { |
|
| 178 | return false; |
|
| 179 | } |
|
| 180 | } |
|
| 181 | } |
|
| 182 | ||
| 183 | /** |
|
| 184 | * @param \DateTime $DepartureDate |
|
| 185 | * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms |
|
| 186 | */ |
|
| 187 | public function setDepartureDate(\DateTime $DepartureDate) |
|
| 188 | { |
|
| 189 | $this->DepartureDate = $DepartureDate->format(\DateTime::ATOM); |
|
| 190 | return $this; |
|
| 191 | } |
|
| 192 | ||
| 193 | /** |
|
| 194 | * @return int |
|
| 195 | */ |
|
| 196 | public function getAccomodationType() |
|
| 197 | { |
|
| 198 | return $this->AccomodationType; |
|
| 199 | } |
|
| 200 | ||
| 201 | /** |
|
| 202 | * @param int $AccomodationType |
|
| 203 | * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms |
|
| 204 | */ |
|
| 205 | public function setAccomodationType($AccomodationType) |
|
| 206 | { |
|
| 207 | $this->AccomodationType = $AccomodationType; |
|
| 208 | return $this; |
|
| 209 | } |
|
| 210 | ||
| 211 | /** |
|
| 212 | * @return int |
|
| 213 | */ |
|
| 214 | public function getRoomQuantity() |
|
| 215 | { |
|
| 216 | return $this->RoomQuantity; |
|
| 217 | } |
|
| 218 | ||
| 219 | /** |
|
| 220 | * @param int $RoomQuantity |
|
| 221 | * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms |
|
| 222 | */ |
|
| 223 | public function setRoomQuantity($RoomQuantity) |
|
| 224 | { |
|
| 225 | $this->RoomQuantity = $RoomQuantity; |
|
| 226 | return $this; |
|
| 227 | } |
|
| 228 | ||
| 229 | /** |
|
| 230 | * @return int |
|
| 231 | */ |
|
| 232 | public function getGuestCount() |
|
| 233 | { |
|
| 234 | return $this->GuestCount; |
|
| 235 | } |
|
| 236 | ||
| 237 | /** |
|
| 238 | * @param int $GuestCount |
|
| 239 | * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms |
|
| 240 | */ |
|
| 241 | public function setGuestCount($GuestCount) |
|
| 242 | { |
|
| 243 | $this->GuestCount = $GuestCount; |
|
| 244 | return $this; |
|
| 245 | } |
|
| 246 | ||
| 247 | /** |
|
| 248 | * @return string |
|
| 249 | */ |
|
| 250 | public function getAttributes() |
|
| 251 | { |
|
| 252 | return $this->Attributes; |
|
| 253 | } |
|
| 254 | ||
| 255 | /** |
|
| 256 | * @param string $Attributes |
|
| 257 | * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms |
|
| 258 | */ |
|
| 259 | public function setAttributes($Attributes) |
|
| 260 | { |
|
| 261 | $this->Attributes = $Attributes; |
|
| 262 | return $this; |
|
| 263 | } |
|
| 264 | ||
| 265 | /** |
|
| 266 | * @return string |
|
| 267 | */ |
|
| 268 | public function getLocalizations() |
|
| 269 | { |
|
| 270 | return $this->Localizations; |
|
| 271 | } |
|
| 272 | ||
| 273 | /** |
|
| 274 | * @param string $Localizations |
|
| 275 | * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms |
|
| 276 | */ |
|
| 277 | public function setLocalizations($Localizations) |
|
| 278 | { |
|
| 279 | $this->Localizations = $Localizations; |
|
| 280 | return $this; |
|
| 281 | } |
|
| 282 | ||
| 283 | /** |
|
| 284 | * @return string |
|
| 285 | */ |
|
| 286 | public function getListOfRoomTypes() |
|
| 287 | { |
|
| 288 | return $this->ListOfRoomTypes; |
|
| 289 | } |
|
| 290 | ||
| 291 | /** |
|
| 292 | * @param string $ListOfRoomTypes |
|
| 293 | * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms |
|
| 294 | */ |
|
| 295 | public function setListOfRoomTypes($ListOfRoomTypes) |
|
| 296 | { |
|
| 297 | $this->ListOfRoomTypes = $ListOfRoomTypes; |
|
| 298 | return $this; |
|
| 299 | } |
|
| 300 | ||
| 301 | /** |
|
| 302 | * @return string |
|
| 303 | */ |
|
| 304 | public function getListOfRateCodes() |
|
| 305 | { |
|
| 306 | return $this->ListOfRateCodes; |
|
| 307 | } |
|
| 308 | ||
| 309 | /** |
|
| 310 | * @param string $ListOfRateCodes |
|
| 311 | * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms |
|
| 312 | */ |
|
| 313 | public function setListOfRateCodes($ListOfRateCodes) |
|
| 314 | { |
|
| 315 | $this->ListOfRateCodes = $ListOfRateCodes; |
|
| 316 | return $this; |
|
| 317 | } |
|
| 318 | ||
| 319 | /** |
|
| 320 | * @return string |
|
| 321 | */ |
|
| 322 | public function getChidrenBreakDown() |
|
| 323 | { |
|
| 324 | return $this->ChidrenBreakDown; |
|
| 325 | } |
|
| 326 | ||
| 327 | /** |
|
| 328 | * @param string $ChidrenBreakDown |
|
| 329 | * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms |
|
| 330 | */ |
|
| 331 | public function setChidrenBreakDown($ChidrenBreakDown) |
|
| 332 | { |
|
| 333 | $this->ChidrenBreakDown = $ChidrenBreakDown; |
|
| 334 | return $this; |
|
| 335 | } |
|
| 336 | ||
| 337 | /** |
|
| 338 | * @return IAB2BMode |
|
| 339 | */ |
|
| 340 | public function getBackToBackMode() |
|
| 341 | { |
|
| 342 | return $this->BackToBackMode; |
|
| 343 | } |
|
| 344 | ||
| 345 | /** |
|
| 346 | * @param IAB2BMode $BackToBackMode |
|
| 347 | * @return \Gueststream\PMS\IQWare\API\AvailRatesAndRooms |
|
| 348 | */ |
|
| 349 | public function setBackToBackMode($BackToBackMode) |
|
| 350 | { |
|
| 351 | $this->BackToBackMode = $BackToBackMode; |
|
| 352 | return $this; |
|
| 353 | } |
|
| 354 | } |
|
| 355 | ||
| @@ 5-354 (lines=350) @@ | ||
| 2 | ||
| 3 | namespace Gueststream\PMS\IQWare\API; |
|
| 4 | ||
| 5 | class GetAvailRatesAndRoomNumbersB2BAnywhereNew |
|
| 6 | { |
|
| 7 | ||
| 8 | /** |
|
| 9 | * @var int $intGUID |
|
| 10 | */ |
|
| 11 | protected $intGUID = null; |
|
| 12 | ||
| 13 | /** |
|
| 14 | * @var \DateTime $AFromDate |
|
| 15 | */ |
|
| 16 | protected $AFromDate = null; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * @var \DateTime $AToDate |
|
| 20 | */ |
|
| 21 | protected $AToDate = null; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * @var int $AStayLength |
|
| 25 | */ |
|
| 26 | protected $AStayLength = null; |
|
| 27 | ||
| 28 | /** |
|
| 29 | * @var int $AccomodationType |
|
| 30 | */ |
|
| 31 | protected $AccomodationType = null; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @var int $GuestCount |
|
| 35 | */ |
|
| 36 | protected $GuestCount = null; |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @var string $strAttributes |
|
| 40 | */ |
|
| 41 | protected $strAttributes = null; |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @var string $strLocalizations |
|
| 45 | */ |
|
| 46 | protected $strLocalizations = null; |
|
| 47 | ||
| 48 | /** |
|
| 49 | * @var string $ListOfRoomTypes |
|
| 50 | */ |
|
| 51 | protected $ListOfRoomTypes = null; |
|
| 52 | ||
| 53 | /** |
|
| 54 | * @var string $ListOfRateCodes |
|
| 55 | */ |
|
| 56 | protected $ListOfRateCodes = null; |
|
| 57 | ||
| 58 | /** |
|
| 59 | * @var string $ChidrenBreakDown |
|
| 60 | */ |
|
| 61 | protected $ChidrenBreakDown = null; |
|
| 62 | ||
| 63 | /** |
|
| 64 | * @var int $ID_Building |
|
| 65 | */ |
|
| 66 | protected $ID_Building = null; |
|
| 67 | ||
| 68 | /** |
|
| 69 | * @var int $ID_RateSpecial |
|
| 70 | */ |
|
| 71 | protected $ID_RateSpecial = null; |
|
| 72 | ||
| 73 | /** |
|
| 74 | * @param int $intGUID |
|
| 75 | * @param \DateTime $AFromDate |
|
| 76 | * @param \DateTime $AToDate |
|
| 77 | * @param int $AStayLength |
|
| 78 | * @param int $AccomodationType |
|
| 79 | * @param int $GuestCount |
|
| 80 | * @param string $strAttributes |
|
| 81 | * @param string $strLocalizations |
|
| 82 | * @param string $ListOfRoomTypes |
|
| 83 | * @param string $ListOfRateCodes |
|
| 84 | * @param string $ChidrenBreakDown |
|
| 85 | * @param int $ID_Building |
|
| 86 | * @param int $ID_RateSpecial |
|
| 87 | */ |
|
| 88 | public function __construct($intGUID, \DateTime $AFromDate, \DateTime $AToDate, $AStayLength, $AccomodationType, $GuestCount, $strAttributes, $strLocalizations, $ListOfRoomTypes, $ListOfRateCodes, $ChidrenBreakDown, $ID_Building, $ID_RateSpecial) |
|
| 89 | { |
|
| 90 | $this->intGUID = $intGUID; |
|
| 91 | $this->AFromDate = $AFromDate->format(\DateTime::ATOM); |
|
| 92 | $this->AToDate = $AToDate->format(\DateTime::ATOM); |
|
| 93 | $this->AStayLength = $AStayLength; |
|
| 94 | $this->AccomodationType = $AccomodationType; |
|
| 95 | $this->GuestCount = $GuestCount; |
|
| 96 | $this->strAttributes = $strAttributes; |
|
| 97 | $this->strLocalizations = $strLocalizations; |
|
| 98 | $this->ListOfRoomTypes = $ListOfRoomTypes; |
|
| 99 | $this->ListOfRateCodes = $ListOfRateCodes; |
|
| 100 | $this->ChidrenBreakDown = $ChidrenBreakDown; |
|
| 101 | $this->ID_Building = $ID_Building; |
|
| 102 | $this->ID_RateSpecial = $ID_RateSpecial; |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * @return int |
|
| 107 | */ |
|
| 108 | public function getIntGUID() |
|
| 109 | { |
|
| 110 | return $this->intGUID; |
|
| 111 | } |
|
| 112 | ||
| 113 | /** |
|
| 114 | * @param int $intGUID |
|
| 115 | * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew |
|
| 116 | */ |
|
| 117 | public function setIntGUID($intGUID) |
|
| 118 | { |
|
| 119 | $this->intGUID = $intGUID; |
|
| 120 | return $this; |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * @return \DateTime |
|
| 125 | */ |
|
| 126 | public function getAFromDate() |
|
| 127 | { |
|
| 128 | if ($this->AFromDate == null) { |
|
| 129 | return null; |
|
| 130 | } else { |
|
| 131 | try { |
|
| 132 | return new \DateTime($this->AFromDate); |
|
| 133 | } catch (\Exception $e) { |
|
| 134 | return false; |
|
| 135 | } |
|
| 136 | } |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * @param \DateTime $AFromDate |
|
| 141 | * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew |
|
| 142 | */ |
|
| 143 | public function setAFromDate(\DateTime $AFromDate) |
|
| 144 | { |
|
| 145 | $this->AFromDate = $AFromDate->format(\DateTime::ATOM); |
|
| 146 | return $this; |
|
| 147 | } |
|
| 148 | ||
| 149 | /** |
|
| 150 | * @return \DateTime |
|
| 151 | */ |
|
| 152 | public function getAToDate() |
|
| 153 | { |
|
| 154 | if ($this->AToDate == null) { |
|
| 155 | return null; |
|
| 156 | } else { |
|
| 157 | try { |
|
| 158 | return new \DateTime($this->AToDate); |
|
| 159 | } catch (\Exception $e) { |
|
| 160 | return false; |
|
| 161 | } |
|
| 162 | } |
|
| 163 | } |
|
| 164 | ||
| 165 | /** |
|
| 166 | * @param \DateTime $AToDate |
|
| 167 | * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew |
|
| 168 | */ |
|
| 169 | public function setAToDate(\DateTime $AToDate) |
|
| 170 | { |
|
| 171 | $this->AToDate = $AToDate->format(\DateTime::ATOM); |
|
| 172 | return $this; |
|
| 173 | } |
|
| 174 | ||
| 175 | /** |
|
| 176 | * @return int |
|
| 177 | */ |
|
| 178 | public function getAStayLength() |
|
| 179 | { |
|
| 180 | return $this->AStayLength; |
|
| 181 | } |
|
| 182 | ||
| 183 | /** |
|
| 184 | * @param int $AStayLength |
|
| 185 | * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew |
|
| 186 | */ |
|
| 187 | public function setAStayLength($AStayLength) |
|
| 188 | { |
|
| 189 | $this->AStayLength = $AStayLength; |
|
| 190 | return $this; |
|
| 191 | } |
|
| 192 | ||
| 193 | /** |
|
| 194 | * @return int |
|
| 195 | */ |
|
| 196 | public function getAccomodationType() |
|
| 197 | { |
|
| 198 | return $this->AccomodationType; |
|
| 199 | } |
|
| 200 | ||
| 201 | /** |
|
| 202 | * @param int $AccomodationType |
|
| 203 | * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew |
|
| 204 | */ |
|
| 205 | public function setAccomodationType($AccomodationType) |
|
| 206 | { |
|
| 207 | $this->AccomodationType = $AccomodationType; |
|
| 208 | return $this; |
|
| 209 | } |
|
| 210 | ||
| 211 | /** |
|
| 212 | * @return int |
|
| 213 | */ |
|
| 214 | public function getGuestCount() |
|
| 215 | { |
|
| 216 | return $this->GuestCount; |
|
| 217 | } |
|
| 218 | ||
| 219 | /** |
|
| 220 | * @param int $GuestCount |
|
| 221 | * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew |
|
| 222 | */ |
|
| 223 | public function setGuestCount($GuestCount) |
|
| 224 | { |
|
| 225 | $this->GuestCount = $GuestCount; |
|
| 226 | return $this; |
|
| 227 | } |
|
| 228 | ||
| 229 | /** |
|
| 230 | * @return string |
|
| 231 | */ |
|
| 232 | public function getStrAttributes() |
|
| 233 | { |
|
| 234 | return $this->strAttributes; |
|
| 235 | } |
|
| 236 | ||
| 237 | /** |
|
| 238 | * @param string $strAttributes |
|
| 239 | * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew |
|
| 240 | */ |
|
| 241 | public function setStrAttributes($strAttributes) |
|
| 242 | { |
|
| 243 | $this->strAttributes = $strAttributes; |
|
| 244 | return $this; |
|
| 245 | } |
|
| 246 | ||
| 247 | /** |
|
| 248 | * @return string |
|
| 249 | */ |
|
| 250 | public function getStrLocalizations() |
|
| 251 | { |
|
| 252 | return $this->strLocalizations; |
|
| 253 | } |
|
| 254 | ||
| 255 | /** |
|
| 256 | * @param string $strLocalizations |
|
| 257 | * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew |
|
| 258 | */ |
|
| 259 | public function setStrLocalizations($strLocalizations) |
|
| 260 | { |
|
| 261 | $this->strLocalizations = $strLocalizations; |
|
| 262 | return $this; |
|
| 263 | } |
|
| 264 | ||
| 265 | /** |
|
| 266 | * @return string |
|
| 267 | */ |
|
| 268 | public function getListOfRoomTypes() |
|
| 269 | { |
|
| 270 | return $this->ListOfRoomTypes; |
|
| 271 | } |
|
| 272 | ||
| 273 | /** |
|
| 274 | * @param string $ListOfRoomTypes |
|
| 275 | * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew |
|
| 276 | */ |
|
| 277 | public function setListOfRoomTypes($ListOfRoomTypes) |
|
| 278 | { |
|
| 279 | $this->ListOfRoomTypes = $ListOfRoomTypes; |
|
| 280 | return $this; |
|
| 281 | } |
|
| 282 | ||
| 283 | /** |
|
| 284 | * @return string |
|
| 285 | */ |
|
| 286 | public function getListOfRateCodes() |
|
| 287 | { |
|
| 288 | return $this->ListOfRateCodes; |
|
| 289 | } |
|
| 290 | ||
| 291 | /** |
|
| 292 | * @param string $ListOfRateCodes |
|
| 293 | * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew |
|
| 294 | */ |
|
| 295 | public function setListOfRateCodes($ListOfRateCodes) |
|
| 296 | { |
|
| 297 | $this->ListOfRateCodes = $ListOfRateCodes; |
|
| 298 | return $this; |
|
| 299 | } |
|
| 300 | ||
| 301 | /** |
|
| 302 | * @return string |
|
| 303 | */ |
|
| 304 | public function getChidrenBreakDown() |
|
| 305 | { |
|
| 306 | return $this->ChidrenBreakDown; |
|
| 307 | } |
|
| 308 | ||
| 309 | /** |
|
| 310 | * @param string $ChidrenBreakDown |
|
| 311 | * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew |
|
| 312 | */ |
|
| 313 | public function setChidrenBreakDown($ChidrenBreakDown) |
|
| 314 | { |
|
| 315 | $this->ChidrenBreakDown = $ChidrenBreakDown; |
|
| 316 | return $this; |
|
| 317 | } |
|
| 318 | ||
| 319 | /** |
|
| 320 | * @return int |
|
| 321 | */ |
|
| 322 | public function getID_Building() |
|
| 323 | { |
|
| 324 | return $this->ID_Building; |
|
| 325 | } |
|
| 326 | ||
| 327 | /** |
|
| 328 | * @param int $ID_Building |
|
| 329 | * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew |
|
| 330 | */ |
|
| 331 | public function setID_Building($ID_Building) |
|
| 332 | { |
|
| 333 | $this->ID_Building = $ID_Building; |
|
| 334 | return $this; |
|
| 335 | } |
|
| 336 | ||
| 337 | /** |
|
| 338 | * @return int |
|
| 339 | */ |
|
| 340 | public function getID_RateSpecial() |
|
| 341 | { |
|
| 342 | return $this->ID_RateSpecial; |
|
| 343 | } |
|
| 344 | ||
| 345 | /** |
|
| 346 | * @param int $ID_RateSpecial |
|
| 347 | * @return \Gueststream\PMS\IQWare\API\GetAvailRatesAndRoomNumbersB2BAnywhereNew |
|
| 348 | */ |
|
| 349 | public function setID_RateSpecial($ID_RateSpecial) |
|
| 350 | { |
|
| 351 | $this->ID_RateSpecial = $ID_RateSpecial; |
|
| 352 | return $this; |
|
| 353 | } |
|
| 354 | } |
|
| 355 | ||
| @@ 5-354 (lines=350) @@ | ||
| 2 | ||
| 3 | namespace Gueststream\PMS\IQWare\API; |
|
| 4 | ||
| 5 | class GetBuildingsWithAtLeastOneUnitAvailable |
|
| 6 | { |
|
| 7 | ||
| 8 | /** |
|
| 9 | * @var int $intGUID |
|
| 10 | */ |
|
| 11 | protected $intGUID = null; |
|
| 12 | ||
| 13 | /** |
|
| 14 | * @var string $strLang |
|
| 15 | */ |
|
| 16 | protected $strLang = null; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * @var \DateTime $ArrivalDate |
|
| 20 | */ |
|
| 21 | protected $ArrivalDate = null; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * @var \DateTime $DepartureDate |
|
| 25 | */ |
|
| 26 | protected $DepartureDate = null; |
|
| 27 | ||
| 28 | /** |
|
| 29 | * @var int $AccomodationType |
|
| 30 | */ |
|
| 31 | protected $AccomodationType = null; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @var int $RoomQuantity |
|
| 35 | */ |
|
| 36 | protected $RoomQuantity = null; |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @var int $GuestCount |
|
| 40 | */ |
|
| 41 | protected $GuestCount = null; |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @var string $Attributes |
|
| 45 | */ |
|
| 46 | protected $Attributes = null; |
|
| 47 | ||
| 48 | /** |
|
| 49 | * @var string $Localizations |
|
| 50 | */ |
|
| 51 | protected $Localizations = null; |
|
| 52 | ||
| 53 | /** |
|
| 54 | * @var string $ListOfRoomTypes |
|
| 55 | */ |
|
| 56 | protected $ListOfRoomTypes = null; |
|
| 57 | ||
| 58 | /** |
|
| 59 | * @var string $ListOfRateCodes |
|
| 60 | */ |
|
| 61 | protected $ListOfRateCodes = null; |
|
| 62 | ||
| 63 | /** |
|
| 64 | * @var string $ChidrenBreakDown |
|
| 65 | */ |
|
| 66 | protected $ChidrenBreakDown = null; |
|
| 67 | ||
| 68 | /** |
|
| 69 | * @var IAB2BMode $BackToBackMode |
|
| 70 | */ |
|
| 71 | protected $BackToBackMode = null; |
|
| 72 | ||
| 73 | /** |
|
| 74 | * @param int $intGUID |
|
| 75 | * @param string $strLang |
|
| 76 | * @param \DateTime $ArrivalDate |
|
| 77 | * @param \DateTime $DepartureDate |
|
| 78 | * @param int $AccomodationType |
|
| 79 | * @param int $RoomQuantity |
|
| 80 | * @param int $GuestCount |
|
| 81 | * @param string $Attributes |
|
| 82 | * @param string $Localizations |
|
| 83 | * @param string $ListOfRoomTypes |
|
| 84 | * @param string $ListOfRateCodes |
|
| 85 | * @param string $ChidrenBreakDown |
|
| 86 | * @param IAB2BMode $BackToBackMode |
|
| 87 | */ |
|
| 88 | public function __construct($intGUID, $strLang, \DateTime $ArrivalDate, \DateTime $DepartureDate, $AccomodationType, $RoomQuantity, $GuestCount, $Attributes, $Localizations, $ListOfRoomTypes, $ListOfRateCodes, $ChidrenBreakDown, $BackToBackMode) |
|
| 89 | { |
|
| 90 | $this->intGUID = $intGUID; |
|
| 91 | $this->strLang = $strLang; |
|
| 92 | $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM); |
|
| 93 | $this->DepartureDate = $DepartureDate->format(\DateTime::ATOM); |
|
| 94 | $this->AccomodationType = $AccomodationType; |
|
| 95 | $this->RoomQuantity = $RoomQuantity; |
|
| 96 | $this->GuestCount = $GuestCount; |
|
| 97 | $this->Attributes = $Attributes; |
|
| 98 | $this->Localizations = $Localizations; |
|
| 99 | $this->ListOfRoomTypes = $ListOfRoomTypes; |
|
| 100 | $this->ListOfRateCodes = $ListOfRateCodes; |
|
| 101 | $this->ChidrenBreakDown = $ChidrenBreakDown; |
|
| 102 | $this->BackToBackMode = $BackToBackMode; |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * @return int |
|
| 107 | */ |
|
| 108 | public function getIntGUID() |
|
| 109 | { |
|
| 110 | return $this->intGUID; |
|
| 111 | } |
|
| 112 | ||
| 113 | /** |
|
| 114 | * @param int $intGUID |
|
| 115 | * @return \Gueststream\PMS\IQWare\API\GetBuildingsWithAtLeastOneUnitAvailable |
|
| 116 | */ |
|
| 117 | public function setIntGUID($intGUID) |
|
| 118 | { |
|
| 119 | $this->intGUID = $intGUID; |
|
| 120 | return $this; |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * @return string |
|
| 125 | */ |
|
| 126 | public function getStrLang() |
|
| 127 | { |
|
| 128 | return $this->strLang; |
|
| 129 | } |
|
| 130 | ||
| 131 | /** |
|
| 132 | * @param string $strLang |
|
| 133 | * @return \Gueststream\PMS\IQWare\API\GetBuildingsWithAtLeastOneUnitAvailable |
|
| 134 | */ |
|
| 135 | public function setStrLang($strLang) |
|
| 136 | { |
|
| 137 | $this->strLang = $strLang; |
|
| 138 | return $this; |
|
| 139 | } |
|
| 140 | ||
| 141 | /** |
|
| 142 | * @return \DateTime |
|
| 143 | */ |
|
| 144 | public function getArrivalDate() |
|
| 145 | { |
|
| 146 | if ($this->ArrivalDate == null) { |
|
| 147 | return null; |
|
| 148 | } else { |
|
| 149 | try { |
|
| 150 | return new \DateTime($this->ArrivalDate); |
|
| 151 | } catch (\Exception $e) { |
|
| 152 | return false; |
|
| 153 | } |
|
| 154 | } |
|
| 155 | } |
|
| 156 | ||
| 157 | /** |
|
| 158 | * @param \DateTime $ArrivalDate |
|
| 159 | * @return \Gueststream\PMS\IQWare\API\GetBuildingsWithAtLeastOneUnitAvailable |
|
| 160 | */ |
|
| 161 | public function setArrivalDate(\DateTime $ArrivalDate) |
|
| 162 | { |
|
| 163 | $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM); |
|
| 164 | return $this; |
|
| 165 | } |
|
| 166 | ||
| 167 | /** |
|
| 168 | * @return \DateTime |
|
| 169 | */ |
|
| 170 | public function getDepartureDate() |
|
| 171 | { |
|
| 172 | if ($this->DepartureDate == null) { |
|
| 173 | return null; |
|
| 174 | } else { |
|
| 175 | try { |
|
| 176 | return new \DateTime($this->DepartureDate); |
|
| 177 | } catch (\Exception $e) { |
|
| 178 | return false; |
|
| 179 | } |
|
| 180 | } |
|
| 181 | } |
|
| 182 | ||
| 183 | /** |
|
| 184 | * @param \DateTime $DepartureDate |
|
| 185 | * @return \Gueststream\PMS\IQWare\API\GetBuildingsWithAtLeastOneUnitAvailable |
|
| 186 | */ |
|
| 187 | public function setDepartureDate(\DateTime $DepartureDate) |
|
| 188 | { |
|
| 189 | $this->DepartureDate = $DepartureDate->format(\DateTime::ATOM); |
|
| 190 | return $this; |
|
| 191 | } |
|
| 192 | ||
| 193 | /** |
|
| 194 | * @return int |
|
| 195 | */ |
|
| 196 | public function getAccomodationType() |
|
| 197 | { |
|
| 198 | return $this->AccomodationType; |
|
| 199 | } |
|
| 200 | ||
| 201 | /** |
|
| 202 | * @param int $AccomodationType |
|
| 203 | * @return \Gueststream\PMS\IQWare\API\GetBuildingsWithAtLeastOneUnitAvailable |
|
| 204 | */ |
|
| 205 | public function setAccomodationType($AccomodationType) |
|
| 206 | { |
|
| 207 | $this->AccomodationType = $AccomodationType; |
|
| 208 | return $this; |
|
| 209 | } |
|
| 210 | ||
| 211 | /** |
|
| 212 | * @return int |
|
| 213 | */ |
|
| 214 | public function getRoomQuantity() |
|
| 215 | { |
|
| 216 | return $this->RoomQuantity; |
|
| 217 | } |
|
| 218 | ||
| 219 | /** |
|
| 220 | * @param int $RoomQuantity |
|
| 221 | * @return \Gueststream\PMS\IQWare\API\GetBuildingsWithAtLeastOneUnitAvailable |
|
| 222 | */ |
|
| 223 | public function setRoomQuantity($RoomQuantity) |
|
| 224 | { |
|
| 225 | $this->RoomQuantity = $RoomQuantity; |
|
| 226 | return $this; |
|
| 227 | } |
|
| 228 | ||
| 229 | /** |
|
| 230 | * @return int |
|
| 231 | */ |
|
| 232 | public function getGuestCount() |
|
| 233 | { |
|
| 234 | return $this->GuestCount; |
|
| 235 | } |
|
| 236 | ||
| 237 | /** |
|
| 238 | * @param int $GuestCount |
|
| 239 | * @return \Gueststream\PMS\IQWare\API\GetBuildingsWithAtLeastOneUnitAvailable |
|
| 240 | */ |
|
| 241 | public function setGuestCount($GuestCount) |
|
| 242 | { |
|
| 243 | $this->GuestCount = $GuestCount; |
|
| 244 | return $this; |
|
| 245 | } |
|
| 246 | ||
| 247 | /** |
|
| 248 | * @return string |
|
| 249 | */ |
|
| 250 | public function getAttributes() |
|
| 251 | { |
|
| 252 | return $this->Attributes; |
|
| 253 | } |
|
| 254 | ||
| 255 | /** |
|
| 256 | * @param string $Attributes |
|
| 257 | * @return \Gueststream\PMS\IQWare\API\GetBuildingsWithAtLeastOneUnitAvailable |
|
| 258 | */ |
|
| 259 | public function setAttributes($Attributes) |
|
| 260 | { |
|
| 261 | $this->Attributes = $Attributes; |
|
| 262 | return $this; |
|
| 263 | } |
|
| 264 | ||
| 265 | /** |
|
| 266 | * @return string |
|
| 267 | */ |
|
| 268 | public function getLocalizations() |
|
| 269 | { |
|
| 270 | return $this->Localizations; |
|
| 271 | } |
|
| 272 | ||
| 273 | /** |
|
| 274 | * @param string $Localizations |
|
| 275 | * @return \Gueststream\PMS\IQWare\API\GetBuildingsWithAtLeastOneUnitAvailable |
|
| 276 | */ |
|
| 277 | public function setLocalizations($Localizations) |
|
| 278 | { |
|
| 279 | $this->Localizations = $Localizations; |
|
| 280 | return $this; |
|
| 281 | } |
|
| 282 | ||
| 283 | /** |
|
| 284 | * @return string |
|
| 285 | */ |
|
| 286 | public function getListOfRoomTypes() |
|
| 287 | { |
|
| 288 | return $this->ListOfRoomTypes; |
|
| 289 | } |
|
| 290 | ||
| 291 | /** |
|
| 292 | * @param string $ListOfRoomTypes |
|
| 293 | * @return \Gueststream\PMS\IQWare\API\GetBuildingsWithAtLeastOneUnitAvailable |
|
| 294 | */ |
|
| 295 | public function setListOfRoomTypes($ListOfRoomTypes) |
|
| 296 | { |
|
| 297 | $this->ListOfRoomTypes = $ListOfRoomTypes; |
|
| 298 | return $this; |
|
| 299 | } |
|
| 300 | ||
| 301 | /** |
|
| 302 | * @return string |
|
| 303 | */ |
|
| 304 | public function getListOfRateCodes() |
|
| 305 | { |
|
| 306 | return $this->ListOfRateCodes; |
|
| 307 | } |
|
| 308 | ||
| 309 | /** |
|
| 310 | * @param string $ListOfRateCodes |
|
| 311 | * @return \Gueststream\PMS\IQWare\API\GetBuildingsWithAtLeastOneUnitAvailable |
|
| 312 | */ |
|
| 313 | public function setListOfRateCodes($ListOfRateCodes) |
|
| 314 | { |
|
| 315 | $this->ListOfRateCodes = $ListOfRateCodes; |
|
| 316 | return $this; |
|
| 317 | } |
|
| 318 | ||
| 319 | /** |
|
| 320 | * @return string |
|
| 321 | */ |
|
| 322 | public function getChidrenBreakDown() |
|
| 323 | { |
|
| 324 | return $this->ChidrenBreakDown; |
|
| 325 | } |
|
| 326 | ||
| 327 | /** |
|
| 328 | * @param string $ChidrenBreakDown |
|
| 329 | * @return \Gueststream\PMS\IQWare\API\GetBuildingsWithAtLeastOneUnitAvailable |
|
| 330 | */ |
|
| 331 | public function setChidrenBreakDown($ChidrenBreakDown) |
|
| 332 | { |
|
| 333 | $this->ChidrenBreakDown = $ChidrenBreakDown; |
|
| 334 | return $this; |
|
| 335 | } |
|
| 336 | ||
| 337 | /** |
|
| 338 | * @return IAB2BMode |
|
| 339 | */ |
|
| 340 | public function getBackToBackMode() |
|
| 341 | { |
|
| 342 | return $this->BackToBackMode; |
|
| 343 | } |
|
| 344 | ||
| 345 | /** |
|
| 346 | * @param IAB2BMode $BackToBackMode |
|
| 347 | * @return \Gueststream\PMS\IQWare\API\GetBuildingsWithAtLeastOneUnitAvailable |
|
| 348 | */ |
|
| 349 | public function setBackToBackMode($BackToBackMode) |
|
| 350 | { |
|
| 351 | $this->BackToBackMode = $BackToBackMode; |
|
| 352 | return $this; |
|
| 353 | } |
|
| 354 | } |
|
| 355 | ||