|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Gueststream\PMS\IQWare\API; |
|
4
|
|
|
|
|
5
|
|
|
class cCpyAccount |
|
6
|
|
|
{ |
|
7
|
|
|
|
|
8
|
|
|
/** |
|
9
|
|
|
* @var \DateTime $CreationDate |
|
10
|
|
|
*/ |
|
11
|
|
|
protected $CreationDate = null; |
|
12
|
|
|
|
|
13
|
|
|
/** |
|
14
|
|
|
* @var boolean $IsAR |
|
15
|
|
|
*/ |
|
16
|
|
|
protected $IsAR = null; |
|
17
|
|
|
|
|
18
|
|
|
/** |
|
19
|
|
|
* @var boolean $IsCashOnly |
|
20
|
|
|
*/ |
|
21
|
|
|
protected $IsCashOnly = null; |
|
22
|
|
|
|
|
23
|
|
|
/** |
|
24
|
|
|
* @var int $ID_CreditLimit |
|
25
|
|
|
*/ |
|
26
|
|
|
protected $ID_CreditLimit = null; |
|
27
|
|
|
|
|
28
|
|
|
/** |
|
29
|
|
|
* @var int $ID_TaxExemption |
|
30
|
|
|
*/ |
|
31
|
|
|
protected $ID_TaxExemption = null; |
|
32
|
|
|
|
|
33
|
|
|
/** |
|
34
|
|
|
* @var TInvoiceBillingType $InvoiceBillingType |
|
35
|
|
|
*/ |
|
36
|
|
|
protected $InvoiceBillingType = null; |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* @var string $TaxNo |
|
40
|
|
|
*/ |
|
41
|
|
|
protected $TaxNo = null; |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* @var string $TaxNo2 |
|
45
|
|
|
*/ |
|
46
|
|
|
protected $TaxNo2 = null; |
|
47
|
|
|
|
|
48
|
|
|
/** |
|
49
|
|
|
* @var ArrayOfCFolioDist $FolioDist |
|
50
|
|
|
*/ |
|
51
|
|
|
protected $FolioDist = null; |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* @var ArrayOfCTransfer $Transfer |
|
55
|
|
|
*/ |
|
56
|
|
|
protected $Transfer = null; |
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* @param \DateTime $CreationDate |
|
60
|
|
|
* @param boolean $IsAR |
|
61
|
|
|
* @param boolean $IsCashOnly |
|
62
|
|
|
* @param int $ID_CreditLimit |
|
63
|
|
|
* @param int $ID_TaxExemption |
|
64
|
|
|
* @param TInvoiceBillingType $InvoiceBillingType |
|
65
|
|
|
*/ |
|
66
|
|
View Code Duplication |
public function __construct(\DateTime $CreationDate, $IsAR, $IsCashOnly, $ID_CreditLimit, $ID_TaxExemption, $InvoiceBillingType) |
|
|
|
|
|
|
67
|
|
|
{ |
|
68
|
|
|
$this->CreationDate = $CreationDate->format(\DateTime::ATOM); |
|
|
|
|
|
|
69
|
|
|
$this->IsAR = $IsAR; |
|
70
|
|
|
$this->IsCashOnly = $IsCashOnly; |
|
71
|
|
|
$this->ID_CreditLimit = $ID_CreditLimit; |
|
72
|
|
|
$this->ID_TaxExemption = $ID_TaxExemption; |
|
73
|
|
|
$this->InvoiceBillingType = $InvoiceBillingType; |
|
74
|
|
|
} |
|
75
|
|
|
|
|
76
|
|
|
/** |
|
77
|
|
|
* @return \DateTime |
|
78
|
|
|
*/ |
|
79
|
|
|
public function getCreationDate() |
|
80
|
|
|
{ |
|
81
|
|
|
if ($this->CreationDate == null) { |
|
82
|
|
|
return null; |
|
83
|
|
|
} else { |
|
84
|
|
|
try { |
|
85
|
|
|
return new \DateTime($this->CreationDate); |
|
86
|
|
|
} catch (\Exception $e) { |
|
87
|
|
|
return false; |
|
88
|
|
|
} |
|
89
|
|
|
} |
|
90
|
|
|
} |
|
91
|
|
|
|
|
92
|
|
|
/** |
|
93
|
|
|
* @param \DateTime $CreationDate |
|
94
|
|
|
* @return \Gueststream\PMS\IQWare\API\cCpyAccount |
|
95
|
|
|
*/ |
|
96
|
|
|
public function setCreationDate(\DateTime $CreationDate) |
|
97
|
|
|
{ |
|
98
|
|
|
$this->CreationDate = $CreationDate->format(\DateTime::ATOM); |
|
|
|
|
|
|
99
|
|
|
return $this; |
|
100
|
|
|
} |
|
101
|
|
|
|
|
102
|
|
|
/** |
|
103
|
|
|
* @return boolean |
|
104
|
|
|
*/ |
|
105
|
|
|
public function getIsAR() |
|
106
|
|
|
{ |
|
107
|
|
|
return $this->IsAR; |
|
108
|
|
|
} |
|
109
|
|
|
|
|
110
|
|
|
/** |
|
111
|
|
|
* @param boolean $IsAR |
|
112
|
|
|
* @return \Gueststream\PMS\IQWare\API\cCpyAccount |
|
113
|
|
|
*/ |
|
114
|
|
|
public function setIsAR($IsAR) |
|
115
|
|
|
{ |
|
116
|
|
|
$this->IsAR = $IsAR; |
|
117
|
|
|
return $this; |
|
118
|
|
|
} |
|
119
|
|
|
|
|
120
|
|
|
/** |
|
121
|
|
|
* @return boolean |
|
122
|
|
|
*/ |
|
123
|
|
|
public function getIsCashOnly() |
|
124
|
|
|
{ |
|
125
|
|
|
return $this->IsCashOnly; |
|
126
|
|
|
} |
|
127
|
|
|
|
|
128
|
|
|
/** |
|
129
|
|
|
* @param boolean $IsCashOnly |
|
130
|
|
|
* @return \Gueststream\PMS\IQWare\API\cCpyAccount |
|
131
|
|
|
*/ |
|
132
|
|
|
public function setIsCashOnly($IsCashOnly) |
|
133
|
|
|
{ |
|
134
|
|
|
$this->IsCashOnly = $IsCashOnly; |
|
135
|
|
|
return $this; |
|
136
|
|
|
} |
|
137
|
|
|
|
|
138
|
|
|
/** |
|
139
|
|
|
* @return int |
|
140
|
|
|
*/ |
|
141
|
|
|
public function getID_CreditLimit() |
|
142
|
|
|
{ |
|
143
|
|
|
return $this->ID_CreditLimit; |
|
144
|
|
|
} |
|
145
|
|
|
|
|
146
|
|
|
/** |
|
147
|
|
|
* @param int $ID_CreditLimit |
|
148
|
|
|
* @return \Gueststream\PMS\IQWare\API\cCpyAccount |
|
149
|
|
|
*/ |
|
150
|
|
|
public function setID_CreditLimit($ID_CreditLimit) |
|
151
|
|
|
{ |
|
152
|
|
|
$this->ID_CreditLimit = $ID_CreditLimit; |
|
153
|
|
|
return $this; |
|
154
|
|
|
} |
|
155
|
|
|
|
|
156
|
|
|
/** |
|
157
|
|
|
* @return int |
|
158
|
|
|
*/ |
|
159
|
|
|
public function getID_TaxExemption() |
|
160
|
|
|
{ |
|
161
|
|
|
return $this->ID_TaxExemption; |
|
162
|
|
|
} |
|
163
|
|
|
|
|
164
|
|
|
/** |
|
165
|
|
|
* @param int $ID_TaxExemption |
|
166
|
|
|
* @return \Gueststream\PMS\IQWare\API\cCpyAccount |
|
167
|
|
|
*/ |
|
168
|
|
|
public function setID_TaxExemption($ID_TaxExemption) |
|
169
|
|
|
{ |
|
170
|
|
|
$this->ID_TaxExemption = $ID_TaxExemption; |
|
171
|
|
|
return $this; |
|
172
|
|
|
} |
|
173
|
|
|
|
|
174
|
|
|
/** |
|
175
|
|
|
* @return TInvoiceBillingType |
|
176
|
|
|
*/ |
|
177
|
|
|
public function getInvoiceBillingType() |
|
178
|
|
|
{ |
|
179
|
|
|
return $this->InvoiceBillingType; |
|
180
|
|
|
} |
|
181
|
|
|
|
|
182
|
|
|
/** |
|
183
|
|
|
* @param TInvoiceBillingType $InvoiceBillingType |
|
184
|
|
|
* @return \Gueststream\PMS\IQWare\API\cCpyAccount |
|
185
|
|
|
*/ |
|
186
|
|
|
public function setInvoiceBillingType($InvoiceBillingType) |
|
187
|
|
|
{ |
|
188
|
|
|
$this->InvoiceBillingType = $InvoiceBillingType; |
|
189
|
|
|
return $this; |
|
190
|
|
|
} |
|
191
|
|
|
|
|
192
|
|
|
/** |
|
193
|
|
|
* @return string |
|
194
|
|
|
*/ |
|
195
|
|
|
public function getTaxNo() |
|
196
|
|
|
{ |
|
197
|
|
|
return $this->TaxNo; |
|
198
|
|
|
} |
|
199
|
|
|
|
|
200
|
|
|
/** |
|
201
|
|
|
* @param string $TaxNo |
|
202
|
|
|
* @return \Gueststream\PMS\IQWare\API\cCpyAccount |
|
203
|
|
|
*/ |
|
204
|
|
|
public function setTaxNo($TaxNo) |
|
205
|
|
|
{ |
|
206
|
|
|
$this->TaxNo = $TaxNo; |
|
207
|
|
|
return $this; |
|
208
|
|
|
} |
|
209
|
|
|
|
|
210
|
|
|
/** |
|
211
|
|
|
* @return string |
|
212
|
|
|
*/ |
|
213
|
|
|
public function getTaxNo2() |
|
214
|
|
|
{ |
|
215
|
|
|
return $this->TaxNo2; |
|
216
|
|
|
} |
|
217
|
|
|
|
|
218
|
|
|
/** |
|
219
|
|
|
* @param string $TaxNo2 |
|
220
|
|
|
* @return \Gueststream\PMS\IQWare\API\cCpyAccount |
|
221
|
|
|
*/ |
|
222
|
|
|
public function setTaxNo2($TaxNo2) |
|
223
|
|
|
{ |
|
224
|
|
|
$this->TaxNo2 = $TaxNo2; |
|
225
|
|
|
return $this; |
|
226
|
|
|
} |
|
227
|
|
|
|
|
228
|
|
|
/** |
|
229
|
|
|
* @return ArrayOfCFolioDist |
|
230
|
|
|
*/ |
|
231
|
|
|
public function getFolioDist() |
|
232
|
|
|
{ |
|
233
|
|
|
return $this->FolioDist; |
|
234
|
|
|
} |
|
235
|
|
|
|
|
236
|
|
|
/** |
|
237
|
|
|
* @param ArrayOfCFolioDist $FolioDist |
|
238
|
|
|
* @return \Gueststream\PMS\IQWare\API\cCpyAccount |
|
239
|
|
|
*/ |
|
240
|
|
|
public function setFolioDist($FolioDist) |
|
241
|
|
|
{ |
|
242
|
|
|
$this->FolioDist = $FolioDist; |
|
243
|
|
|
return $this; |
|
244
|
|
|
} |
|
245
|
|
|
|
|
246
|
|
|
/** |
|
247
|
|
|
* @return ArrayOfCTransfer |
|
248
|
|
|
*/ |
|
249
|
|
|
public function getTransfer() |
|
250
|
|
|
{ |
|
251
|
|
|
return $this->Transfer; |
|
252
|
|
|
} |
|
253
|
|
|
|
|
254
|
|
|
/** |
|
255
|
|
|
* @param ArrayOfCTransfer $Transfer |
|
256
|
|
|
* @return \Gueststream\PMS\IQWare\API\cCpyAccount |
|
257
|
|
|
*/ |
|
258
|
|
|
public function setTransfer($Transfer) |
|
259
|
|
|
{ |
|
260
|
|
|
$this->Transfer = $Transfer; |
|
261
|
|
|
return $this; |
|
262
|
|
|
} |
|
263
|
|
|
} |
|
264
|
|
|
|
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.