| @@ 5-204 (lines=200) @@ | ||
| 2 | ||
| 3 | namespace Gueststream\PMS\IQWare\API; |
|
| 4 | ||
| 5 | class GetUnitReservations |
|
| 6 | { |
|
| 7 | ||
| 8 | /** |
|
| 9 | * @var int $intGUID |
|
| 10 | */ |
|
| 11 | protected $intGUID = null; |
|
| 12 | ||
| 13 | /** |
|
| 14 | * @var string $userName |
|
| 15 | */ |
|
| 16 | protected $userName = null; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * @var string $password |
|
| 20 | */ |
|
| 21 | protected $password = null; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * @var int $ID_CondoOwner |
|
| 25 | */ |
|
| 26 | protected $ID_CondoOwner = null; |
|
| 27 | ||
| 28 | /** |
|
| 29 | * @var int $ID_Admin |
|
| 30 | */ |
|
| 31 | protected $ID_Admin = null; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @var \DateTime $StartDate |
|
| 35 | */ |
|
| 36 | protected $StartDate = null; |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @var \DateTime $EndDate |
|
| 40 | */ |
|
| 41 | protected $EndDate = null; |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @param int $intGUID |
|
| 45 | * @param string $userName |
|
| 46 | * @param string $password |
|
| 47 | * @param int $ID_CondoOwner |
|
| 48 | * @param int $ID_Admin |
|
| 49 | * @param \DateTime $StartDate |
|
| 50 | * @param \DateTime $EndDate |
|
| 51 | */ |
|
| 52 | public function __construct($intGUID, $userName, $password, $ID_CondoOwner, $ID_Admin, \DateTime $StartDate, \DateTime $EndDate) |
|
| 53 | { |
|
| 54 | $this->intGUID = $intGUID; |
|
| 55 | $this->userName = $userName; |
|
| 56 | $this->password = $password; |
|
| 57 | $this->ID_CondoOwner = $ID_CondoOwner; |
|
| 58 | $this->ID_Admin = $ID_Admin; |
|
| 59 | $this->StartDate = $StartDate->format(\DateTime::ATOM); |
|
| 60 | $this->EndDate = $EndDate->format(\DateTime::ATOM); |
|
| 61 | } |
|
| 62 | ||
| 63 | /** |
|
| 64 | * @return int |
|
| 65 | */ |
|
| 66 | public function getIntGUID() |
|
| 67 | { |
|
| 68 | return $this->intGUID; |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|
| 72 | * @param int $intGUID |
|
| 73 | * @return \Gueststream\PMS\IQWare\API\GetUnitReservations |
|
| 74 | */ |
|
| 75 | public function setIntGUID($intGUID) |
|
| 76 | { |
|
| 77 | $this->intGUID = $intGUID; |
|
| 78 | return $this; |
|
| 79 | } |
|
| 80 | ||
| 81 | /** |
|
| 82 | * @return string |
|
| 83 | */ |
|
| 84 | public function getUserName() |
|
| 85 | { |
|
| 86 | return $this->userName; |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * @param string $userName |
|
| 91 | * @return \Gueststream\PMS\IQWare\API\GetUnitReservations |
|
| 92 | */ |
|
| 93 | public function setUserName($userName) |
|
| 94 | { |
|
| 95 | $this->userName = $userName; |
|
| 96 | return $this; |
|
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| 100 | * @return string |
|
| 101 | */ |
|
| 102 | public function getPassword() |
|
| 103 | { |
|
| 104 | return $this->password; |
|
| 105 | } |
|
| 106 | ||
| 107 | /** |
|
| 108 | * @param string $password |
|
| 109 | * @return \Gueststream\PMS\IQWare\API\GetUnitReservations |
|
| 110 | */ |
|
| 111 | public function setPassword($password) |
|
| 112 | { |
|
| 113 | $this->password = $password; |
|
| 114 | return $this; |
|
| 115 | } |
|
| 116 | ||
| 117 | /** |
|
| 118 | * @return int |
|
| 119 | */ |
|
| 120 | public function getID_CondoOwner() |
|
| 121 | { |
|
| 122 | return $this->ID_CondoOwner; |
|
| 123 | } |
|
| 124 | ||
| 125 | /** |
|
| 126 | * @param int $ID_CondoOwner |
|
| 127 | * @return \Gueststream\PMS\IQWare\API\GetUnitReservations |
|
| 128 | */ |
|
| 129 | public function setID_CondoOwner($ID_CondoOwner) |
|
| 130 | { |
|
| 131 | $this->ID_CondoOwner = $ID_CondoOwner; |
|
| 132 | return $this; |
|
| 133 | } |
|
| 134 | ||
| 135 | /** |
|
| 136 | * @return int |
|
| 137 | */ |
|
| 138 | public function getID_Admin() |
|
| 139 | { |
|
| 140 | return $this->ID_Admin; |
|
| 141 | } |
|
| 142 | ||
| 143 | /** |
|
| 144 | * @param int $ID_Admin |
|
| 145 | * @return \Gueststream\PMS\IQWare\API\GetUnitReservations |
|
| 146 | */ |
|
| 147 | public function setID_Admin($ID_Admin) |
|
| 148 | { |
|
| 149 | $this->ID_Admin = $ID_Admin; |
|
| 150 | return $this; |
|
| 151 | } |
|
| 152 | ||
| 153 | /** |
|
| 154 | * @return \DateTime |
|
| 155 | */ |
|
| 156 | public function getStartDate() |
|
| 157 | { |
|
| 158 | if ($this->StartDate == null) { |
|
| 159 | return null; |
|
| 160 | } else { |
|
| 161 | try { |
|
| 162 | return new \DateTime($this->StartDate); |
|
| 163 | } catch (\Exception $e) { |
|
| 164 | return false; |
|
| 165 | } |
|
| 166 | } |
|
| 167 | } |
|
| 168 | ||
| 169 | /** |
|
| 170 | * @param \DateTime $StartDate |
|
| 171 | * @return \Gueststream\PMS\IQWare\API\GetUnitReservations |
|
| 172 | */ |
|
| 173 | public function setStartDate(\DateTime $StartDate) |
|
| 174 | { |
|
| 175 | $this->StartDate = $StartDate->format(\DateTime::ATOM); |
|
| 176 | return $this; |
|
| 177 | } |
|
| 178 | ||
| 179 | /** |
|
| 180 | * @return \DateTime |
|
| 181 | */ |
|
| 182 | public function getEndDate() |
|
| 183 | { |
|
| 184 | if ($this->EndDate == null) { |
|
| 185 | return null; |
|
| 186 | } else { |
|
| 187 | try { |
|
| 188 | return new \DateTime($this->EndDate); |
|
| 189 | } catch (\Exception $e) { |
|
| 190 | return false; |
|
| 191 | } |
|
| 192 | } |
|
| 193 | } |
|
| 194 | ||
| 195 | /** |
|
| 196 | * @param \DateTime $EndDate |
|
| 197 | * @return \Gueststream\PMS\IQWare\API\GetUnitReservations |
|
| 198 | */ |
|
| 199 | public function setEndDate(\DateTime $EndDate) |
|
| 200 | { |
|
| 201 | $this->EndDate = $EndDate->format(\DateTime::ATOM); |
|
| 202 | return $this; |
|
| 203 | } |
|
| 204 | } |
|
| 205 | ||
| @@ 5-204 (lines=200) @@ | ||
| 2 | ||
| 3 | namespace Gueststream\PMS\IQWare\API; |
|
| 4 | ||
| 5 | class WebRes_GetGroupBlocAvailability |
|
| 6 | { |
|
| 7 | ||
| 8 | /** |
|
| 9 | * @var int $guid |
|
| 10 | */ |
|
| 11 | protected $guid = null; |
|
| 12 | ||
| 13 | /** |
|
| 14 | * @var string $LanguageCode |
|
| 15 | */ |
|
| 16 | protected $LanguageCode = null; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * @var int $ID_Account |
|
| 20 | */ |
|
| 21 | protected $ID_Account = null; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * @var \DateTime $StartDate |
|
| 25 | */ |
|
| 26 | protected $StartDate = null; |
|
| 27 | ||
| 28 | /** |
|
| 29 | * @var \DateTime $EndDate |
|
| 30 | */ |
|
| 31 | protected $EndDate = null; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @var TGroupBlocType $BlocType |
|
| 35 | */ |
|
| 36 | protected $BlocType = null; |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @var TGroupBlocQtyType $BlocQtyType |
|
| 40 | */ |
|
| 41 | protected $BlocQtyType = null; |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @param int $guid |
|
| 45 | * @param string $LanguageCode |
|
| 46 | * @param int $ID_Account |
|
| 47 | * @param \DateTime $StartDate |
|
| 48 | * @param \DateTime $EndDate |
|
| 49 | * @param TGroupBlocType $BlocType |
|
| 50 | * @param TGroupBlocQtyType $BlocQtyType |
|
| 51 | */ |
|
| 52 | public function __construct($guid, $LanguageCode, $ID_Account, \DateTime $StartDate, \DateTime $EndDate, $BlocType, $BlocQtyType) |
|
| 53 | { |
|
| 54 | $this->guid = $guid; |
|
| 55 | $this->LanguageCode = $LanguageCode; |
|
| 56 | $this->ID_Account = $ID_Account; |
|
| 57 | $this->StartDate = $StartDate->format(\DateTime::ATOM); |
|
| 58 | $this->EndDate = $EndDate->format(\DateTime::ATOM); |
|
| 59 | $this->BlocType = $BlocType; |
|
| 60 | $this->BlocQtyType = $BlocQtyType; |
|
| 61 | } |
|
| 62 | ||
| 63 | /** |
|
| 64 | * @return int |
|
| 65 | */ |
|
| 66 | public function getGuid() |
|
| 67 | { |
|
| 68 | return $this->guid; |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|
| 72 | * @param int $guid |
|
| 73 | * @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupBlocAvailability |
|
| 74 | */ |
|
| 75 | public function setGuid($guid) |
|
| 76 | { |
|
| 77 | $this->guid = $guid; |
|
| 78 | return $this; |
|
| 79 | } |
|
| 80 | ||
| 81 | /** |
|
| 82 | * @return string |
|
| 83 | */ |
|
| 84 | public function getLanguageCode() |
|
| 85 | { |
|
| 86 | return $this->LanguageCode; |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * @param string $LanguageCode |
|
| 91 | * @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupBlocAvailability |
|
| 92 | */ |
|
| 93 | public function setLanguageCode($LanguageCode) |
|
| 94 | { |
|
| 95 | $this->LanguageCode = $LanguageCode; |
|
| 96 | return $this; |
|
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| 100 | * @return int |
|
| 101 | */ |
|
| 102 | public function getID_Account() |
|
| 103 | { |
|
| 104 | return $this->ID_Account; |
|
| 105 | } |
|
| 106 | ||
| 107 | /** |
|
| 108 | * @param int $ID_Account |
|
| 109 | * @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupBlocAvailability |
|
| 110 | */ |
|
| 111 | public function setID_Account($ID_Account) |
|
| 112 | { |
|
| 113 | $this->ID_Account = $ID_Account; |
|
| 114 | return $this; |
|
| 115 | } |
|
| 116 | ||
| 117 | /** |
|
| 118 | * @return \DateTime |
|
| 119 | */ |
|
| 120 | public function getStartDate() |
|
| 121 | { |
|
| 122 | if ($this->StartDate == null) { |
|
| 123 | return null; |
|
| 124 | } else { |
|
| 125 | try { |
|
| 126 | return new \DateTime($this->StartDate); |
|
| 127 | } catch (\Exception $e) { |
|
| 128 | return false; |
|
| 129 | } |
|
| 130 | } |
|
| 131 | } |
|
| 132 | ||
| 133 | /** |
|
| 134 | * @param \DateTime $StartDate |
|
| 135 | * @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupBlocAvailability |
|
| 136 | */ |
|
| 137 | public function setStartDate(\DateTime $StartDate) |
|
| 138 | { |
|
| 139 | $this->StartDate = $StartDate->format(\DateTime::ATOM); |
|
| 140 | return $this; |
|
| 141 | } |
|
| 142 | ||
| 143 | /** |
|
| 144 | * @return \DateTime |
|
| 145 | */ |
|
| 146 | public function getEndDate() |
|
| 147 | { |
|
| 148 | if ($this->EndDate == null) { |
|
| 149 | return null; |
|
| 150 | } else { |
|
| 151 | try { |
|
| 152 | return new \DateTime($this->EndDate); |
|
| 153 | } catch (\Exception $e) { |
|
| 154 | return false; |
|
| 155 | } |
|
| 156 | } |
|
| 157 | } |
|
| 158 | ||
| 159 | /** |
|
| 160 | * @param \DateTime $EndDate |
|
| 161 | * @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupBlocAvailability |
|
| 162 | */ |
|
| 163 | public function setEndDate(\DateTime $EndDate) |
|
| 164 | { |
|
| 165 | $this->EndDate = $EndDate->format(\DateTime::ATOM); |
|
| 166 | return $this; |
|
| 167 | } |
|
| 168 | ||
| 169 | /** |
|
| 170 | * @return TGroupBlocType |
|
| 171 | */ |
|
| 172 | public function getBlocType() |
|
| 173 | { |
|
| 174 | return $this->BlocType; |
|
| 175 | } |
|
| 176 | ||
| 177 | /** |
|
| 178 | * @param TGroupBlocType $BlocType |
|
| 179 | * @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupBlocAvailability |
|
| 180 | */ |
|
| 181 | public function setBlocType($BlocType) |
|
| 182 | { |
|
| 183 | $this->BlocType = $BlocType; |
|
| 184 | return $this; |
|
| 185 | } |
|
| 186 | ||
| 187 | /** |
|
| 188 | * @return TGroupBlocQtyType |
|
| 189 | */ |
|
| 190 | public function getBlocQtyType() |
|
| 191 | { |
|
| 192 | return $this->BlocQtyType; |
|
| 193 | } |
|
| 194 | ||
| 195 | /** |
|
| 196 | * @param TGroupBlocQtyType $BlocQtyType |
|
| 197 | * @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupBlocAvailability |
|
| 198 | */ |
|
| 199 | public function setBlocQtyType($BlocQtyType) |
|
| 200 | { |
|
| 201 | $this->BlocQtyType = $BlocQtyType; |
|
| 202 | return $this; |
|
| 203 | } |
|
| 204 | } |
|
| 205 | ||