| @@ 5-154 (lines=150) @@ | ||
| 2 | ||
| 3 | namespace Gueststream\PMS\IQWare\API; |
|
| 4 | ||
| 5 | class GDS_GetRestrictions |
|
| 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 string $strRateCodeIDs |
|
| 25 | */ |
|
| 26 | protected $strRateCodeIDs = null; |
|
| 27 | ||
| 28 | /** |
|
| 29 | * @var string $strRoomTypeIDs |
|
| 30 | */ |
|
| 31 | protected $strRoomTypeIDs = null; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @param int $intGUID |
|
| 35 | * @param \DateTime $start |
|
| 36 | * @param \DateTime $end |
|
| 37 | * @param string $strRateCodeIDs |
|
| 38 | * @param string $strRoomTypeIDs |
|
| 39 | */ |
|
| 40 | public function __construct($intGUID, \DateTime $start, \DateTime $end, $strRateCodeIDs, $strRoomTypeIDs) |
|
| 41 | { |
|
| 42 | $this->intGUID = $intGUID; |
|
| 43 | $this->start = $start->format(\DateTime::ATOM); |
|
| 44 | $this->end = $end->format(\DateTime::ATOM); |
|
| 45 | $this->strRateCodeIDs = $strRateCodeIDs; |
|
| 46 | $this->strRoomTypeIDs = $strRoomTypeIDs; |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * @return int |
|
| 51 | */ |
|
| 52 | public function getIntGUID() |
|
| 53 | { |
|
| 54 | return $this->intGUID; |
|
| 55 | } |
|
| 56 | ||
| 57 | /** |
|
| 58 | * @param int $intGUID |
|
| 59 | * @return \Gueststream\PMS\IQWare\API\GDS_GetRestrictions |
|
| 60 | */ |
|
| 61 | public function setIntGUID($intGUID) |
|
| 62 | { |
|
| 63 | $this->intGUID = $intGUID; |
|
| 64 | return $this; |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * @return \DateTime |
|
| 69 | */ |
|
| 70 | public function getStart() |
|
| 71 | { |
|
| 72 | if ($this->start == null) { |
|
| 73 | return null; |
|
| 74 | } else { |
|
| 75 | try { |
|
| 76 | return new \DateTime($this->start); |
|
| 77 | } catch (\Exception $e) { |
|
| 78 | return false; |
|
| 79 | } |
|
| 80 | } |
|
| 81 | } |
|
| 82 | ||
| 83 | /** |
|
| 84 | * @param \DateTime $start |
|
| 85 | * @return \Gueststream\PMS\IQWare\API\GDS_GetRestrictions |
|
| 86 | */ |
|
| 87 | public function setStart(\DateTime $start) |
|
| 88 | { |
|
| 89 | $this->start = $start->format(\DateTime::ATOM); |
|
| 90 | return $this; |
|
| 91 | } |
|
| 92 | ||
| 93 | /** |
|
| 94 | * @return \DateTime |
|
| 95 | */ |
|
| 96 | public function getEnd() |
|
| 97 | { |
|
| 98 | if ($this->end == null) { |
|
| 99 | return null; |
|
| 100 | } else { |
|
| 101 | try { |
|
| 102 | return new \DateTime($this->end); |
|
| 103 | } catch (\Exception $e) { |
|
| 104 | return false; |
|
| 105 | } |
|
| 106 | } |
|
| 107 | } |
|
| 108 | ||
| 109 | /** |
|
| 110 | * @param \DateTime $end |
|
| 111 | * @return \Gueststream\PMS\IQWare\API\GDS_GetRestrictions |
|
| 112 | */ |
|
| 113 | public function setEnd(\DateTime $end) |
|
| 114 | { |
|
| 115 | $this->end = $end->format(\DateTime::ATOM); |
|
| 116 | return $this; |
|
| 117 | } |
|
| 118 | ||
| 119 | /** |
|
| 120 | * @return string |
|
| 121 | */ |
|
| 122 | public function getStrRateCodeIDs() |
|
| 123 | { |
|
| 124 | return $this->strRateCodeIDs; |
|
| 125 | } |
|
| 126 | ||
| 127 | /** |
|
| 128 | * @param string $strRateCodeIDs |
|
| 129 | * @return \Gueststream\PMS\IQWare\API\GDS_GetRestrictions |
|
| 130 | */ |
|
| 131 | public function setStrRateCodeIDs($strRateCodeIDs) |
|
| 132 | { |
|
| 133 | $this->strRateCodeIDs = $strRateCodeIDs; |
|
| 134 | return $this; |
|
| 135 | } |
|
| 136 | ||
| 137 | /** |
|
| 138 | * @return string |
|
| 139 | */ |
|
| 140 | public function getStrRoomTypeIDs() |
|
| 141 | { |
|
| 142 | return $this->strRoomTypeIDs; |
|
| 143 | } |
|
| 144 | ||
| 145 | /** |
|
| 146 | * @param string $strRoomTypeIDs |
|
| 147 | * @return \Gueststream\PMS\IQWare\API\GDS_GetRestrictions |
|
| 148 | */ |
|
| 149 | public function setStrRoomTypeIDs($strRoomTypeIDs) |
|
| 150 | { |
|
| 151 | $this->strRoomTypeIDs = $strRoomTypeIDs; |
|
| 152 | return $this; |
|
| 153 | } |
|
| 154 | } |
|
| 155 | ||
| @@ 5-154 (lines=150) @@ | ||
| 2 | ||
| 3 | namespace Gueststream\PMS\IQWare\API; |
|
| 4 | ||
| 5 | class getRateElements |
|
| 6 | { |
|
| 7 | ||
| 8 | /** |
|
| 9 | * @var int $intGUID |
|
| 10 | */ |
|
| 11 | protected $intGUID = null; |
|
| 12 | ||
| 13 | /** |
|
| 14 | * @var int $intRateCodeID |
|
| 15 | */ |
|
| 16 | protected $intRateCodeID = null; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * @var \DateTime $arrDate |
|
| 20 | */ |
|
| 21 | protected $arrDate = null; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * @var \DateTime $depDate |
|
| 25 | */ |
|
| 26 | protected $depDate = null; |
|
| 27 | ||
| 28 | /** |
|
| 29 | * @var string $strISOLanguage |
|
| 30 | */ |
|
| 31 | protected $strISOLanguage = null; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @param int $intGUID |
|
| 35 | * @param int $intRateCodeID |
|
| 36 | * @param \DateTime $arrDate |
|
| 37 | * @param \DateTime $depDate |
|
| 38 | * @param string $strISOLanguage |
|
| 39 | */ |
|
| 40 | public function __construct($intGUID, $intRateCodeID, \DateTime $arrDate, \DateTime $depDate, $strISOLanguage) |
|
| 41 | { |
|
| 42 | $this->intGUID = $intGUID; |
|
| 43 | $this->intRateCodeID = $intRateCodeID; |
|
| 44 | $this->arrDate = $arrDate->format(\DateTime::ATOM); |
|
| 45 | $this->depDate = $depDate->format(\DateTime::ATOM); |
|
| 46 | $this->strISOLanguage = $strISOLanguage; |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * @return int |
|
| 51 | */ |
|
| 52 | public function getIntGUID() |
|
| 53 | { |
|
| 54 | return $this->intGUID; |
|
| 55 | } |
|
| 56 | ||
| 57 | /** |
|
| 58 | * @param int $intGUID |
|
| 59 | * @return \Gueststream\PMS\IQWare\API\getRateElements |
|
| 60 | */ |
|
| 61 | public function setIntGUID($intGUID) |
|
| 62 | { |
|
| 63 | $this->intGUID = $intGUID; |
|
| 64 | return $this; |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * @return int |
|
| 69 | */ |
|
| 70 | public function getIntRateCodeID() |
|
| 71 | { |
|
| 72 | return $this->intRateCodeID; |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * @param int $intRateCodeID |
|
| 77 | * @return \Gueststream\PMS\IQWare\API\getRateElements |
|
| 78 | */ |
|
| 79 | public function setIntRateCodeID($intRateCodeID) |
|
| 80 | { |
|
| 81 | $this->intRateCodeID = $intRateCodeID; |
|
| 82 | return $this; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * @return \DateTime |
|
| 87 | */ |
|
| 88 | public function getArrDate() |
|
| 89 | { |
|
| 90 | if ($this->arrDate == null) { |
|
| 91 | return null; |
|
| 92 | } else { |
|
| 93 | try { |
|
| 94 | return new \DateTime($this->arrDate); |
|
| 95 | } catch (\Exception $e) { |
|
| 96 | return false; |
|
| 97 | } |
|
| 98 | } |
|
| 99 | } |
|
| 100 | ||
| 101 | /** |
|
| 102 | * @param \DateTime $arrDate |
|
| 103 | * @return \Gueststream\PMS\IQWare\API\getRateElements |
|
| 104 | */ |
|
| 105 | public function setArrDate(\DateTime $arrDate) |
|
| 106 | { |
|
| 107 | $this->arrDate = $arrDate->format(\DateTime::ATOM); |
|
| 108 | return $this; |
|
| 109 | } |
|
| 110 | ||
| 111 | /** |
|
| 112 | * @return \DateTime |
|
| 113 | */ |
|
| 114 | public function getDepDate() |
|
| 115 | { |
|
| 116 | if ($this->depDate == null) { |
|
| 117 | return null; |
|
| 118 | } else { |
|
| 119 | try { |
|
| 120 | return new \DateTime($this->depDate); |
|
| 121 | } catch (\Exception $e) { |
|
| 122 | return false; |
|
| 123 | } |
|
| 124 | } |
|
| 125 | } |
|
| 126 | ||
| 127 | /** |
|
| 128 | * @param \DateTime $depDate |
|
| 129 | * @return \Gueststream\PMS\IQWare\API\getRateElements |
|
| 130 | */ |
|
| 131 | public function setDepDate(\DateTime $depDate) |
|
| 132 | { |
|
| 133 | $this->depDate = $depDate->format(\DateTime::ATOM); |
|
| 134 | return $this; |
|
| 135 | } |
|
| 136 | ||
| 137 | /** |
|
| 138 | * @return string |
|
| 139 | */ |
|
| 140 | public function getStrISOLanguage() |
|
| 141 | { |
|
| 142 | return $this->strISOLanguage; |
|
| 143 | } |
|
| 144 | ||
| 145 | /** |
|
| 146 | * @param string $strISOLanguage |
|
| 147 | * @return \Gueststream\PMS\IQWare\API\getRateElements |
|
| 148 | */ |
|
| 149 | public function setStrISOLanguage($strISOLanguage) |
|
| 150 | { |
|
| 151 | $this->strISOLanguage = $strISOLanguage; |
|
| 152 | return $this; |
|
| 153 | } |
|
| 154 | } |
|
| 155 | ||