Code Duplication    Length = 125-125 lines in 10 locations

src/API/GetRoomsAndSuitesAvailability.php 1 location

@@ 5-129 (lines=125) @@
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class GetRoomsAndSuitesAvailability
6
{
7
8
    /**
9
     * @var int $intGuid
10
     */
11
    protected $intGuid = null;
12
13
    /**
14
     * @var \DateTime $startdate
15
     */
16
    protected $startdate = null;
17
18
    /**
19
     * @var \DateTime $enddate
20
     */
21
    protected $enddate = null;
22
23
    /**
24
     * @var int $roomTypeID
25
     */
26
    protected $roomTypeID = null;
27
28
    /**
29
     * @param int $intGuid
30
     * @param \DateTime $startdate
31
     * @param \DateTime $enddate
32
     * @param int $roomTypeID
33
     */
34
    public function __construct($intGuid, \DateTime $startdate, \DateTime $enddate, $roomTypeID)
35
    {
36
        $this->intGuid = $intGuid;
37
        $this->startdate = $startdate->format(\DateTime::ATOM);
38
        $this->enddate = $enddate->format(\DateTime::ATOM);
39
        $this->roomTypeID = $roomTypeID;
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getIntGuid()
46
    {
47
        return $this->intGuid;
48
    }
49
50
    /**
51
     * @param int $intGuid
52
     * @return \Gueststream\PMS\IQWare\API\GetRoomsAndSuitesAvailability
53
     */
54
    public function setIntGuid($intGuid)
55
    {
56
        $this->intGuid = $intGuid;
57
        return $this;
58
    }
59
60
    /**
61
     * @return \DateTime
62
     */
63
    public function getStartdate()
64
    {
65
        if ($this->startdate == null) {
66
            return null;
67
        } else {
68
            try {
69
                return new \DateTime($this->startdate);
70
            } catch (\Exception $e) {
71
                return false;
72
            }
73
        }
74
    }
75
76
    /**
77
     * @param \DateTime $startdate
78
     * @return \Gueststream\PMS\IQWare\API\GetRoomsAndSuitesAvailability
79
     */
80
    public function setStartdate(\DateTime $startdate)
81
    {
82
        $this->startdate = $startdate->format(\DateTime::ATOM);
83
        return $this;
84
    }
85
86
    /**
87
     * @return \DateTime
88
     */
89
    public function getEnddate()
90
    {
91
        if ($this->enddate == null) {
92
            return null;
93
        } else {
94
            try {
95
                return new \DateTime($this->enddate);
96
            } catch (\Exception $e) {
97
                return false;
98
            }
99
        }
100
    }
101
102
    /**
103
     * @param \DateTime $enddate
104
     * @return \Gueststream\PMS\IQWare\API\GetRoomsAndSuitesAvailability
105
     */
106
    public function setEnddate(\DateTime $enddate)
107
    {
108
        $this->enddate = $enddate->format(\DateTime::ATOM);
109
        return $this;
110
    }
111
112
    /**
113
     * @return int
114
     */
115
    public function getRoomTypeID()
116
    {
117
        return $this->roomTypeID;
118
    }
119
120
    /**
121
     * @param int $roomTypeID
122
     * @return \Gueststream\PMS\IQWare\API\GetRoomsAndSuitesAvailability
123
     */
124
    public function setRoomTypeID($roomTypeID)
125
    {
126
        $this->roomTypeID = $roomTypeID;
127
        return $this;
128
    }
129
}
130

src/API/GetUnitAvailability.php 1 location

@@ 5-129 (lines=125) @@
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class GetUnitAvailability
6
{
7
8
    /**
9
     * @var int $iGuid
10
     */
11
    protected $iGuid = null;
12
13
    /**
14
     * @var int $ID_Room
15
     */
16
    protected $ID_Room = null;
17
18
    /**
19
     * @var \DateTime $StartDate
20
     */
21
    protected $StartDate = null;
22
23
    /**
24
     * @var \DateTime $EndDate
25
     */
26
    protected $EndDate = null;
27
28
    /**
29
     * @param int $iGuid
30
     * @param int $ID_Room
31
     * @param \DateTime $StartDate
32
     * @param \DateTime $EndDate
33
     */
34
    public function __construct($iGuid, $ID_Room, \DateTime $StartDate, \DateTime $EndDate)
35
    {
36
        $this->iGuid = $iGuid;
37
        $this->ID_Room = $ID_Room;
38
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
39
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getIGuid()
46
    {
47
        return $this->iGuid;
48
    }
49
50
    /**
51
     * @param int $iGuid
52
     * @return \Gueststream\PMS\IQWare\API\GetUnitAvailability
53
     */
54
    public function setIGuid($iGuid)
55
    {
56
        $this->iGuid = $iGuid;
57
        return $this;
58
    }
59
60
    /**
61
     * @return int
62
     */
63
    public function getID_Room()
64
    {
65
        return $this->ID_Room;
66
    }
67
68
    /**
69
     * @param int $ID_Room
70
     * @return \Gueststream\PMS\IQWare\API\GetUnitAvailability
71
     */
72
    public function setID_Room($ID_Room)
73
    {
74
        $this->ID_Room = $ID_Room;
75
        return $this;
76
    }
77
78
    /**
79
     * @return \DateTime
80
     */
81
    public function getStartDate()
82
    {
83
        if ($this->StartDate == null) {
84
            return null;
85
        } else {
86
            try {
87
                return new \DateTime($this->StartDate);
88
            } catch (\Exception $e) {
89
                return false;
90
            }
91
        }
92
    }
93
94
    /**
95
     * @param \DateTime $StartDate
96
     * @return \Gueststream\PMS\IQWare\API\GetUnitAvailability
97
     */
98
    public function setStartDate(\DateTime $StartDate)
99
    {
100
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
101
        return $this;
102
    }
103
104
    /**
105
     * @return \DateTime
106
     */
107
    public function getEndDate()
108
    {
109
        if ($this->EndDate == null) {
110
            return null;
111
        } else {
112
            try {
113
                return new \DateTime($this->EndDate);
114
            } catch (\Exception $e) {
115
                return false;
116
            }
117
        }
118
    }
119
120
    /**
121
     * @param \DateTime $EndDate
122
     * @return \Gueststream\PMS\IQWare\API\GetUnitAvailability
123
     */
124
    public function setEndDate(\DateTime $EndDate)
125
    {
126
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
127
        return $this;
128
    }
129
}
130

src/API/getUnitAvailabilityCalendar.php 1 location

@@ 5-129 (lines=125) @@
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class getUnitAvailabilityCalendar
6
{
7
8
    /**
9
     * @var int $guid
10
     */
11
    protected $guid = null;
12
13
    /**
14
     * @var int $ID_Room
15
     */
16
    protected $ID_Room = null;
17
18
    /**
19
     * @var \DateTime $ArrivalDate
20
     */
21
    protected $ArrivalDate = null;
22
23
    /**
24
     * @var \DateTime $DepartureDate
25
     */
26
    protected $DepartureDate = null;
27
28
    /**
29
     * @param int $guid
30
     * @param int $ID_Room
31
     * @param \DateTime $ArrivalDate
32
     * @param \DateTime $DepartureDate
33
     */
34
    public function __construct($guid, $ID_Room, \DateTime $ArrivalDate, \DateTime $DepartureDate)
35
    {
36
        $this->guid = $guid;
37
        $this->ID_Room = $ID_Room;
38
        $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM);
39
        $this->DepartureDate = $DepartureDate->format(\DateTime::ATOM);
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getGuid()
46
    {
47
        return $this->guid;
48
    }
49
50
    /**
51
     * @param int $guid
52
     * @return \Gueststream\PMS\IQWare\API\getUnitAvailabilityCalendar
53
     */
54
    public function setGuid($guid)
55
    {
56
        $this->guid = $guid;
57
        return $this;
58
    }
59
60
    /**
61
     * @return int
62
     */
63
    public function getID_Room()
64
    {
65
        return $this->ID_Room;
66
    }
67
68
    /**
69
     * @param int $ID_Room
70
     * @return \Gueststream\PMS\IQWare\API\getUnitAvailabilityCalendar
71
     */
72
    public function setID_Room($ID_Room)
73
    {
74
        $this->ID_Room = $ID_Room;
75
        return $this;
76
    }
77
78
    /**
79
     * @return \DateTime
80
     */
81
    public function getArrivalDate()
82
    {
83
        if ($this->ArrivalDate == null) {
84
            return null;
85
        } else {
86
            try {
87
                return new \DateTime($this->ArrivalDate);
88
            } catch (\Exception $e) {
89
                return false;
90
            }
91
        }
92
    }
93
94
    /**
95
     * @param \DateTime $ArrivalDate
96
     * @return \Gueststream\PMS\IQWare\API\getUnitAvailabilityCalendar
97
     */
98
    public function setArrivalDate(\DateTime $ArrivalDate)
99
    {
100
        $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM);
101
        return $this;
102
    }
103
104
    /**
105
     * @return \DateTime
106
     */
107
    public function getDepartureDate()
108
    {
109
        if ($this->DepartureDate == null) {
110
            return null;
111
        } else {
112
            try {
113
                return new \DateTime($this->DepartureDate);
114
            } catch (\Exception $e) {
115
                return false;
116
            }
117
        }
118
    }
119
120
    /**
121
     * @param \DateTime $DepartureDate
122
     * @return \Gueststream\PMS\IQWare\API\getUnitAvailabilityCalendar
123
     */
124
    public function setDepartureDate(\DateTime $DepartureDate)
125
    {
126
        $this->DepartureDate = $DepartureDate->format(\DateTime::ATOM);
127
        return $this;
128
    }
129
}
130

src/API/getUnitAvailabilityCalendarBreakdown.php 1 location

@@ 5-129 (lines=125) @@
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class getUnitAvailabilityCalendarBreakdown
6
{
7
8
    /**
9
     * @var int $guid
10
     */
11
    protected $guid = null;
12
13
    /**
14
     * @var int $ID_Room
15
     */
16
    protected $ID_Room = null;
17
18
    /**
19
     * @var \DateTime $ArrivalDate
20
     */
21
    protected $ArrivalDate = null;
22
23
    /**
24
     * @var \DateTime $DepartureDate
25
     */
26
    protected $DepartureDate = null;
27
28
    /**
29
     * @param int $guid
30
     * @param int $ID_Room
31
     * @param \DateTime $ArrivalDate
32
     * @param \DateTime $DepartureDate
33
     */
34
    public function __construct($guid, $ID_Room, \DateTime $ArrivalDate, \DateTime $DepartureDate)
35
    {
36
        $this->guid = $guid;
37
        $this->ID_Room = $ID_Room;
38
        $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM);
39
        $this->DepartureDate = $DepartureDate->format(\DateTime::ATOM);
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getGuid()
46
    {
47
        return $this->guid;
48
    }
49
50
    /**
51
     * @param int $guid
52
     * @return \Gueststream\PMS\IQWare\API\getUnitAvailabilityCalendarBreakdown
53
     */
54
    public function setGuid($guid)
55
    {
56
        $this->guid = $guid;
57
        return $this;
58
    }
59
60
    /**
61
     * @return int
62
     */
63
    public function getID_Room()
64
    {
65
        return $this->ID_Room;
66
    }
67
68
    /**
69
     * @param int $ID_Room
70
     * @return \Gueststream\PMS\IQWare\API\getUnitAvailabilityCalendarBreakdown
71
     */
72
    public function setID_Room($ID_Room)
73
    {
74
        $this->ID_Room = $ID_Room;
75
        return $this;
76
    }
77
78
    /**
79
     * @return \DateTime
80
     */
81
    public function getArrivalDate()
82
    {
83
        if ($this->ArrivalDate == null) {
84
            return null;
85
        } else {
86
            try {
87
                return new \DateTime($this->ArrivalDate);
88
            } catch (\Exception $e) {
89
                return false;
90
            }
91
        }
92
    }
93
94
    /**
95
     * @param \DateTime $ArrivalDate
96
     * @return \Gueststream\PMS\IQWare\API\getUnitAvailabilityCalendarBreakdown
97
     */
98
    public function setArrivalDate(\DateTime $ArrivalDate)
99
    {
100
        $this->ArrivalDate = $ArrivalDate->format(\DateTime::ATOM);
101
        return $this;
102
    }
103
104
    /**
105
     * @return \DateTime
106
     */
107
    public function getDepartureDate()
108
    {
109
        if ($this->DepartureDate == null) {
110
            return null;
111
        } else {
112
            try {
113
                return new \DateTime($this->DepartureDate);
114
            } catch (\Exception $e) {
115
                return false;
116
            }
117
        }
118
    }
119
120
    /**
121
     * @param \DateTime $DepartureDate
122
     * @return \Gueststream\PMS\IQWare\API\getUnitAvailabilityCalendarBreakdown
123
     */
124
    public function setDepartureDate(\DateTime $DepartureDate)
125
    {
126
        $this->DepartureDate = $DepartureDate->format(\DateTime::ATOM);
127
        return $this;
128
    }
129
}
130

src/API/getUnitAvailabilityForCalendar.php 1 location

@@ 5-129 (lines=125) @@
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class getUnitAvailabilityForCalendar
6
{
7
8
    /**
9
     * @var int $guid
10
     */
11
    protected $guid = null;
12
13
    /**
14
     * @var int $ID_Room
15
     */
16
    protected $ID_Room = null;
17
18
    /**
19
     * @var \DateTime $StartDate
20
     */
21
    protected $StartDate = null;
22
23
    /**
24
     * @var \DateTime $EndDate
25
     */
26
    protected $EndDate = null;
27
28
    /**
29
     * @param int $guid
30
     * @param int $ID_Room
31
     * @param \DateTime $StartDate
32
     * @param \DateTime $EndDate
33
     */
34
    public function __construct($guid, $ID_Room, \DateTime $StartDate, \DateTime $EndDate)
35
    {
36
        $this->guid = $guid;
37
        $this->ID_Room = $ID_Room;
38
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
39
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getGuid()
46
    {
47
        return $this->guid;
48
    }
49
50
    /**
51
     * @param int $guid
52
     * @return \Gueststream\PMS\IQWare\API\getUnitAvailabilityForCalendar
53
     */
54
    public function setGuid($guid)
55
    {
56
        $this->guid = $guid;
57
        return $this;
58
    }
59
60
    /**
61
     * @return int
62
     */
63
    public function getID_Room()
64
    {
65
        return $this->ID_Room;
66
    }
67
68
    /**
69
     * @param int $ID_Room
70
     * @return \Gueststream\PMS\IQWare\API\getUnitAvailabilityForCalendar
71
     */
72
    public function setID_Room($ID_Room)
73
    {
74
        $this->ID_Room = $ID_Room;
75
        return $this;
76
    }
77
78
    /**
79
     * @return \DateTime
80
     */
81
    public function getStartDate()
82
    {
83
        if ($this->StartDate == null) {
84
            return null;
85
        } else {
86
            try {
87
                return new \DateTime($this->StartDate);
88
            } catch (\Exception $e) {
89
                return false;
90
            }
91
        }
92
    }
93
94
    /**
95
     * @param \DateTime $StartDate
96
     * @return \Gueststream\PMS\IQWare\API\getUnitAvailabilityForCalendar
97
     */
98
    public function setStartDate(\DateTime $StartDate)
99
    {
100
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
101
        return $this;
102
    }
103
104
    /**
105
     * @return \DateTime
106
     */
107
    public function getEndDate()
108
    {
109
        if ($this->EndDate == null) {
110
            return null;
111
        } else {
112
            try {
113
                return new \DateTime($this->EndDate);
114
            } catch (\Exception $e) {
115
                return false;
116
            }
117
        }
118
    }
119
120
    /**
121
     * @param \DateTime $EndDate
122
     * @return \Gueststream\PMS\IQWare\API\getUnitAvailabilityForCalendar
123
     */
124
    public function setEndDate(\DateTime $EndDate)
125
    {
126
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
127
        return $this;
128
    }
129
}
130

src/API/GetUnitsAvailability.php 1 location

@@ 5-129 (lines=125) @@
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class GetUnitsAvailability
6
{
7
8
    /**
9
     * @var int $iGuid
10
     */
11
    protected $iGuid = null;
12
13
    /**
14
     * @var \DateTime $StartDate
15
     */
16
    protected $StartDate = null;
17
18
    /**
19
     * @var \DateTime $EndDate
20
     */
21
    protected $EndDate = null;
22
23
    /**
24
     * @var boolean $ShowOnlyUnitsAvailable
25
     */
26
    protected $ShowOnlyUnitsAvailable = null;
27
28
    /**
29
     * @param int $iGuid
30
     * @param \DateTime $StartDate
31
     * @param \DateTime $EndDate
32
     * @param boolean $ShowOnlyUnitsAvailable
33
     */
34
    public function __construct($iGuid, \DateTime $StartDate, \DateTime $EndDate, $ShowOnlyUnitsAvailable)
35
    {
36
        $this->iGuid = $iGuid;
37
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
38
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
39
        $this->ShowOnlyUnitsAvailable = $ShowOnlyUnitsAvailable;
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getIGuid()
46
    {
47
        return $this->iGuid;
48
    }
49
50
    /**
51
     * @param int $iGuid
52
     * @return \Gueststream\PMS\IQWare\API\GetUnitsAvailability
53
     */
54
    public function setIGuid($iGuid)
55
    {
56
        $this->iGuid = $iGuid;
57
        return $this;
58
    }
59
60
    /**
61
     * @return \DateTime
62
     */
63
    public function getStartDate()
64
    {
65
        if ($this->StartDate == null) {
66
            return null;
67
        } else {
68
            try {
69
                return new \DateTime($this->StartDate);
70
            } catch (\Exception $e) {
71
                return false;
72
            }
73
        }
74
    }
75
76
    /**
77
     * @param \DateTime $StartDate
78
     * @return \Gueststream\PMS\IQWare\API\GetUnitsAvailability
79
     */
80
    public function setStartDate(\DateTime $StartDate)
81
    {
82
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
83
        return $this;
84
    }
85
86
    /**
87
     * @return \DateTime
88
     */
89
    public function getEndDate()
90
    {
91
        if ($this->EndDate == null) {
92
            return null;
93
        } else {
94
            try {
95
                return new \DateTime($this->EndDate);
96
            } catch (\Exception $e) {
97
                return false;
98
            }
99
        }
100
    }
101
102
    /**
103
     * @param \DateTime $EndDate
104
     * @return \Gueststream\PMS\IQWare\API\GetUnitsAvailability
105
     */
106
    public function setEndDate(\DateTime $EndDate)
107
    {
108
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
109
        return $this;
110
    }
111
112
    /**
113
     * @return boolean
114
     */
115
    public function getShowOnlyUnitsAvailable()
116
    {
117
        return $this->ShowOnlyUnitsAvailable;
118
    }
119
120
    /**
121
     * @param boolean $ShowOnlyUnitsAvailable
122
     * @return \Gueststream\PMS\IQWare\API\GetUnitsAvailability
123
     */
124
    public function setShowOnlyUnitsAvailable($ShowOnlyUnitsAvailable)
125
    {
126
        $this->ShowOnlyUnitsAvailable = $ShowOnlyUnitsAvailable;
127
        return $this;
128
    }
129
}
130

src/API/getUnitsAvailabilityCalendar.php 1 location

@@ 5-129 (lines=125) @@
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class getUnitsAvailabilityCalendar
6
{
7
8
    /**
9
     * @var int $iGuid
10
     */
11
    protected $iGuid = null;
12
13
    /**
14
     * @var \DateTime $StartDate
15
     */
16
    protected $StartDate = null;
17
18
    /**
19
     * @var \DateTime $EndDate
20
     */
21
    protected $EndDate = null;
22
23
    /**
24
     * @var string $UnitIds
25
     */
26
    protected $UnitIds = null;
27
28
    /**
29
     * @param int $iGuid
30
     * @param \DateTime $StartDate
31
     * @param \DateTime $EndDate
32
     * @param string $UnitIds
33
     */
34
    public function __construct($iGuid, \DateTime $StartDate, \DateTime $EndDate, $UnitIds)
35
    {
36
        $this->iGuid = $iGuid;
37
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
38
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
39
        $this->UnitIds = $UnitIds;
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getIGuid()
46
    {
47
        return $this->iGuid;
48
    }
49
50
    /**
51
     * @param int $iGuid
52
     * @return \Gueststream\PMS\IQWare\API\getUnitsAvailabilityCalendar
53
     */
54
    public function setIGuid($iGuid)
55
    {
56
        $this->iGuid = $iGuid;
57
        return $this;
58
    }
59
60
    /**
61
     * @return \DateTime
62
     */
63
    public function getStartDate()
64
    {
65
        if ($this->StartDate == null) {
66
            return null;
67
        } else {
68
            try {
69
                return new \DateTime($this->StartDate);
70
            } catch (\Exception $e) {
71
                return false;
72
            }
73
        }
74
    }
75
76
    /**
77
     * @param \DateTime $StartDate
78
     * @return \Gueststream\PMS\IQWare\API\getUnitsAvailabilityCalendar
79
     */
80
    public function setStartDate(\DateTime $StartDate)
81
    {
82
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
83
        return $this;
84
    }
85
86
    /**
87
     * @return \DateTime
88
     */
89
    public function getEndDate()
90
    {
91
        if ($this->EndDate == null) {
92
            return null;
93
        } else {
94
            try {
95
                return new \DateTime($this->EndDate);
96
            } catch (\Exception $e) {
97
                return false;
98
            }
99
        }
100
    }
101
102
    /**
103
     * @param \DateTime $EndDate
104
     * @return \Gueststream\PMS\IQWare\API\getUnitsAvailabilityCalendar
105
     */
106
    public function setEndDate(\DateTime $EndDate)
107
    {
108
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
109
        return $this;
110
    }
111
112
    /**
113
     * @return string
114
     */
115
    public function getUnitIds()
116
    {
117
        return $this->UnitIds;
118
    }
119
120
    /**
121
     * @param string $UnitIds
122
     * @return \Gueststream\PMS\IQWare\API\getUnitsAvailabilityCalendar
123
     */
124
    public function setUnitIds($UnitIds)
125
    {
126
        $this->UnitIds = $UnitIds;
127
        return $this;
128
    }
129
}
130

src/API/GetUnitStatements.php 1 location

@@ 5-129 (lines=125) @@
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class GetUnitStatements
6
{
7
8
    /**
9
     * @var int $intGUID
10
     */
11
    protected $intGUID = null;
12
13
    /**
14
     * @var int $ID_Room
15
     */
16
    protected $ID_Room = null;
17
18
    /**
19
     * @var \DateTime $StartDate
20
     */
21
    protected $StartDate = null;
22
23
    /**
24
     * @var \DateTime $EndDate
25
     */
26
    protected $EndDate = null;
27
28
    /**
29
     * @param int $intGUID
30
     * @param int $ID_Room
31
     * @param \DateTime $StartDate
32
     * @param \DateTime $EndDate
33
     */
34
    public function __construct($intGUID, $ID_Room, \DateTime $StartDate, \DateTime $EndDate)
35
    {
36
        $this->intGUID = $intGUID;
37
        $this->ID_Room = $ID_Room;
38
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
39
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getIntGUID()
46
    {
47
        return $this->intGUID;
48
    }
49
50
    /**
51
     * @param int $intGUID
52
     * @return \Gueststream\PMS\IQWare\API\GetUnitStatements
53
     */
54
    public function setIntGUID($intGUID)
55
    {
56
        $this->intGUID = $intGUID;
57
        return $this;
58
    }
59
60
    /**
61
     * @return int
62
     */
63
    public function getID_Room()
64
    {
65
        return $this->ID_Room;
66
    }
67
68
    /**
69
     * @param int $ID_Room
70
     * @return \Gueststream\PMS\IQWare\API\GetUnitStatements
71
     */
72
    public function setID_Room($ID_Room)
73
    {
74
        $this->ID_Room = $ID_Room;
75
        return $this;
76
    }
77
78
    /**
79
     * @return \DateTime
80
     */
81
    public function getStartDate()
82
    {
83
        if ($this->StartDate == null) {
84
            return null;
85
        } else {
86
            try {
87
                return new \DateTime($this->StartDate);
88
            } catch (\Exception $e) {
89
                return false;
90
            }
91
        }
92
    }
93
94
    /**
95
     * @param \DateTime $StartDate
96
     * @return \Gueststream\PMS\IQWare\API\GetUnitStatements
97
     */
98
    public function setStartDate(\DateTime $StartDate)
99
    {
100
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
101
        return $this;
102
    }
103
104
    /**
105
     * @return \DateTime
106
     */
107
    public function getEndDate()
108
    {
109
        if ($this->EndDate == null) {
110
            return null;
111
        } else {
112
            try {
113
                return new \DateTime($this->EndDate);
114
            } catch (\Exception $e) {
115
                return false;
116
            }
117
        }
118
    }
119
120
    /**
121
     * @param \DateTime $EndDate
122
     * @return \Gueststream\PMS\IQWare\API\GetUnitStatements
123
     */
124
    public function setEndDate(\DateTime $EndDate)
125
    {
126
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
127
        return $this;
128
    }
129
}
130

src/API/GetUnitWithoutAvailability.php 1 location

@@ 5-129 (lines=125) @@
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class GetUnitWithoutAvailability
6
{
7
8
    /**
9
     * @var int $iGuid
10
     */
11
    protected $iGuid = null;
12
13
    /**
14
     * @var int $ID_Room
15
     */
16
    protected $ID_Room = null;
17
18
    /**
19
     * @var \DateTime $StartDate
20
     */
21
    protected $StartDate = null;
22
23
    /**
24
     * @var \DateTime $EndDate
25
     */
26
    protected $EndDate = null;
27
28
    /**
29
     * @param int $iGuid
30
     * @param int $ID_Room
31
     * @param \DateTime $StartDate
32
     * @param \DateTime $EndDate
33
     */
34
    public function __construct($iGuid, $ID_Room, \DateTime $StartDate, \DateTime $EndDate)
35
    {
36
        $this->iGuid = $iGuid;
37
        $this->ID_Room = $ID_Room;
38
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
39
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getIGuid()
46
    {
47
        return $this->iGuid;
48
    }
49
50
    /**
51
     * @param int $iGuid
52
     * @return \Gueststream\PMS\IQWare\API\GetUnitWithoutAvailability
53
     */
54
    public function setIGuid($iGuid)
55
    {
56
        $this->iGuid = $iGuid;
57
        return $this;
58
    }
59
60
    /**
61
     * @return int
62
     */
63
    public function getID_Room()
64
    {
65
        return $this->ID_Room;
66
    }
67
68
    /**
69
     * @param int $ID_Room
70
     * @return \Gueststream\PMS\IQWare\API\GetUnitWithoutAvailability
71
     */
72
    public function setID_Room($ID_Room)
73
    {
74
        $this->ID_Room = $ID_Room;
75
        return $this;
76
    }
77
78
    /**
79
     * @return \DateTime
80
     */
81
    public function getStartDate()
82
    {
83
        if ($this->StartDate == null) {
84
            return null;
85
        } else {
86
            try {
87
                return new \DateTime($this->StartDate);
88
            } catch (\Exception $e) {
89
                return false;
90
            }
91
        }
92
    }
93
94
    /**
95
     * @param \DateTime $StartDate
96
     * @return \Gueststream\PMS\IQWare\API\GetUnitWithoutAvailability
97
     */
98
    public function setStartDate(\DateTime $StartDate)
99
    {
100
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
101
        return $this;
102
    }
103
104
    /**
105
     * @return \DateTime
106
     */
107
    public function getEndDate()
108
    {
109
        if ($this->EndDate == null) {
110
            return null;
111
        } else {
112
            try {
113
                return new \DateTime($this->EndDate);
114
            } catch (\Exception $e) {
115
                return false;
116
            }
117
        }
118
    }
119
120
    /**
121
     * @param \DateTime $EndDate
122
     * @return \Gueststream\PMS\IQWare\API\GetUnitWithoutAvailability
123
     */
124
    public function setEndDate(\DateTime $EndDate)
125
    {
126
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
127
        return $this;
128
    }
129
}
130

src/API/IsUnitAvailableForStay.php 1 location

@@ 5-129 (lines=125) @@
2
3
namespace Gueststream\PMS\IQWare\API;
4
5
class IsUnitAvailableForStay
6
{
7
8
    /**
9
     * @var int $guid
10
     */
11
    protected $guid = null;
12
13
    /**
14
     * @var int $ID_Room
15
     */
16
    protected $ID_Room = null;
17
18
    /**
19
     * @var \DateTime $dtArrival
20
     */
21
    protected $dtArrival = null;
22
23
    /**
24
     * @var \DateTime $dtDeparture
25
     */
26
    protected $dtDeparture = null;
27
28
    /**
29
     * @param int $guid
30
     * @param int $ID_Room
31
     * @param \DateTime $dtArrival
32
     * @param \DateTime $dtDeparture
33
     */
34
    public function __construct($guid, $ID_Room, \DateTime $dtArrival, \DateTime $dtDeparture)
35
    {
36
        $this->guid = $guid;
37
        $this->ID_Room = $ID_Room;
38
        $this->dtArrival = $dtArrival->format(\DateTime::ATOM);
39
        $this->dtDeparture = $dtDeparture->format(\DateTime::ATOM);
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getGuid()
46
    {
47
        return $this->guid;
48
    }
49
50
    /**
51
     * @param int $guid
52
     * @return \Gueststream\PMS\IQWare\API\IsUnitAvailableForStay
53
     */
54
    public function setGuid($guid)
55
    {
56
        $this->guid = $guid;
57
        return $this;
58
    }
59
60
    /**
61
     * @return int
62
     */
63
    public function getID_Room()
64
    {
65
        return $this->ID_Room;
66
    }
67
68
    /**
69
     * @param int $ID_Room
70
     * @return \Gueststream\PMS\IQWare\API\IsUnitAvailableForStay
71
     */
72
    public function setID_Room($ID_Room)
73
    {
74
        $this->ID_Room = $ID_Room;
75
        return $this;
76
    }
77
78
    /**
79
     * @return \DateTime
80
     */
81
    public function getDtArrival()
82
    {
83
        if ($this->dtArrival == null) {
84
            return null;
85
        } else {
86
            try {
87
                return new \DateTime($this->dtArrival);
88
            } catch (\Exception $e) {
89
                return false;
90
            }
91
        }
92
    }
93
94
    /**
95
     * @param \DateTime $dtArrival
96
     * @return \Gueststream\PMS\IQWare\API\IsUnitAvailableForStay
97
     */
98
    public function setDtArrival(\DateTime $dtArrival)
99
    {
100
        $this->dtArrival = $dtArrival->format(\DateTime::ATOM);
101
        return $this;
102
    }
103
104
    /**
105
     * @return \DateTime
106
     */
107
    public function getDtDeparture()
108
    {
109
        if ($this->dtDeparture == null) {
110
            return null;
111
        } else {
112
            try {
113
                return new \DateTime($this->dtDeparture);
114
            } catch (\Exception $e) {
115
                return false;
116
            }
117
        }
118
    }
119
120
    /**
121
     * @param \DateTime $dtDeparture
122
     * @return \Gueststream\PMS\IQWare\API\IsUnitAvailableForStay
123
     */
124
    public function setDtDeparture(\DateTime $dtDeparture)
125
    {
126
        $this->dtDeparture = $dtDeparture->format(\DateTime::ATOM);
127
        return $this;
128
    }
129
}
130