| @@ 5-254 (lines=250) @@ | ||
| 2 | ||
| 3 | namespace Gueststream\PMS\IQWare\API; |
|
| 4 | ||
| 5 | class dtReservations |
|
| 6 | { |
|
| 7 | ||
| 8 | /** |
|
| 9 | * @var int $AccountNo |
|
| 10 | */ |
|
| 11 | protected $AccountNo = null; |
|
| 12 | ||
| 13 | /** |
|
| 14 | * @var \DateTime $ArrivalDate |
|
| 15 | */ |
|
| 16 | protected $ArrivalDate = null; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * @var \DateTime $DepartureDate |
|
| 20 | */ |
|
| 21 | protected $DepartureDate = null; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * @var string $LastName |
|
| 25 | */ |
|
| 26 | protected $LastName = null; |
|
| 27 | ||
| 28 | /** |
|
| 29 | * @var string $FirstName |
|
| 30 | */ |
|
| 31 | protected $FirstName = null; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @var string $PhoneNo |
|
| 35 | */ |
|
| 36 | protected $PhoneNo = null; |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @var string $CompanyName |
|
| 40 | */ |
|
| 41 | protected $CompanyName = null; |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @var string $ClubCardMemberNo |
|
| 45 | */ |
|
| 46 | protected $ClubCardMemberNo = null; |
|
| 47 | ||
| 48 | /** |
|
| 49 | * @var int $AccountStatus |
|
| 50 | */ |
|
| 51 | protected $AccountStatus = null; |
|
| 52 | ||
| 53 | /** |
|
| 54 | * @param int $AccountNo |
|
| 55 | * @param \DateTime $ArrivalDate |
|
| 56 | * @param \DateTime $DepartureDate |
|
| 57 | * @param string $LastName |
|
| 58 | * @param string $FirstName |
|
| 59 | * @param string $PhoneNo |
|
| 60 | * @param string $CompanyName |
|
| 61 | * @param string $ClubCardMemberNo |
|
| 62 | * @param int $AccountStatus |
|
| 63 | */ |
|
| 64 | public function __construct($AccountNo, \DateTime $ArrivalDate, \DateTime $DepartureDate, $LastName, $FirstName, $PhoneNo, $CompanyName, $ClubCardMemberNo, $AccountStatus) |
|
| 65 | { |
|
| 66 | $this->AccountNo = $AccountNo; |
|
| 67 | $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM); |
|
| 68 | $this->DepartureDate = $DepartureDate->format(\DateTime::ATOM); |
|
| 69 | $this->LastName = $LastName; |
|
| 70 | $this->FirstName = $FirstName; |
|
| 71 | $this->PhoneNo = $PhoneNo; |
|
| 72 | $this->CompanyName = $CompanyName; |
|
| 73 | $this->ClubCardMemberNo = $ClubCardMemberNo; |
|
| 74 | $this->AccountStatus = $AccountStatus; |
|
| 75 | } |
|
| 76 | ||
| 77 | /** |
|
| 78 | * @return int |
|
| 79 | */ |
|
| 80 | public function getAccountNo() |
|
| 81 | { |
|
| 82 | return $this->AccountNo; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * @param int $AccountNo |
|
| 87 | * @return \Gueststream\PMS\IQWare\API\dtReservations |
|
| 88 | */ |
|
| 89 | public function setAccountNo($AccountNo) |
|
| 90 | { |
|
| 91 | $this->AccountNo = $AccountNo; |
|
| 92 | return $this; |
|
| 93 | } |
|
| 94 | ||
| 95 | /** |
|
| 96 | * @return \DateTime |
|
| 97 | */ |
|
| 98 | public function getArrivalDate() |
|
| 99 | { |
|
| 100 | if ($this->ArrivalDate == null) { |
|
| 101 | return null; |
|
| 102 | } else { |
|
| 103 | try { |
|
| 104 | return new \DateTime($this->ArrivalDate); |
|
| 105 | } catch (\Exception $e) { |
|
| 106 | return false; |
|
| 107 | } |
|
| 108 | } |
|
| 109 | } |
|
| 110 | ||
| 111 | /** |
|
| 112 | * @param \DateTime $ArrivalDate |
|
| 113 | * @return \Gueststream\PMS\IQWare\API\dtReservations |
|
| 114 | */ |
|
| 115 | public function setArrivalDate(\DateTime $ArrivalDate) |
|
| 116 | { |
|
| 117 | $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM); |
|
| 118 | return $this; |
|
| 119 | } |
|
| 120 | ||
| 121 | /** |
|
| 122 | * @return \DateTime |
|
| 123 | */ |
|
| 124 | public function getDepartureDate() |
|
| 125 | { |
|
| 126 | if ($this->DepartureDate == null) { |
|
| 127 | return null; |
|
| 128 | } else { |
|
| 129 | try { |
|
| 130 | return new \DateTime($this->DepartureDate); |
|
| 131 | } catch (\Exception $e) { |
|
| 132 | return false; |
|
| 133 | } |
|
| 134 | } |
|
| 135 | } |
|
| 136 | ||
| 137 | /** |
|
| 138 | * @param \DateTime $DepartureDate |
|
| 139 | * @return \Gueststream\PMS\IQWare\API\dtReservations |
|
| 140 | */ |
|
| 141 | public function setDepartureDate(\DateTime $DepartureDate) |
|
| 142 | { |
|
| 143 | $this->DepartureDate = $DepartureDate->format(\DateTime::ATOM); |
|
| 144 | return $this; |
|
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * @return string |
|
| 149 | */ |
|
| 150 | public function getLastName() |
|
| 151 | { |
|
| 152 | return $this->LastName; |
|
| 153 | } |
|
| 154 | ||
| 155 | /** |
|
| 156 | * @param string $LastName |
|
| 157 | * @return \Gueststream\PMS\IQWare\API\dtReservations |
|
| 158 | */ |
|
| 159 | public function setLastName($LastName) |
|
| 160 | { |
|
| 161 | $this->LastName = $LastName; |
|
| 162 | return $this; |
|
| 163 | } |
|
| 164 | ||
| 165 | /** |
|
| 166 | * @return string |
|
| 167 | */ |
|
| 168 | public function getFirstName() |
|
| 169 | { |
|
| 170 | return $this->FirstName; |
|
| 171 | } |
|
| 172 | ||
| 173 | /** |
|
| 174 | * @param string $FirstName |
|
| 175 | * @return \Gueststream\PMS\IQWare\API\dtReservations |
|
| 176 | */ |
|
| 177 | public function setFirstName($FirstName) |
|
| 178 | { |
|
| 179 | $this->FirstName = $FirstName; |
|
| 180 | return $this; |
|
| 181 | } |
|
| 182 | ||
| 183 | /** |
|
| 184 | * @return string |
|
| 185 | */ |
|
| 186 | public function getPhoneNo() |
|
| 187 | { |
|
| 188 | return $this->PhoneNo; |
|
| 189 | } |
|
| 190 | ||
| 191 | /** |
|
| 192 | * @param string $PhoneNo |
|
| 193 | * @return \Gueststream\PMS\IQWare\API\dtReservations |
|
| 194 | */ |
|
| 195 | public function setPhoneNo($PhoneNo) |
|
| 196 | { |
|
| 197 | $this->PhoneNo = $PhoneNo; |
|
| 198 | return $this; |
|
| 199 | } |
|
| 200 | ||
| 201 | /** |
|
| 202 | * @return string |
|
| 203 | */ |
|
| 204 | public function getCompanyName() |
|
| 205 | { |
|
| 206 | return $this->CompanyName; |
|
| 207 | } |
|
| 208 | ||
| 209 | /** |
|
| 210 | * @param string $CompanyName |
|
| 211 | * @return \Gueststream\PMS\IQWare\API\dtReservations |
|
| 212 | */ |
|
| 213 | public function setCompanyName($CompanyName) |
|
| 214 | { |
|
| 215 | $this->CompanyName = $CompanyName; |
|
| 216 | return $this; |
|
| 217 | } |
|
| 218 | ||
| 219 | /** |
|
| 220 | * @return string |
|
| 221 | */ |
|
| 222 | public function getClubCardMemberNo() |
|
| 223 | { |
|
| 224 | return $this->ClubCardMemberNo; |
|
| 225 | } |
|
| 226 | ||
| 227 | /** |
|
| 228 | * @param string $ClubCardMemberNo |
|
| 229 | * @return \Gueststream\PMS\IQWare\API\dtReservations |
|
| 230 | */ |
|
| 231 | public function setClubCardMemberNo($ClubCardMemberNo) |
|
| 232 | { |
|
| 233 | $this->ClubCardMemberNo = $ClubCardMemberNo; |
|
| 234 | return $this; |
|
| 235 | } |
|
| 236 | ||
| 237 | /** |
|
| 238 | * @return int |
|
| 239 | */ |
|
| 240 | public function getAccountStatus() |
|
| 241 | { |
|
| 242 | return $this->AccountStatus; |
|
| 243 | } |
|
| 244 | ||
| 245 | /** |
|
| 246 | * @param int $AccountStatus |
|
| 247 | * @return \Gueststream\PMS\IQWare\API\dtReservations |
|
| 248 | */ |
|
| 249 | public function setAccountStatus($AccountStatus) |
|
| 250 | { |
|
| 251 | $this->AccountStatus = $AccountStatus; |
|
| 252 | return $this; |
|
| 253 | } |
|
| 254 | } |
|
| 255 | ||
| @@ 5-254 (lines=250) @@ | ||
| 2 | ||
| 3 | namespace Gueststream\PMS\IQWare\API; |
|
| 4 | ||
| 5 | class PMSResaSearch |
|
| 6 | { |
|
| 7 | ||
| 8 | /** |
|
| 9 | * @var string $AccountNo |
|
| 10 | */ |
|
| 11 | protected $AccountNo = null; |
|
| 12 | ||
| 13 | /** |
|
| 14 | * @var string $FirstName |
|
| 15 | */ |
|
| 16 | protected $FirstName = null; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * @var string $LastName |
|
| 20 | */ |
|
| 21 | protected $LastName = null; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * @var string $CompanyName |
|
| 25 | */ |
|
| 26 | protected $CompanyName = null; |
|
| 27 | ||
| 28 | /** |
|
| 29 | * @var string $PhoneNo |
|
| 30 | */ |
|
| 31 | protected $PhoneNo = null; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @var string $ClubMemberCardNo |
|
| 35 | */ |
|
| 36 | protected $ClubMemberCardNo = null; |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @var \DateTime $ArrivalDateMin |
|
| 40 | */ |
|
| 41 | protected $ArrivalDateMin = null; |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @var \DateTime $ArrivalDateMax |
|
| 45 | */ |
|
| 46 | protected $ArrivalDateMax = null; |
|
| 47 | ||
| 48 | /** |
|
| 49 | * @var TSearchRigidity $SearchRigidity |
|
| 50 | */ |
|
| 51 | protected $SearchRigidity = null; |
|
| 52 | ||
| 53 | /** |
|
| 54 | * @param string $AccountNo |
|
| 55 | * @param string $FirstName |
|
| 56 | * @param string $LastName |
|
| 57 | * @param string $CompanyName |
|
| 58 | * @param string $PhoneNo |
|
| 59 | * @param string $ClubMemberCardNo |
|
| 60 | * @param \DateTime $ArrivalDateMin |
|
| 61 | * @param \DateTime $ArrivalDateMax |
|
| 62 | * @param TSearchRigidity $SearchRigidity |
|
| 63 | */ |
|
| 64 | public function __construct($AccountNo, $FirstName, $LastName, $CompanyName, $PhoneNo, $ClubMemberCardNo, \DateTime $ArrivalDateMin, \DateTime $ArrivalDateMax, $SearchRigidity) |
|
| 65 | { |
|
| 66 | $this->AccountNo = $AccountNo; |
|
| 67 | $this->FirstName = $FirstName; |
|
| 68 | $this->LastName = $LastName; |
|
| 69 | $this->CompanyName = $CompanyName; |
|
| 70 | $this->PhoneNo = $PhoneNo; |
|
| 71 | $this->ClubMemberCardNo = $ClubMemberCardNo; |
|
| 72 | $this->ArrivalDateMin = $ArrivalDateMin->format(\DateTime::ATOM); |
|
| 73 | $this->ArrivalDateMax = $ArrivalDateMax->format(\DateTime::ATOM); |
|
| 74 | $this->SearchRigidity = $SearchRigidity; |
|
| 75 | } |
|
| 76 | ||
| 77 | /** |
|
| 78 | * @return string |
|
| 79 | */ |
|
| 80 | public function getAccountNo() |
|
| 81 | { |
|
| 82 | return $this->AccountNo; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * @param string $AccountNo |
|
| 87 | * @return \Gueststream\PMS\IQWare\API\PMSResaSearch |
|
| 88 | */ |
|
| 89 | public function setAccountNo($AccountNo) |
|
| 90 | { |
|
| 91 | $this->AccountNo = $AccountNo; |
|
| 92 | return $this; |
|
| 93 | } |
|
| 94 | ||
| 95 | /** |
|
| 96 | * @return string |
|
| 97 | */ |
|
| 98 | public function getFirstName() |
|
| 99 | { |
|
| 100 | return $this->FirstName; |
|
| 101 | } |
|
| 102 | ||
| 103 | /** |
|
| 104 | * @param string $FirstName |
|
| 105 | * @return \Gueststream\PMS\IQWare\API\PMSResaSearch |
|
| 106 | */ |
|
| 107 | public function setFirstName($FirstName) |
|
| 108 | { |
|
| 109 | $this->FirstName = $FirstName; |
|
| 110 | return $this; |
|
| 111 | } |
|
| 112 | ||
| 113 | /** |
|
| 114 | * @return string |
|
| 115 | */ |
|
| 116 | public function getLastName() |
|
| 117 | { |
|
| 118 | return $this->LastName; |
|
| 119 | } |
|
| 120 | ||
| 121 | /** |
|
| 122 | * @param string $LastName |
|
| 123 | * @return \Gueststream\PMS\IQWare\API\PMSResaSearch |
|
| 124 | */ |
|
| 125 | public function setLastName($LastName) |
|
| 126 | { |
|
| 127 | $this->LastName = $LastName; |
|
| 128 | return $this; |
|
| 129 | } |
|
| 130 | ||
| 131 | /** |
|
| 132 | * @return string |
|
| 133 | */ |
|
| 134 | public function getCompanyName() |
|
| 135 | { |
|
| 136 | return $this->CompanyName; |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * @param string $CompanyName |
|
| 141 | * @return \Gueststream\PMS\IQWare\API\PMSResaSearch |
|
| 142 | */ |
|
| 143 | public function setCompanyName($CompanyName) |
|
| 144 | { |
|
| 145 | $this->CompanyName = $CompanyName; |
|
| 146 | return $this; |
|
| 147 | } |
|
| 148 | ||
| 149 | /** |
|
| 150 | * @return string |
|
| 151 | */ |
|
| 152 | public function getPhoneNo() |
|
| 153 | { |
|
| 154 | return $this->PhoneNo; |
|
| 155 | } |
|
| 156 | ||
| 157 | /** |
|
| 158 | * @param string $PhoneNo |
|
| 159 | * @return \Gueststream\PMS\IQWare\API\PMSResaSearch |
|
| 160 | */ |
|
| 161 | public function setPhoneNo($PhoneNo) |
|
| 162 | { |
|
| 163 | $this->PhoneNo = $PhoneNo; |
|
| 164 | return $this; |
|
| 165 | } |
|
| 166 | ||
| 167 | /** |
|
| 168 | * @return string |
|
| 169 | */ |
|
| 170 | public function getClubMemberCardNo() |
|
| 171 | { |
|
| 172 | return $this->ClubMemberCardNo; |
|
| 173 | } |
|
| 174 | ||
| 175 | /** |
|
| 176 | * @param string $ClubMemberCardNo |
|
| 177 | * @return \Gueststream\PMS\IQWare\API\PMSResaSearch |
|
| 178 | */ |
|
| 179 | public function setClubMemberCardNo($ClubMemberCardNo) |
|
| 180 | { |
|
| 181 | $this->ClubMemberCardNo = $ClubMemberCardNo; |
|
| 182 | return $this; |
|
| 183 | } |
|
| 184 | ||
| 185 | /** |
|
| 186 | * @return \DateTime |
|
| 187 | */ |
|
| 188 | public function getArrivalDateMin() |
|
| 189 | { |
|
| 190 | if ($this->ArrivalDateMin == null) { |
|
| 191 | return null; |
|
| 192 | } else { |
|
| 193 | try { |
|
| 194 | return new \DateTime($this->ArrivalDateMin); |
|
| 195 | } catch (\Exception $e) { |
|
| 196 | return false; |
|
| 197 | } |
|
| 198 | } |
|
| 199 | } |
|
| 200 | ||
| 201 | /** |
|
| 202 | * @param \DateTime $ArrivalDateMin |
|
| 203 | * @return \Gueststream\PMS\IQWare\API\PMSResaSearch |
|
| 204 | */ |
|
| 205 | public function setArrivalDateMin(\DateTime $ArrivalDateMin) |
|
| 206 | { |
|
| 207 | $this->ArrivalDateMin = $ArrivalDateMin->format(\DateTime::ATOM); |
|
| 208 | return $this; |
|
| 209 | } |
|
| 210 | ||
| 211 | /** |
|
| 212 | * @return \DateTime |
|
| 213 | */ |
|
| 214 | public function getArrivalDateMax() |
|
| 215 | { |
|
| 216 | if ($this->ArrivalDateMax == null) { |
|
| 217 | return null; |
|
| 218 | } else { |
|
| 219 | try { |
|
| 220 | return new \DateTime($this->ArrivalDateMax); |
|
| 221 | } catch (\Exception $e) { |
|
| 222 | return false; |
|
| 223 | } |
|
| 224 | } |
|
| 225 | } |
|
| 226 | ||
| 227 | /** |
|
| 228 | * @param \DateTime $ArrivalDateMax |
|
| 229 | * @return \Gueststream\PMS\IQWare\API\PMSResaSearch |
|
| 230 | */ |
|
| 231 | public function setArrivalDateMax(\DateTime $ArrivalDateMax) |
|
| 232 | { |
|
| 233 | $this->ArrivalDateMax = $ArrivalDateMax->format(\DateTime::ATOM); |
|
| 234 | return $this; |
|
| 235 | } |
|
| 236 | ||
| 237 | /** |
|
| 238 | * @return TSearchRigidity |
|
| 239 | */ |
|
| 240 | public function getSearchRigidity() |
|
| 241 | { |
|
| 242 | return $this->SearchRigidity; |
|
| 243 | } |
|
| 244 | ||
| 245 | /** |
|
| 246 | * @param TSearchRigidity $SearchRigidity |
|
| 247 | * @return \Gueststream\PMS\IQWare\API\PMSResaSearch |
|
| 248 | */ |
|
| 249 | public function setSearchRigidity($SearchRigidity) |
|
| 250 | { |
|
| 251 | $this->SearchRigidity = $SearchRigidity; |
|
| 252 | return $this; |
|
| 253 | } |
|
| 254 | } |
|
| 255 | ||