1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Gueststream\PMS\IQWare\API; |
4
|
|
|
|
5
|
|
View Code Duplication |
class WebRes_GetGroupInfos |
|
|
|
|
6
|
|
|
{ |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* @var int $guid |
10
|
|
|
*/ |
11
|
|
|
protected $guid = 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 string $strISOLanguageCode |
25
|
|
|
*/ |
26
|
|
|
protected $strISOLanguageCode = null; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @param int $guid |
30
|
|
|
* @param string $userName |
31
|
|
|
* @param string $password |
32
|
|
|
* @param string $strISOLanguageCode |
33
|
|
|
*/ |
34
|
|
|
public function __construct($guid, $userName, $password, $strISOLanguageCode) |
35
|
|
|
{ |
36
|
|
|
$this->guid = $guid; |
37
|
|
|
$this->userName = $userName; |
38
|
|
|
$this->password = $password; |
39
|
|
|
$this->strISOLanguageCode = $strISOLanguageCode; |
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_GetGroupInfos |
53
|
|
|
*/ |
54
|
|
|
public function setGuid($guid) |
55
|
|
|
{ |
56
|
|
|
$this->guid = $guid; |
57
|
|
|
return $this; |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @return string |
62
|
|
|
*/ |
63
|
|
|
public function getUserName() |
64
|
|
|
{ |
65
|
|
|
return $this->userName; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @param string $userName |
70
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupInfos |
71
|
|
|
*/ |
72
|
|
|
public function setUserName($userName) |
73
|
|
|
{ |
74
|
|
|
$this->userName = $userName; |
75
|
|
|
return $this; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @return string |
80
|
|
|
*/ |
81
|
|
|
public function getPassword() |
82
|
|
|
{ |
83
|
|
|
return $this->password; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @param string $password |
88
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupInfos |
89
|
|
|
*/ |
90
|
|
|
public function setPassword($password) |
91
|
|
|
{ |
92
|
|
|
$this->password = $password; |
93
|
|
|
return $this; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @return string |
98
|
|
|
*/ |
99
|
|
|
public function getStrISOLanguageCode() |
100
|
|
|
{ |
101
|
|
|
return $this->strISOLanguageCode; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @param string $strISOLanguageCode |
106
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupInfos |
107
|
|
|
*/ |
108
|
|
|
public function setStrISOLanguageCode($strISOLanguageCode) |
109
|
|
|
{ |
110
|
|
|
$this->strISOLanguageCode = $strISOLanguageCode; |
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.