| @@ 5-179 (lines=175) @@ | ||
| 2 | ||
| 3 | namespace Gueststream\PMS\IQWare\API; |
|
| 4 | ||
| 5 | class GDS_GetInventory |
|
| 6 | { |
|
| 7 | ||
| 8 | /** |
|
| 9 | * @var int $intGUID |
|
| 10 | */ |
|
| 11 | protected $intGUID = null; |
|
| 12 | ||
| 13 | /** |
|
| 14 | * @var \DateTime $start |
|
| 15 | */ |
|
| 16 | protected $start = null; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * @var \DateTime $end |
|
| 20 | */ |
|
| 21 | protected $end = null; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * @var boolean $isSuite |
|
| 25 | */ |
|
| 26 | protected $isSuite = null; |
|
| 27 | ||
| 28 | /** |
|
| 29 | * @var string $strRoomTypeIDs |
|
| 30 | */ |
|
| 31 | protected $strRoomTypeIDs = null; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @var string $strISOLanguageCode |
|
| 35 | */ |
|
| 36 | protected $strISOLanguageCode = null; |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @param int $intGUID |
|
| 40 | * @param \DateTime $start |
|
| 41 | * @param \DateTime $end |
|
| 42 | * @param boolean $isSuite |
|
| 43 | * @param string $strRoomTypeIDs |
|
| 44 | * @param string $strISOLanguageCode |
|
| 45 | */ |
|
| 46 | public function __construct($intGUID, \DateTime $start, \DateTime $end, $isSuite, $strRoomTypeIDs, $strISOLanguageCode) |
|
| 47 | { |
|
| 48 | $this->intGUID = $intGUID; |
|
| 49 | $this->start = $start->format(\DateTime::ATOM); |
|
| 50 | $this->end = $end->format(\DateTime::ATOM); |
|
| 51 | $this->isSuite = $isSuite; |
|
| 52 | $this->strRoomTypeIDs = $strRoomTypeIDs; |
|
| 53 | $this->strISOLanguageCode = $strISOLanguageCode; |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * @return int |
|
| 58 | */ |
|
| 59 | public function getIntGUID() |
|
| 60 | { |
|
| 61 | return $this->intGUID; |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * @param int $intGUID |
|
| 66 | * @return \Gueststream\PMS\IQWare\API\GDS_GetInventory |
|
| 67 | */ |
|
| 68 | public function setIntGUID($intGUID) |
|
| 69 | { |
|
| 70 | $this->intGUID = $intGUID; |
|
| 71 | return $this; |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * @return \DateTime |
|
| 76 | */ |
|
| 77 | public function getStart() |
|
| 78 | { |
|
| 79 | if ($this->start == null) { |
|
| 80 | return null; |
|
| 81 | } else { |
|
| 82 | try { |
|
| 83 | return new \DateTime($this->start); |
|
| 84 | } catch (\Exception $e) { |
|
| 85 | return false; |
|
| 86 | } |
|
| 87 | } |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|
| 91 | * @param \DateTime $start |
|
| 92 | * @return \Gueststream\PMS\IQWare\API\GDS_GetInventory |
|
| 93 | */ |
|
| 94 | public function setStart(\DateTime $start) |
|
| 95 | { |
|
| 96 | $this->start = $start->format(\DateTime::ATOM); |
|
| 97 | return $this; |
|
| 98 | } |
|
| 99 | ||
| 100 | /** |
|
| 101 | * @return \DateTime |
|
| 102 | */ |
|
| 103 | public function getEnd() |
|
| 104 | { |
|
| 105 | if ($this->end == null) { |
|
| 106 | return null; |
|
| 107 | } else { |
|
| 108 | try { |
|
| 109 | return new \DateTime($this->end); |
|
| 110 | } catch (\Exception $e) { |
|
| 111 | return false; |
|
| 112 | } |
|
| 113 | } |
|
| 114 | } |
|
| 115 | ||
| 116 | /** |
|
| 117 | * @param \DateTime $end |
|
| 118 | * @return \Gueststream\PMS\IQWare\API\GDS_GetInventory |
|
| 119 | */ |
|
| 120 | public function setEnd(\DateTime $end) |
|
| 121 | { |
|
| 122 | $this->end = $end->format(\DateTime::ATOM); |
|
| 123 | return $this; |
|
| 124 | } |
|
| 125 | ||
| 126 | /** |
|
| 127 | * @return boolean |
|
| 128 | */ |
|
| 129 | public function getIsSuite() |
|
| 130 | { |
|
| 131 | return $this->isSuite; |
|
| 132 | } |
|
| 133 | ||
| 134 | /** |
|
| 135 | * @param boolean $isSuite |
|
| 136 | * @return \Gueststream\PMS\IQWare\API\GDS_GetInventory |
|
| 137 | */ |
|
| 138 | public function setIsSuite($isSuite) |
|
| 139 | { |
|
| 140 | $this->isSuite = $isSuite; |
|
| 141 | return $this; |
|
| 142 | } |
|
| 143 | ||
| 144 | /** |
|
| 145 | * @return string |
|
| 146 | */ |
|
| 147 | public function getStrRoomTypeIDs() |
|
| 148 | { |
|
| 149 | return $this->strRoomTypeIDs; |
|
| 150 | } |
|
| 151 | ||
| 152 | /** |
|
| 153 | * @param string $strRoomTypeIDs |
|
| 154 | * @return \Gueststream\PMS\IQWare\API\GDS_GetInventory |
|
| 155 | */ |
|
| 156 | public function setStrRoomTypeIDs($strRoomTypeIDs) |
|
| 157 | { |
|
| 158 | $this->strRoomTypeIDs = $strRoomTypeIDs; |
|
| 159 | return $this; |
|
| 160 | } |
|
| 161 | ||
| 162 | /** |
|
| 163 | * @return string |
|
| 164 | */ |
|
| 165 | public function getStrISOLanguageCode() |
|
| 166 | { |
|
| 167 | return $this->strISOLanguageCode; |
|
| 168 | } |
|
| 169 | ||
| 170 | /** |
|
| 171 | * @param string $strISOLanguageCode |
|
| 172 | * @return \Gueststream\PMS\IQWare\API\GDS_GetInventory |
|
| 173 | */ |
|
| 174 | public function setStrISOLanguageCode($strISOLanguageCode) |
|
| 175 | { |
|
| 176 | $this->strISOLanguageCode = $strISOLanguageCode; |
|
| 177 | return $this; |
|
| 178 | } |
|
| 179 | } |
|
| 180 | ||
| @@ 5-179 (lines=175) @@ | ||
| 2 | ||
| 3 | namespace Gueststream\PMS\IQWare\API; |
|
| 4 | ||
| 5 | class GetServiceCharges |
|
| 6 | { |
|
| 7 | ||
| 8 | /** |
|
| 9 | * @var int $intGUID |
|
| 10 | */ |
|
| 11 | protected $intGUID = null; |
|
| 12 | ||
| 13 | /** |
|
| 14 | * @var string $strServiceChargeIDs |
|
| 15 | */ |
|
| 16 | protected $strServiceChargeIDs = null; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * @var string $strRoomTypeIDs |
|
| 20 | */ |
|
| 21 | protected $strRoomTypeIDs = null; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * @var \DateTime $dtBeginDate |
|
| 25 | */ |
|
| 26 | protected $dtBeginDate = null; |
|
| 27 | ||
| 28 | /** |
|
| 29 | * @var \DateTime $dtEndDate |
|
| 30 | */ |
|
| 31 | protected $dtEndDate = null; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @var ArrayOfStayValue3 $StayValueArray |
|
| 35 | */ |
|
| 36 | protected $StayValueArray = null; |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @param int $intGUID |
|
| 40 | * @param string $strServiceChargeIDs |
|
| 41 | * @param string $strRoomTypeIDs |
|
| 42 | * @param \DateTime $dtBeginDate |
|
| 43 | * @param \DateTime $dtEndDate |
|
| 44 | * @param ArrayOfStayValue3 $StayValueArray |
|
| 45 | */ |
|
| 46 | public function __construct($intGUID, $strServiceChargeIDs, $strRoomTypeIDs, \DateTime $dtBeginDate, \DateTime $dtEndDate, $StayValueArray) |
|
| 47 | { |
|
| 48 | $this->intGUID = $intGUID; |
|
| 49 | $this->strServiceChargeIDs = $strServiceChargeIDs; |
|
| 50 | $this->strRoomTypeIDs = $strRoomTypeIDs; |
|
| 51 | $this->dtBeginDate = $dtBeginDate->format(\DateTime::ATOM); |
|
| 52 | $this->dtEndDate = $dtEndDate->format(\DateTime::ATOM); |
|
| 53 | $this->StayValueArray = $StayValueArray; |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * @return int |
|
| 58 | */ |
|
| 59 | public function getIntGUID() |
|
| 60 | { |
|
| 61 | return $this->intGUID; |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * @param int $intGUID |
|
| 66 | * @return \Gueststream\PMS\IQWare\API\GetServiceCharges |
|
| 67 | */ |
|
| 68 | public function setIntGUID($intGUID) |
|
| 69 | { |
|
| 70 | $this->intGUID = $intGUID; |
|
| 71 | return $this; |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * @return string |
|
| 76 | */ |
|
| 77 | public function getStrServiceChargeIDs() |
|
| 78 | { |
|
| 79 | return $this->strServiceChargeIDs; |
|
| 80 | } |
|
| 81 | ||
| 82 | /** |
|
| 83 | * @param string $strServiceChargeIDs |
|
| 84 | * @return \Gueststream\PMS\IQWare\API\GetServiceCharges |
|
| 85 | */ |
|
| 86 | public function setStrServiceChargeIDs($strServiceChargeIDs) |
|
| 87 | { |
|
| 88 | $this->strServiceChargeIDs = $strServiceChargeIDs; |
|
| 89 | return $this; |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * @return string |
|
| 94 | */ |
|
| 95 | public function getStrRoomTypeIDs() |
|
| 96 | { |
|
| 97 | return $this->strRoomTypeIDs; |
|
| 98 | } |
|
| 99 | ||
| 100 | /** |
|
| 101 | * @param string $strRoomTypeIDs |
|
| 102 | * @return \Gueststream\PMS\IQWare\API\GetServiceCharges |
|
| 103 | */ |
|
| 104 | public function setStrRoomTypeIDs($strRoomTypeIDs) |
|
| 105 | { |
|
| 106 | $this->strRoomTypeIDs = $strRoomTypeIDs; |
|
| 107 | return $this; |
|
| 108 | } |
|
| 109 | ||
| 110 | /** |
|
| 111 | * @return \DateTime |
|
| 112 | */ |
|
| 113 | public function getDtBeginDate() |
|
| 114 | { |
|
| 115 | if ($this->dtBeginDate == null) { |
|
| 116 | return null; |
|
| 117 | } else { |
|
| 118 | try { |
|
| 119 | return new \DateTime($this->dtBeginDate); |
|
| 120 | } catch (\Exception $e) { |
|
| 121 | return false; |
|
| 122 | } |
|
| 123 | } |
|
| 124 | } |
|
| 125 | ||
| 126 | /** |
|
| 127 | * @param \DateTime $dtBeginDate |
|
| 128 | * @return \Gueststream\PMS\IQWare\API\GetServiceCharges |
|
| 129 | */ |
|
| 130 | public function setDtBeginDate(\DateTime $dtBeginDate) |
|
| 131 | { |
|
| 132 | $this->dtBeginDate = $dtBeginDate->format(\DateTime::ATOM); |
|
| 133 | return $this; |
|
| 134 | } |
|
| 135 | ||
| 136 | /** |
|
| 137 | * @return \DateTime |
|
| 138 | */ |
|
| 139 | public function getDtEndDate() |
|
| 140 | { |
|
| 141 | if ($this->dtEndDate == null) { |
|
| 142 | return null; |
|
| 143 | } else { |
|
| 144 | try { |
|
| 145 | return new \DateTime($this->dtEndDate); |
|
| 146 | } catch (\Exception $e) { |
|
| 147 | return false; |
|
| 148 | } |
|
| 149 | } |
|
| 150 | } |
|
| 151 | ||
| 152 | /** |
|
| 153 | * @param \DateTime $dtEndDate |
|
| 154 | * @return \Gueststream\PMS\IQWare\API\GetServiceCharges |
|
| 155 | */ |
|
| 156 | public function setDtEndDate(\DateTime $dtEndDate) |
|
| 157 | { |
|
| 158 | $this->dtEndDate = $dtEndDate->format(\DateTime::ATOM); |
|
| 159 | return $this; |
|
| 160 | } |
|
| 161 | ||
| 162 | /** |
|
| 163 | * @return ArrayOfStayValue3 |
|
| 164 | */ |
|
| 165 | public function getStayValueArray() |
|
| 166 | { |
|
| 167 | return $this->StayValueArray; |
|
| 168 | } |
|
| 169 | ||
| 170 | /** |
|
| 171 | * @param ArrayOfStayValue3 $StayValueArray |
|
| 172 | * @return \Gueststream\PMS\IQWare\API\GetServiceCharges |
|
| 173 | */ |
|
| 174 | public function setStayValueArray($StayValueArray) |
|
| 175 | { |
|
| 176 | $this->StayValueArray = $StayValueArray; |
|
| 177 | return $this; |
|
| 178 | } |
|
| 179 | } |
|
| 180 | ||
| @@ 5-179 (lines=175) @@ | ||
| 2 | ||
| 3 | namespace Gueststream\PMS\IQWare\API; |
|
| 4 | ||
| 5 | class WebRes_GetHotelAvailabilityArray |
|
| 6 | { |
|
| 7 | ||
| 8 | /** |
|
| 9 | * @var string $lstOfRoomTypeIDs |
|
| 10 | */ |
|
| 11 | protected $lstOfRoomTypeIDs = null; |
|
| 12 | ||
| 13 | /** |
|
| 14 | * @var int $intGUID |
|
| 15 | */ |
|
| 16 | protected $intGUID = null; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * @var \DateTime $start |
|
| 20 | */ |
|
| 21 | protected $start = null; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * @var \DateTime $end |
|
| 25 | */ |
|
| 26 | protected $end = null; |
|
| 27 | ||
| 28 | /** |
|
| 29 | * @var boolean $isSuite |
|
| 30 | */ |
|
| 31 | protected $isSuite = null; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @var string $strISOLanguageCode |
|
| 35 | */ |
|
| 36 | protected $strISOLanguageCode = null; |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @param string $lstOfRoomTypeIDs |
|
| 40 | * @param int $intGUID |
|
| 41 | * @param \DateTime $start |
|
| 42 | * @param \DateTime $end |
|
| 43 | * @param boolean $isSuite |
|
| 44 | * @param string $strISOLanguageCode |
|
| 45 | */ |
|
| 46 | public function __construct($lstOfRoomTypeIDs, $intGUID, \DateTime $start, \DateTime $end, $isSuite, $strISOLanguageCode) |
|
| 47 | { |
|
| 48 | $this->lstOfRoomTypeIDs = $lstOfRoomTypeIDs; |
|
| 49 | $this->intGUID = $intGUID; |
|
| 50 | $this->start = $start->format(\DateTime::ATOM); |
|
| 51 | $this->end = $end->format(\DateTime::ATOM); |
|
| 52 | $this->isSuite = $isSuite; |
|
| 53 | $this->strISOLanguageCode = $strISOLanguageCode; |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * @return string |
|
| 58 | */ |
|
| 59 | public function getLstOfRoomTypeIDs() |
|
| 60 | { |
|
| 61 | return $this->lstOfRoomTypeIDs; |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * @param string $lstOfRoomTypeIDs |
|
| 66 | * @return \Gueststream\PMS\IQWare\API\WebRes_GetHotelAvailabilityArray |
|
| 67 | */ |
|
| 68 | public function setLstOfRoomTypeIDs($lstOfRoomTypeIDs) |
|
| 69 | { |
|
| 70 | $this->lstOfRoomTypeIDs = $lstOfRoomTypeIDs; |
|
| 71 | return $this; |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * @return int |
|
| 76 | */ |
|
| 77 | public function getIntGUID() |
|
| 78 | { |
|
| 79 | return $this->intGUID; |
|
| 80 | } |
|
| 81 | ||
| 82 | /** |
|
| 83 | * @param int $intGUID |
|
| 84 | * @return \Gueststream\PMS\IQWare\API\WebRes_GetHotelAvailabilityArray |
|
| 85 | */ |
|
| 86 | public function setIntGUID($intGUID) |
|
| 87 | { |
|
| 88 | $this->intGUID = $intGUID; |
|
| 89 | return $this; |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * @return \DateTime |
|
| 94 | */ |
|
| 95 | public function getStart() |
|
| 96 | { |
|
| 97 | if ($this->start == null) { |
|
| 98 | return null; |
|
| 99 | } else { |
|
| 100 | try { |
|
| 101 | return new \DateTime($this->start); |
|
| 102 | } catch (\Exception $e) { |
|
| 103 | return false; |
|
| 104 | } |
|
| 105 | } |
|
| 106 | } |
|
| 107 | ||
| 108 | /** |
|
| 109 | * @param \DateTime $start |
|
| 110 | * @return \Gueststream\PMS\IQWare\API\WebRes_GetHotelAvailabilityArray |
|
| 111 | */ |
|
| 112 | public function setStart(\DateTime $start) |
|
| 113 | { |
|
| 114 | $this->start = $start->format(\DateTime::ATOM); |
|
| 115 | return $this; |
|
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| 119 | * @return \DateTime |
|
| 120 | */ |
|
| 121 | public function getEnd() |
|
| 122 | { |
|
| 123 | if ($this->end == null) { |
|
| 124 | return null; |
|
| 125 | } else { |
|
| 126 | try { |
|
| 127 | return new \DateTime($this->end); |
|
| 128 | } catch (\Exception $e) { |
|
| 129 | return false; |
|
| 130 | } |
|
| 131 | } |
|
| 132 | } |
|
| 133 | ||
| 134 | /** |
|
| 135 | * @param \DateTime $end |
|
| 136 | * @return \Gueststream\PMS\IQWare\API\WebRes_GetHotelAvailabilityArray |
|
| 137 | */ |
|
| 138 | public function setEnd(\DateTime $end) |
|
| 139 | { |
|
| 140 | $this->end = $end->format(\DateTime::ATOM); |
|
| 141 | return $this; |
|
| 142 | } |
|
| 143 | ||
| 144 | /** |
|
| 145 | * @return boolean |
|
| 146 | */ |
|
| 147 | public function getIsSuite() |
|
| 148 | { |
|
| 149 | return $this->isSuite; |
|
| 150 | } |
|
| 151 | ||
| 152 | /** |
|
| 153 | * @param boolean $isSuite |
|
| 154 | * @return \Gueststream\PMS\IQWare\API\WebRes_GetHotelAvailabilityArray |
|
| 155 | */ |
|
| 156 | public function setIsSuite($isSuite) |
|
| 157 | { |
|
| 158 | $this->isSuite = $isSuite; |
|
| 159 | return $this; |
|
| 160 | } |
|
| 161 | ||
| 162 | /** |
|
| 163 | * @return string |
|
| 164 | */ |
|
| 165 | public function getStrISOLanguageCode() |
|
| 166 | { |
|
| 167 | return $this->strISOLanguageCode; |
|
| 168 | } |
|
| 169 | ||
| 170 | /** |
|
| 171 | * @param string $strISOLanguageCode |
|
| 172 | * @return \Gueststream\PMS\IQWare\API\WebRes_GetHotelAvailabilityArray |
|
| 173 | */ |
|
| 174 | public function setStrISOLanguageCode($strISOLanguageCode) |
|
| 175 | { |
|
| 176 | $this->strISOLanguageCode = $strISOLanguageCode; |
|
| 177 | return $this; |
|
| 178 | } |
|
| 179 | } |
|
| 180 | ||