| @@ 5-94 (lines=90) @@ | ||
| 2 | ||
| 3 | namespace Gueststream\PMS\IQWare\API; |
|
| 4 | ||
| 5 | class cPersonCountDaily |
|
| 6 | { |
|
| 7 | ||
| 8 | /** |
|
| 9 | * @var \DateTime $Date |
|
| 10 | */ |
|
| 11 | protected $Date = null; |
|
| 12 | ||
| 13 | /** |
|
| 14 | * @var int $NumberOfGuests |
|
| 15 | */ |
|
| 16 | protected $NumberOfGuests = null; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * @var ArrayOfInt $ChildrenAges |
|
| 20 | */ |
|
| 21 | protected $ChildrenAges = null; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * @param \DateTime $Date |
|
| 25 | * @param int $NumberOfGuests |
|
| 26 | */ |
|
| 27 | public function __construct(\DateTime $Date, $NumberOfGuests) |
|
| 28 | { |
|
| 29 | $this->Date = $Date->format(\DateTime::ATOM); |
|
| 30 | $this->NumberOfGuests = $NumberOfGuests; |
|
| 31 | } |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @return \DateTime |
|
| 35 | */ |
|
| 36 | public function getDate() |
|
| 37 | { |
|
| 38 | if ($this->Date == null) { |
|
| 39 | return null; |
|
| 40 | } else { |
|
| 41 | try { |
|
| 42 | return new \DateTime($this->Date); |
|
| 43 | } catch (\Exception $e) { |
|
| 44 | return false; |
|
| 45 | } |
|
| 46 | } |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * @param \DateTime $Date |
|
| 51 | * @return \Gueststream\PMS\IQWare\API\cPersonCountDaily |
|
| 52 | */ |
|
| 53 | public function setDate(\DateTime $Date) |
|
| 54 | { |
|
| 55 | $this->Date = $Date->format(\DateTime::ATOM); |
|
| 56 | return $this; |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * @return int |
|
| 61 | */ |
|
| 62 | public function getNumberOfGuests() |
|
| 63 | { |
|
| 64 | return $this->NumberOfGuests; |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * @param int $NumberOfGuests |
|
| 69 | * @return \Gueststream\PMS\IQWare\API\cPersonCountDaily |
|
| 70 | */ |
|
| 71 | public function setNumberOfGuests($NumberOfGuests) |
|
| 72 | { |
|
| 73 | $this->NumberOfGuests = $NumberOfGuests; |
|
| 74 | return $this; |
|
| 75 | } |
|
| 76 | ||
| 77 | /** |
|
| 78 | * @return ArrayOfInt |
|
| 79 | */ |
|
| 80 | public function getChildrenAges() |
|
| 81 | { |
|
| 82 | return $this->ChildrenAges; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * @param ArrayOfInt $ChildrenAges |
|
| 87 | * @return \Gueststream\PMS\IQWare\API\cPersonCountDaily |
|
| 88 | */ |
|
| 89 | public function setChildrenAges($ChildrenAges) |
|
| 90 | { |
|
| 91 | $this->ChildrenAges = $ChildrenAges; |
|
| 92 | return $this; |
|
| 93 | } |
|
| 94 | } |
|
| 95 | ||
| @@ 5-96 (lines=92) @@ | ||
| 2 | ||
| 3 | namespace Gueststream\PMS\IQWare\API; |
|
| 4 | ||
| 5 | class Detail |
|
| 6 | { |
|
| 7 | ||
| 8 | /** |
|
| 9 | * @var \DateTime $Date |
|
| 10 | */ |
|
| 11 | protected $Date = null; |
|
| 12 | ||
| 13 | /** |
|
| 14 | * @var float $Amount |
|
| 15 | */ |
|
| 16 | protected $Amount = null; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * @var boolean $IsPecent |
|
| 20 | */ |
|
| 21 | protected $IsPecent = null; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * @param \DateTime $Date |
|
| 25 | * @param float $Amount |
|
| 26 | * @param boolean $IsPecent |
|
| 27 | */ |
|
| 28 | public function __construct(\DateTime $Date, $Amount, $IsPecent) |
|
| 29 | { |
|
| 30 | $this->Date = $Date->format(\DateTime::ATOM); |
|
| 31 | $this->Amount = $Amount; |
|
| 32 | $this->IsPecent = $IsPecent; |
|
| 33 | } |
|
| 34 | ||
| 35 | /** |
|
| 36 | * @return \DateTime |
|
| 37 | */ |
|
| 38 | public function getDate() |
|
| 39 | { |
|
| 40 | if ($this->Date == null) { |
|
| 41 | return null; |
|
| 42 | } else { |
|
| 43 | try { |
|
| 44 | return new \DateTime($this->Date); |
|
| 45 | } catch (\Exception $e) { |
|
| 46 | return false; |
|
| 47 | } |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| 51 | /** |
|
| 52 | * @param \DateTime $Date |
|
| 53 | * @return \Gueststream\PMS\IQWare\API\Detail |
|
| 54 | */ |
|
| 55 | public function setDate(\DateTime $Date) |
|
| 56 | { |
|
| 57 | $this->Date = $Date->format(\DateTime::ATOM); |
|
| 58 | return $this; |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * @return float |
|
| 63 | */ |
|
| 64 | public function getAmount() |
|
| 65 | { |
|
| 66 | return $this->Amount; |
|
| 67 | } |
|
| 68 | ||
| 69 | /** |
|
| 70 | * @param float $Amount |
|
| 71 | * @return \Gueststream\PMS\IQWare\API\Detail |
|
| 72 | */ |
|
| 73 | public function setAmount($Amount) |
|
| 74 | { |
|
| 75 | $this->Amount = $Amount; |
|
| 76 | return $this; |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * @return boolean |
|
| 81 | */ |
|
| 82 | public function getIsPecent() |
|
| 83 | { |
|
| 84 | return $this->IsPecent; |
|
| 85 | } |
|
| 86 | ||
| 87 | /** |
|
| 88 | * @param boolean $IsPecent |
|
| 89 | * @return \Gueststream\PMS\IQWare\API\Detail |
|
| 90 | */ |
|
| 91 | public function setIsPecent($IsPecent) |
|
| 92 | { |
|
| 93 | $this->IsPecent = $IsPecent; |
|
| 94 | return $this; |
|
| 95 | } |
|
| 96 | } |
|
| 97 | ||
| @@ 5-96 (lines=92) @@ | ||
| 2 | ||
| 3 | namespace Gueststream\PMS\IQWare\API; |
|
| 4 | ||
| 5 | class SpecialOfferByDay |
|
| 6 | { |
|
| 7 | ||
| 8 | /** |
|
| 9 | * @var \DateTime $TheDate |
|
| 10 | */ |
|
| 11 | protected $TheDate = null; |
|
| 12 | ||
| 13 | /** |
|
| 14 | * @var int $ID_Code |
|
| 15 | */ |
|
| 16 | protected $ID_Code = null; |
|
| 17 | ||
| 18 | /** |
|
| 19 | * @var float $Amount |
|
| 20 | */ |
|
| 21 | protected $Amount = null; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * @param \DateTime $TheDate |
|
| 25 | * @param int $ID_Code |
|
| 26 | * @param float $Amount |
|
| 27 | */ |
|
| 28 | public function __construct(\DateTime $TheDate, $ID_Code, $Amount) |
|
| 29 | { |
|
| 30 | $this->TheDate = $TheDate->format(\DateTime::ATOM); |
|
| 31 | $this->ID_Code = $ID_Code; |
|
| 32 | $this->Amount = $Amount; |
|
| 33 | } |
|
| 34 | ||
| 35 | /** |
|
| 36 | * @return \DateTime |
|
| 37 | */ |
|
| 38 | public function getTheDate() |
|
| 39 | { |
|
| 40 | if ($this->TheDate == null) { |
|
| 41 | return null; |
|
| 42 | } else { |
|
| 43 | try { |
|
| 44 | return new \DateTime($this->TheDate); |
|
| 45 | } catch (\Exception $e) { |
|
| 46 | return false; |
|
| 47 | } |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| 51 | /** |
|
| 52 | * @param \DateTime $TheDate |
|
| 53 | * @return \Gueststream\PMS\IQWare\API\SpecialOfferByDay |
|
| 54 | */ |
|
| 55 | public function setTheDate(\DateTime $TheDate) |
|
| 56 | { |
|
| 57 | $this->TheDate = $TheDate->format(\DateTime::ATOM); |
|
| 58 | return $this; |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * @return int |
|
| 63 | */ |
|
| 64 | public function getID_Code() |
|
| 65 | { |
|
| 66 | return $this->ID_Code; |
|
| 67 | } |
|
| 68 | ||
| 69 | /** |
|
| 70 | * @param int $ID_Code |
|
| 71 | * @return \Gueststream\PMS\IQWare\API\SpecialOfferByDay |
|
| 72 | */ |
|
| 73 | public function setID_Code($ID_Code) |
|
| 74 | { |
|
| 75 | $this->ID_Code = $ID_Code; |
|
| 76 | return $this; |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * @return float |
|
| 81 | */ |
|
| 82 | public function getAmount() |
|
| 83 | { |
|
| 84 | return $this->Amount; |
|
| 85 | } |
|
| 86 | ||
| 87 | /** |
|
| 88 | * @param float $Amount |
|
| 89 | * @return \Gueststream\PMS\IQWare\API\SpecialOfferByDay |
|
| 90 | */ |
|
| 91 | public function setAmount($Amount) |
|
| 92 | { |
|
| 93 | $this->Amount = $Amount; |
|
| 94 | return $this; |
|
| 95 | } |
|
| 96 | } |
|
| 97 | ||