1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Gueststream\PMS\IQWare\API; |
4
|
|
|
|
5
|
|
View Code Duplication |
class WebRes_updateAccountAddresses |
|
|
|
|
6
|
|
|
{ |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* @var dstAddresses $dstAddresses |
10
|
|
|
*/ |
11
|
|
|
protected $dstAddresses = null; |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* @var int $intGUID |
15
|
|
|
*/ |
16
|
|
|
protected $intGUID = null; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var int $intAccNo |
20
|
|
|
*/ |
21
|
|
|
protected $intAccNo = null; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var string $strPassword |
25
|
|
|
*/ |
26
|
|
|
protected $strPassword = null; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @param dstAddresses $dstAddresses |
30
|
|
|
* @param int $intGUID |
31
|
|
|
* @param int $intAccNo |
32
|
|
|
* @param string $strPassword |
33
|
|
|
*/ |
34
|
|
|
public function __construct($dstAddresses, $intGUID, $intAccNo, $strPassword) |
35
|
|
|
{ |
36
|
|
|
$this->dstAddresses = $dstAddresses; |
37
|
|
|
$this->intGUID = $intGUID; |
38
|
|
|
$this->intAccNo = $intAccNo; |
39
|
|
|
$this->strPassword = $strPassword; |
40
|
|
|
} |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @return dstAddresses |
44
|
|
|
*/ |
45
|
|
|
public function getDstAddresses() |
46
|
|
|
{ |
47
|
|
|
return $this->dstAddresses; |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @param dstAddresses $dstAddresses |
52
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_updateAccountAddresses |
53
|
|
|
*/ |
54
|
|
|
public function setDstAddresses($dstAddresses) |
55
|
|
|
{ |
56
|
|
|
$this->dstAddresses = $dstAddresses; |
57
|
|
|
return $this; |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @return int |
62
|
|
|
*/ |
63
|
|
|
public function getIntGUID() |
64
|
|
|
{ |
65
|
|
|
return $this->intGUID; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @param int $intGUID |
70
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_updateAccountAddresses |
71
|
|
|
*/ |
72
|
|
|
public function setIntGUID($intGUID) |
73
|
|
|
{ |
74
|
|
|
$this->intGUID = $intGUID; |
75
|
|
|
return $this; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @return int |
80
|
|
|
*/ |
81
|
|
|
public function getIntAccNo() |
82
|
|
|
{ |
83
|
|
|
return $this->intAccNo; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @param int $intAccNo |
88
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_updateAccountAddresses |
89
|
|
|
*/ |
90
|
|
|
public function setIntAccNo($intAccNo) |
91
|
|
|
{ |
92
|
|
|
$this->intAccNo = $intAccNo; |
93
|
|
|
return $this; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @return string |
98
|
|
|
*/ |
99
|
|
|
public function getStrPassword() |
100
|
|
|
{ |
101
|
|
|
return $this->strPassword; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @param string $strPassword |
106
|
|
|
* @return \Gueststream\PMS\IQWare\API\WebRes_updateAccountAddresses |
107
|
|
|
*/ |
108
|
|
|
public function setStrPassword($strPassword) |
109
|
|
|
{ |
110
|
|
|
$this->strPassword = $strPassword; |
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.