1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Gueststream\PMS\IQWare\API; |
4
|
|
|
|
5
|
|
View Code Duplication |
class WebRes_GetAllMembers |
|
|
|
|
6
|
|
|
{ |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* @var int $guid |
10
|
|
|
*/ |
11
|
|
|
protected $guid = null; |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* @var string $globalUsername |
15
|
|
|
*/ |
16
|
|
|
protected $globalUsername = null; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var string $globalPassword |
20
|
|
|
*/ |
21
|
|
|
protected $globalPassword = null; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var boolean $HasWebLogin |
25
|
|
|
*/ |
26
|
|
|
protected $HasWebLogin = null; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @param int $guid |
30
|
|
|
* @param string $globalUsername |
31
|
|
|
* @param string $globalPassword |
32
|
|
|
* @param boolean $HasWebLogin |
33
|
|
|
*/ |
34
|
|
|
public function __construct($guid, $globalUsername, $globalPassword, $HasWebLogin) |
35
|
|
|
{ |
36
|
|
|
$this->guid = $guid; |
37
|
|
|
$this->globalUsername = $globalUsername; |
38
|
|
|
$this->globalPassword = $globalPassword; |
39
|
|
|
$this->HasWebLogin = $HasWebLogin; |
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\WebRes_GetAllMembers |
53
|
|
|
*/ |
54
|
|
|
public function setGuid($guid) |
55
|
|
|
{ |
56
|
|
|
$this->guid = $guid; |
57
|
|
|
return $this; |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @return string |
62
|
|
|
*/ |
63
|
|
|
public function getGlobalUsername() |
64
|
|
|
{ |
65
|
|
|
return $this->globalUsername; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @param string $globalUsername |
70
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_GetAllMembers |
71
|
|
|
*/ |
72
|
|
|
public function setGlobalUsername($globalUsername) |
73
|
|
|
{ |
74
|
|
|
$this->globalUsername = $globalUsername; |
75
|
|
|
return $this; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @return string |
80
|
|
|
*/ |
81
|
|
|
public function getGlobalPassword() |
82
|
|
|
{ |
83
|
|
|
return $this->globalPassword; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @param string $globalPassword |
88
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_GetAllMembers |
89
|
|
|
*/ |
90
|
|
|
public function setGlobalPassword($globalPassword) |
91
|
|
|
{ |
92
|
|
|
$this->globalPassword = $globalPassword; |
93
|
|
|
return $this; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @return boolean |
98
|
|
|
*/ |
99
|
|
|
public function getHasWebLogin() |
100
|
|
|
{ |
101
|
|
|
return $this->HasWebLogin; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @param boolean $HasWebLogin |
106
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_GetAllMembers |
107
|
|
|
*/ |
108
|
|
|
public function setHasWebLogin($HasWebLogin) |
109
|
|
|
{ |
110
|
|
|
$this->HasWebLogin = $HasWebLogin; |
111
|
|
|
return $this; |
112
|
|
|
} |
113
|
|
|
} |
114
|
|
|
|
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.