1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Webservices\StructType; |
4
|
|
|
|
5
|
|
|
use \WsdlToPhp\PackageBase\AbstractStructBase; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* This class stands for DNBBusinessVerification StructType |
9
|
|
|
* @subpackage Structs |
10
|
|
|
* @author JCID <[email protected]> |
11
|
|
|
*/ |
12
|
|
|
class DNBBusinessVerification extends AbstractStructBase |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* The duns |
16
|
|
|
* @var string |
17
|
|
|
*/ |
18
|
|
|
public $duns; |
19
|
|
|
/** |
20
|
|
|
* The dnb_key |
21
|
|
|
* @var string |
22
|
|
|
*/ |
23
|
|
|
public $dnb_key; |
24
|
|
|
/** |
25
|
|
|
* The enquiry_duns |
26
|
|
|
* @var string |
27
|
|
|
*/ |
28
|
|
|
public $enquiry_duns; |
29
|
|
|
/** |
30
|
|
|
* The business_number |
31
|
|
|
* Meta informations extracted from the WSDL |
32
|
|
|
* - minOccurs: 0 |
33
|
|
|
* @var string |
34
|
|
|
*/ |
35
|
|
|
public $business_number; |
36
|
|
|
/** |
37
|
|
|
* The business_number_type |
38
|
|
|
* Meta informations extracted from the WSDL |
39
|
|
|
* - minOccurs: 0 |
40
|
|
|
* @var string |
41
|
|
|
*/ |
42
|
|
|
public $business_number_type; |
43
|
|
|
/** |
44
|
|
|
* The business_number_description |
45
|
|
|
* Meta informations extracted from the WSDL |
46
|
|
|
* - minOccurs: 0 |
47
|
|
|
* @var string |
48
|
|
|
*/ |
49
|
|
|
public $business_number_description; |
50
|
|
|
/** |
51
|
|
|
* The trade_name |
52
|
|
|
* @var string |
53
|
|
|
*/ |
54
|
|
|
public $trade_name; |
55
|
|
|
/** |
56
|
|
|
* The address |
57
|
|
|
* @var \Webservices\ArrayType\StringArray |
58
|
|
|
*/ |
59
|
|
|
public $address; |
60
|
|
|
/** |
61
|
|
|
* The postcode |
62
|
|
|
* @var string |
63
|
|
|
*/ |
64
|
|
|
public $postcode; |
65
|
|
|
/** |
66
|
|
|
* The city |
67
|
|
|
* @var string |
68
|
|
|
*/ |
69
|
|
|
public $city; |
70
|
|
|
/** |
71
|
|
|
* The region |
72
|
|
|
* Meta informations extracted from the WSDL |
73
|
|
|
* - minOccurs: 0 |
74
|
|
|
* @var string |
75
|
|
|
*/ |
76
|
|
|
public $region; |
77
|
|
|
/** |
78
|
|
|
* The subregion |
79
|
|
|
* Meta informations extracted from the WSDL |
80
|
|
|
* - minOccurs: 0 |
81
|
|
|
* @var string |
82
|
|
|
*/ |
83
|
|
|
public $subregion; |
84
|
|
|
/** |
85
|
|
|
* The country_calling_code |
86
|
|
|
* @var string |
87
|
|
|
*/ |
88
|
|
|
public $country_calling_code; |
89
|
|
|
/** |
90
|
|
|
* The phone_number |
91
|
|
|
* Meta informations extracted from the WSDL |
92
|
|
|
* - minOccurs: 0 |
93
|
|
|
* @var string |
94
|
|
|
*/ |
95
|
|
|
public $phone_number; |
96
|
|
|
/** |
97
|
|
|
* The fax_number |
98
|
|
|
* Meta informations extracted from the WSDL |
99
|
|
|
* - minOccurs: 0 |
100
|
|
|
* @var string |
101
|
|
|
*/ |
102
|
|
|
public $fax_number; |
103
|
|
|
/** |
104
|
|
|
* The country |
105
|
|
|
* @var string |
106
|
|
|
*/ |
107
|
|
|
public $country; |
108
|
|
|
/** |
109
|
|
|
* The main_branch_indication |
110
|
|
|
* Meta informations extracted from the WSDL |
111
|
|
|
* - minOccurs: 0 |
112
|
|
|
* @var bool |
113
|
|
|
*/ |
114
|
|
|
public $main_branch_indication; |
115
|
|
|
/** |
116
|
|
|
* The out_of_business |
117
|
|
|
* Meta informations extracted from the WSDL |
118
|
|
|
* - minOccurs: 0 |
119
|
|
|
* @var bool |
120
|
|
|
*/ |
121
|
|
|
public $out_of_business; |
122
|
|
|
/** |
123
|
|
|
* The incorporation_year |
124
|
|
|
* Meta informations extracted from the WSDL |
125
|
|
|
* - minOccurs: 0 |
126
|
|
|
* @var int |
127
|
|
|
*/ |
128
|
|
|
public $incorporation_year; |
129
|
|
|
/** |
130
|
|
|
* The start_year |
131
|
|
|
* Meta informations extracted from the WSDL |
132
|
|
|
* - minOccurs: 0 |
133
|
|
|
* @var int |
134
|
|
|
*/ |
135
|
|
|
public $start_year; |
136
|
|
|
/** |
137
|
|
|
* The sic_activity_code |
138
|
|
|
* @var string |
139
|
|
|
*/ |
140
|
|
|
public $sic_activity_code; |
141
|
|
|
/** |
142
|
|
|
* The sic_activity_description |
143
|
|
|
* @var string |
144
|
|
|
*/ |
145
|
|
|
public $sic_activity_description; |
146
|
|
|
/** |
147
|
|
|
* The sic_version |
148
|
|
|
* @var string |
149
|
|
|
*/ |
150
|
|
|
public $sic_version; |
151
|
|
|
/** |
152
|
|
|
* The trade_names |
153
|
|
|
* Meta informations extracted from the WSDL |
154
|
|
|
* - minOccurs: 0 |
155
|
|
|
* @var \Webservices\ArrayType\StringArray |
156
|
|
|
*/ |
157
|
|
|
public $trade_names; |
158
|
|
|
/** |
159
|
|
|
* Constructor method for DNBBusinessVerification |
160
|
|
|
* @uses DNBBusinessVerification::setDuns() |
161
|
|
|
* @uses DNBBusinessVerification::setDnb_key() |
162
|
|
|
* @uses DNBBusinessVerification::setEnquiry_duns() |
163
|
|
|
* @uses DNBBusinessVerification::setBusiness_number() |
164
|
|
|
* @uses DNBBusinessVerification::setBusiness_number_type() |
165
|
|
|
* @uses DNBBusinessVerification::setBusiness_number_description() |
166
|
|
|
* @uses DNBBusinessVerification::setTrade_name() |
167
|
|
|
* @uses DNBBusinessVerification::setAddress() |
168
|
|
|
* @uses DNBBusinessVerification::setPostcode() |
169
|
|
|
* @uses DNBBusinessVerification::setCity() |
170
|
|
|
* @uses DNBBusinessVerification::setRegion() |
171
|
|
|
* @uses DNBBusinessVerification::setSubregion() |
172
|
|
|
* @uses DNBBusinessVerification::setCountry_calling_code() |
173
|
|
|
* @uses DNBBusinessVerification::setPhone_number() |
174
|
|
|
* @uses DNBBusinessVerification::setFax_number() |
175
|
|
|
* @uses DNBBusinessVerification::setCountry() |
176
|
|
|
* @uses DNBBusinessVerification::setMain_branch_indication() |
177
|
|
|
* @uses DNBBusinessVerification::setOut_of_business() |
178
|
|
|
* @uses DNBBusinessVerification::setIncorporation_year() |
179
|
|
|
* @uses DNBBusinessVerification::setStart_year() |
180
|
|
|
* @uses DNBBusinessVerification::setSic_activity_code() |
181
|
|
|
* @uses DNBBusinessVerification::setSic_activity_description() |
182
|
|
|
* @uses DNBBusinessVerification::setSic_version() |
183
|
|
|
* @uses DNBBusinessVerification::setTrade_names() |
184
|
|
|
* @param string $duns |
185
|
|
|
* @param string $dnb_key |
186
|
|
|
* @param string $enquiry_duns |
187
|
|
|
* @param string $business_number |
188
|
|
|
* @param string $business_number_type |
189
|
|
|
* @param string $business_number_description |
190
|
|
|
* @param string $trade_name |
191
|
|
|
* @param \Webservices\ArrayType\StringArray $address |
192
|
|
|
* @param string $postcode |
193
|
|
|
* @param string $city |
194
|
|
|
* @param string $region |
195
|
|
|
* @param string $subregion |
196
|
|
|
* @param string $country_calling_code |
197
|
|
|
* @param string $phone_number |
198
|
|
|
* @param string $fax_number |
199
|
|
|
* @param string $country |
200
|
|
|
* @param bool $main_branch_indication |
201
|
|
|
* @param bool $out_of_business |
202
|
|
|
* @param int $incorporation_year |
203
|
|
|
* @param int $start_year |
204
|
|
|
* @param string $sic_activity_code |
205
|
|
|
* @param string $sic_activity_description |
206
|
|
|
* @param string $sic_version |
207
|
|
|
* @param \Webservices\ArrayType\StringArray $trade_names |
208
|
|
|
*/ |
209
|
|
|
public function __construct($duns = null, $dnb_key = null, $enquiry_duns = null, $business_number = null, $business_number_type = null, $business_number_description = null, $trade_name = null, \Webservices\ArrayType\StringArray $address = null, $postcode = null, $city = null, $region = null, $subregion = null, $country_calling_code = null, $phone_number = null, $fax_number = null, $country = null, $main_branch_indication = null, $out_of_business = null, $incorporation_year = null, $start_year = null, $sic_activity_code = null, $sic_activity_description = null, $sic_version = null, \Webservices\ArrayType\StringArray $trade_names = null) |
210
|
|
|
{ |
211
|
|
|
$this |
212
|
|
|
->setDuns($duns) |
213
|
|
|
->setDnb_key($dnb_key) |
214
|
|
|
->setEnquiry_duns($enquiry_duns) |
215
|
|
|
->setBusiness_number($business_number) |
216
|
|
|
->setBusiness_number_type($business_number_type) |
217
|
|
|
->setBusiness_number_description($business_number_description) |
218
|
|
|
->setTrade_name($trade_name) |
219
|
|
|
->setAddress($address) |
220
|
|
|
->setPostcode($postcode) |
221
|
|
|
->setCity($city) |
222
|
|
|
->setRegion($region) |
223
|
|
|
->setSubregion($subregion) |
224
|
|
|
->setCountry_calling_code($country_calling_code) |
225
|
|
|
->setPhone_number($phone_number) |
226
|
|
|
->setFax_number($fax_number) |
227
|
|
|
->setCountry($country) |
228
|
|
|
->setMain_branch_indication($main_branch_indication) |
229
|
|
|
->setOut_of_business($out_of_business) |
230
|
|
|
->setIncorporation_year($incorporation_year) |
231
|
|
|
->setStart_year($start_year) |
232
|
|
|
->setSic_activity_code($sic_activity_code) |
233
|
|
|
->setSic_activity_description($sic_activity_description) |
234
|
|
|
->setSic_version($sic_version) |
235
|
|
|
->setTrade_names($trade_names); |
236
|
|
|
} |
237
|
|
|
/** |
238
|
|
|
* Get duns value |
239
|
|
|
* @return string|null |
240
|
|
|
*/ |
241
|
|
|
public function getDuns() |
242
|
|
|
{ |
243
|
|
|
return $this->duns; |
244
|
|
|
} |
245
|
|
|
/** |
246
|
|
|
* Set duns value |
247
|
|
|
* @param string $duns |
248
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
249
|
|
|
*/ |
250
|
|
|
public function setDuns($duns = null) |
251
|
|
|
{ |
252
|
|
|
// validation for constraint: string |
253
|
|
|
if (!is_null($duns) && !is_string($duns)) { |
|
|
|
|
254
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($duns)), __LINE__); |
255
|
|
|
} |
256
|
|
|
$this->duns = $duns; |
257
|
|
|
return $this; |
258
|
|
|
} |
259
|
|
|
/** |
260
|
|
|
* Get dnb_key value |
261
|
|
|
* @return string|null |
262
|
|
|
*/ |
263
|
|
|
public function getDnb_key() |
264
|
|
|
{ |
265
|
|
|
return $this->dnb_key; |
266
|
|
|
} |
267
|
|
|
/** |
268
|
|
|
* Set dnb_key value |
269
|
|
|
* @param string $dnb_key |
270
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
271
|
|
|
*/ |
272
|
|
|
public function setDnb_key($dnb_key = null) |
273
|
|
|
{ |
274
|
|
|
// validation for constraint: string |
275
|
|
|
if (!is_null($dnb_key) && !is_string($dnb_key)) { |
|
|
|
|
276
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($dnb_key)), __LINE__); |
277
|
|
|
} |
278
|
|
|
$this->dnb_key = $dnb_key; |
279
|
|
|
return $this; |
280
|
|
|
} |
281
|
|
|
/** |
282
|
|
|
* Get enquiry_duns value |
283
|
|
|
* @return string|null |
284
|
|
|
*/ |
285
|
|
|
public function getEnquiry_duns() |
286
|
|
|
{ |
287
|
|
|
return $this->enquiry_duns; |
288
|
|
|
} |
289
|
|
|
/** |
290
|
|
|
* Set enquiry_duns value |
291
|
|
|
* @param string $enquiry_duns |
292
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
293
|
|
|
*/ |
294
|
|
|
public function setEnquiry_duns($enquiry_duns = null) |
295
|
|
|
{ |
296
|
|
|
// validation for constraint: string |
297
|
|
|
if (!is_null($enquiry_duns) && !is_string($enquiry_duns)) { |
|
|
|
|
298
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($enquiry_duns)), __LINE__); |
299
|
|
|
} |
300
|
|
|
$this->enquiry_duns = $enquiry_duns; |
301
|
|
|
return $this; |
302
|
|
|
} |
303
|
|
|
/** |
304
|
|
|
* Get business_number value |
305
|
|
|
* @return string|null |
306
|
|
|
*/ |
307
|
|
|
public function getBusiness_number() |
308
|
|
|
{ |
309
|
|
|
return $this->business_number; |
310
|
|
|
} |
311
|
|
|
/** |
312
|
|
|
* Set business_number value |
313
|
|
|
* @param string $business_number |
314
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
315
|
|
|
*/ |
316
|
|
|
public function setBusiness_number($business_number = null) |
317
|
|
|
{ |
318
|
|
|
// validation for constraint: string |
319
|
|
|
if (!is_null($business_number) && !is_string($business_number)) { |
|
|
|
|
320
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($business_number)), __LINE__); |
321
|
|
|
} |
322
|
|
|
$this->business_number = $business_number; |
323
|
|
|
return $this; |
324
|
|
|
} |
325
|
|
|
/** |
326
|
|
|
* Get business_number_type value |
327
|
|
|
* @return string|null |
328
|
|
|
*/ |
329
|
|
|
public function getBusiness_number_type() |
330
|
|
|
{ |
331
|
|
|
return $this->business_number_type; |
332
|
|
|
} |
333
|
|
|
/** |
334
|
|
|
* Set business_number_type value |
335
|
|
|
* @param string $business_number_type |
336
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
337
|
|
|
*/ |
338
|
|
|
public function setBusiness_number_type($business_number_type = null) |
339
|
|
|
{ |
340
|
|
|
// validation for constraint: string |
341
|
|
|
if (!is_null($business_number_type) && !is_string($business_number_type)) { |
|
|
|
|
342
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($business_number_type)), __LINE__); |
343
|
|
|
} |
344
|
|
|
$this->business_number_type = $business_number_type; |
345
|
|
|
return $this; |
346
|
|
|
} |
347
|
|
|
/** |
348
|
|
|
* Get business_number_description value |
349
|
|
|
* @return string|null |
350
|
|
|
*/ |
351
|
|
|
public function getBusiness_number_description() |
352
|
|
|
{ |
353
|
|
|
return $this->business_number_description; |
354
|
|
|
} |
355
|
|
|
/** |
356
|
|
|
* Set business_number_description value |
357
|
|
|
* @param string $business_number_description |
358
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
359
|
|
|
*/ |
360
|
|
|
public function setBusiness_number_description($business_number_description = null) |
361
|
|
|
{ |
362
|
|
|
// validation for constraint: string |
363
|
|
|
if (!is_null($business_number_description) && !is_string($business_number_description)) { |
|
|
|
|
364
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($business_number_description)), __LINE__); |
365
|
|
|
} |
366
|
|
|
$this->business_number_description = $business_number_description; |
367
|
|
|
return $this; |
368
|
|
|
} |
369
|
|
|
/** |
370
|
|
|
* Get trade_name value |
371
|
|
|
* @return string|null |
372
|
|
|
*/ |
373
|
|
|
public function getTrade_name() |
374
|
|
|
{ |
375
|
|
|
return $this->trade_name; |
376
|
|
|
} |
377
|
|
|
/** |
378
|
|
|
* Set trade_name value |
379
|
|
|
* @param string $trade_name |
380
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
381
|
|
|
*/ |
382
|
|
|
public function setTrade_name($trade_name = null) |
383
|
|
|
{ |
384
|
|
|
// validation for constraint: string |
385
|
|
|
if (!is_null($trade_name) && !is_string($trade_name)) { |
|
|
|
|
386
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($trade_name)), __LINE__); |
387
|
|
|
} |
388
|
|
|
$this->trade_name = $trade_name; |
389
|
|
|
return $this; |
390
|
|
|
} |
391
|
|
|
/** |
392
|
|
|
* Get address value |
393
|
|
|
* @return \Webservices\ArrayType\StringArray|null |
394
|
|
|
*/ |
395
|
|
|
public function getAddress() |
396
|
|
|
{ |
397
|
|
|
return $this->address; |
398
|
|
|
} |
399
|
|
|
/** |
400
|
|
|
* Set address value |
401
|
|
|
* @param \Webservices\ArrayType\StringArray $address |
402
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
403
|
|
|
*/ |
404
|
|
|
public function setAddress(\Webservices\ArrayType\StringArray $address = null) |
405
|
|
|
{ |
406
|
|
|
$this->address = $address; |
407
|
|
|
return $this; |
408
|
|
|
} |
409
|
|
|
/** |
410
|
|
|
* Get postcode value |
411
|
|
|
* @return string|null |
412
|
|
|
*/ |
413
|
|
|
public function getPostcode() |
414
|
|
|
{ |
415
|
|
|
return $this->postcode; |
416
|
|
|
} |
417
|
|
|
/** |
418
|
|
|
* Set postcode value |
419
|
|
|
* @param string $postcode |
420
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
421
|
|
|
*/ |
422
|
|
|
public function setPostcode($postcode = null) |
423
|
|
|
{ |
424
|
|
|
// validation for constraint: string |
425
|
|
|
if (!is_null($postcode) && !is_string($postcode)) { |
|
|
|
|
426
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($postcode)), __LINE__); |
427
|
|
|
} |
428
|
|
|
$this->postcode = $postcode; |
429
|
|
|
return $this; |
430
|
|
|
} |
431
|
|
|
/** |
432
|
|
|
* Get city value |
433
|
|
|
* @return string|null |
434
|
|
|
*/ |
435
|
|
|
public function getCity() |
436
|
|
|
{ |
437
|
|
|
return $this->city; |
438
|
|
|
} |
439
|
|
|
/** |
440
|
|
|
* Set city value |
441
|
|
|
* @param string $city |
442
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
443
|
|
|
*/ |
444
|
|
|
public function setCity($city = null) |
445
|
|
|
{ |
446
|
|
|
// validation for constraint: string |
447
|
|
|
if (!is_null($city) && !is_string($city)) { |
|
|
|
|
448
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($city)), __LINE__); |
449
|
|
|
} |
450
|
|
|
$this->city = $city; |
451
|
|
|
return $this; |
452
|
|
|
} |
453
|
|
|
/** |
454
|
|
|
* Get region value |
455
|
|
|
* @return string|null |
456
|
|
|
*/ |
457
|
|
|
public function getRegion() |
458
|
|
|
{ |
459
|
|
|
return $this->region; |
460
|
|
|
} |
461
|
|
|
/** |
462
|
|
|
* Set region value |
463
|
|
|
* @param string $region |
464
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
465
|
|
|
*/ |
466
|
|
|
public function setRegion($region = null) |
467
|
|
|
{ |
468
|
|
|
// validation for constraint: string |
469
|
|
|
if (!is_null($region) && !is_string($region)) { |
|
|
|
|
470
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($region)), __LINE__); |
471
|
|
|
} |
472
|
|
|
$this->region = $region; |
473
|
|
|
return $this; |
474
|
|
|
} |
475
|
|
|
/** |
476
|
|
|
* Get subregion value |
477
|
|
|
* @return string|null |
478
|
|
|
*/ |
479
|
|
|
public function getSubregion() |
480
|
|
|
{ |
481
|
|
|
return $this->subregion; |
482
|
|
|
} |
483
|
|
|
/** |
484
|
|
|
* Set subregion value |
485
|
|
|
* @param string $subregion |
486
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
487
|
|
|
*/ |
488
|
|
|
public function setSubregion($subregion = null) |
489
|
|
|
{ |
490
|
|
|
// validation for constraint: string |
491
|
|
|
if (!is_null($subregion) && !is_string($subregion)) { |
|
|
|
|
492
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($subregion)), __LINE__); |
493
|
|
|
} |
494
|
|
|
$this->subregion = $subregion; |
495
|
|
|
return $this; |
496
|
|
|
} |
497
|
|
|
/** |
498
|
|
|
* Get country_calling_code value |
499
|
|
|
* @return string|null |
500
|
|
|
*/ |
501
|
|
|
public function getCountry_calling_code() |
502
|
|
|
{ |
503
|
|
|
return $this->country_calling_code; |
504
|
|
|
} |
505
|
|
|
/** |
506
|
|
|
* Set country_calling_code value |
507
|
|
|
* @param string $country_calling_code |
508
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
509
|
|
|
*/ |
510
|
|
|
public function setCountry_calling_code($country_calling_code = null) |
511
|
|
|
{ |
512
|
|
|
// validation for constraint: string |
513
|
|
|
if (!is_null($country_calling_code) && !is_string($country_calling_code)) { |
|
|
|
|
514
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($country_calling_code)), __LINE__); |
515
|
|
|
} |
516
|
|
|
$this->country_calling_code = $country_calling_code; |
517
|
|
|
return $this; |
518
|
|
|
} |
519
|
|
|
/** |
520
|
|
|
* Get phone_number value |
521
|
|
|
* @return string|null |
522
|
|
|
*/ |
523
|
|
|
public function getPhone_number() |
524
|
|
|
{ |
525
|
|
|
return $this->phone_number; |
526
|
|
|
} |
527
|
|
|
/** |
528
|
|
|
* Set phone_number value |
529
|
|
|
* @param string $phone_number |
530
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
531
|
|
|
*/ |
532
|
|
|
public function setPhone_number($phone_number = null) |
533
|
|
|
{ |
534
|
|
|
// validation for constraint: string |
535
|
|
|
if (!is_null($phone_number) && !is_string($phone_number)) { |
|
|
|
|
536
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($phone_number)), __LINE__); |
537
|
|
|
} |
538
|
|
|
$this->phone_number = $phone_number; |
539
|
|
|
return $this; |
540
|
|
|
} |
541
|
|
|
/** |
542
|
|
|
* Get fax_number value |
543
|
|
|
* @return string|null |
544
|
|
|
*/ |
545
|
|
|
public function getFax_number() |
546
|
|
|
{ |
547
|
|
|
return $this->fax_number; |
548
|
|
|
} |
549
|
|
|
/** |
550
|
|
|
* Set fax_number value |
551
|
|
|
* @param string $fax_number |
552
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
553
|
|
|
*/ |
554
|
|
|
public function setFax_number($fax_number = null) |
555
|
|
|
{ |
556
|
|
|
// validation for constraint: string |
557
|
|
|
if (!is_null($fax_number) && !is_string($fax_number)) { |
|
|
|
|
558
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($fax_number)), __LINE__); |
559
|
|
|
} |
560
|
|
|
$this->fax_number = $fax_number; |
561
|
|
|
return $this; |
562
|
|
|
} |
563
|
|
|
/** |
564
|
|
|
* Get country value |
565
|
|
|
* @return string|null |
566
|
|
|
*/ |
567
|
|
|
public function getCountry() |
568
|
|
|
{ |
569
|
|
|
return $this->country; |
570
|
|
|
} |
571
|
|
|
/** |
572
|
|
|
* Set country value |
573
|
|
|
* @param string $country |
574
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
575
|
|
|
*/ |
576
|
|
|
public function setCountry($country = null) |
577
|
|
|
{ |
578
|
|
|
// validation for constraint: string |
579
|
|
|
if (!is_null($country) && !is_string($country)) { |
|
|
|
|
580
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($country)), __LINE__); |
581
|
|
|
} |
582
|
|
|
$this->country = $country; |
583
|
|
|
return $this; |
584
|
|
|
} |
585
|
|
|
/** |
586
|
|
|
* Get main_branch_indication value |
587
|
|
|
* @return bool|null |
588
|
|
|
*/ |
589
|
|
|
public function getMain_branch_indication() |
590
|
|
|
{ |
591
|
|
|
return $this->main_branch_indication; |
592
|
|
|
} |
593
|
|
|
/** |
594
|
|
|
* Set main_branch_indication value |
595
|
|
|
* @param bool $main_branch_indication |
596
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
597
|
|
|
*/ |
598
|
|
|
public function setMain_branch_indication($main_branch_indication = null) |
599
|
|
|
{ |
600
|
|
|
// validation for constraint: boolean |
601
|
|
|
if (!is_null($main_branch_indication) && !is_bool($main_branch_indication)) { |
|
|
|
|
602
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($main_branch_indication)), __LINE__); |
603
|
|
|
} |
604
|
|
|
$this->main_branch_indication = $main_branch_indication; |
605
|
|
|
return $this; |
606
|
|
|
} |
607
|
|
|
/** |
608
|
|
|
* Get out_of_business value |
609
|
|
|
* @return bool|null |
610
|
|
|
*/ |
611
|
|
|
public function getOut_of_business() |
612
|
|
|
{ |
613
|
|
|
return $this->out_of_business; |
614
|
|
|
} |
615
|
|
|
/** |
616
|
|
|
* Set out_of_business value |
617
|
|
|
* @param bool $out_of_business |
618
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
619
|
|
|
*/ |
620
|
|
|
public function setOut_of_business($out_of_business = null) |
621
|
|
|
{ |
622
|
|
|
// validation for constraint: boolean |
623
|
|
|
if (!is_null($out_of_business) && !is_bool($out_of_business)) { |
|
|
|
|
624
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($out_of_business)), __LINE__); |
625
|
|
|
} |
626
|
|
|
$this->out_of_business = $out_of_business; |
627
|
|
|
return $this; |
628
|
|
|
} |
629
|
|
|
/** |
630
|
|
|
* Get incorporation_year value |
631
|
|
|
* @return int|null |
632
|
|
|
*/ |
633
|
|
|
public function getIncorporation_year() |
634
|
|
|
{ |
635
|
|
|
return $this->incorporation_year; |
636
|
|
|
} |
637
|
|
|
/** |
638
|
|
|
* Set incorporation_year value |
639
|
|
|
* @param int $incorporation_year |
640
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
641
|
|
|
*/ |
642
|
|
|
public function setIncorporation_year($incorporation_year = null) |
643
|
|
|
{ |
644
|
|
|
// validation for constraint: int |
645
|
|
|
if (!is_null($incorporation_year) && !is_numeric($incorporation_year)) { |
|
|
|
|
646
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($incorporation_year)), __LINE__); |
647
|
|
|
} |
648
|
|
|
$this->incorporation_year = $incorporation_year; |
649
|
|
|
return $this; |
650
|
|
|
} |
651
|
|
|
/** |
652
|
|
|
* Get start_year value |
653
|
|
|
* @return int|null |
654
|
|
|
*/ |
655
|
|
|
public function getStart_year() |
656
|
|
|
{ |
657
|
|
|
return $this->start_year; |
658
|
|
|
} |
659
|
|
|
/** |
660
|
|
|
* Set start_year value |
661
|
|
|
* @param int $start_year |
662
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
663
|
|
|
*/ |
664
|
|
|
public function setStart_year($start_year = null) |
665
|
|
|
{ |
666
|
|
|
// validation for constraint: int |
667
|
|
|
if (!is_null($start_year) && !is_numeric($start_year)) { |
|
|
|
|
668
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($start_year)), __LINE__); |
669
|
|
|
} |
670
|
|
|
$this->start_year = $start_year; |
671
|
|
|
return $this; |
672
|
|
|
} |
673
|
|
|
/** |
674
|
|
|
* Get sic_activity_code value |
675
|
|
|
* @return string|null |
676
|
|
|
*/ |
677
|
|
|
public function getSic_activity_code() |
678
|
|
|
{ |
679
|
|
|
return $this->sic_activity_code; |
680
|
|
|
} |
681
|
|
|
/** |
682
|
|
|
* Set sic_activity_code value |
683
|
|
|
* @param string $sic_activity_code |
684
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
685
|
|
|
*/ |
686
|
|
|
public function setSic_activity_code($sic_activity_code = null) |
687
|
|
|
{ |
688
|
|
|
// validation for constraint: string |
689
|
|
|
if (!is_null($sic_activity_code) && !is_string($sic_activity_code)) { |
|
|
|
|
690
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($sic_activity_code)), __LINE__); |
691
|
|
|
} |
692
|
|
|
$this->sic_activity_code = $sic_activity_code; |
693
|
|
|
return $this; |
694
|
|
|
} |
695
|
|
|
/** |
696
|
|
|
* Get sic_activity_description value |
697
|
|
|
* @return string|null |
698
|
|
|
*/ |
699
|
|
|
public function getSic_activity_description() |
700
|
|
|
{ |
701
|
|
|
return $this->sic_activity_description; |
702
|
|
|
} |
703
|
|
|
/** |
704
|
|
|
* Set sic_activity_description value |
705
|
|
|
* @param string $sic_activity_description |
706
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
707
|
|
|
*/ |
708
|
|
|
public function setSic_activity_description($sic_activity_description = null) |
709
|
|
|
{ |
710
|
|
|
// validation for constraint: string |
711
|
|
|
if (!is_null($sic_activity_description) && !is_string($sic_activity_description)) { |
|
|
|
|
712
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($sic_activity_description)), __LINE__); |
713
|
|
|
} |
714
|
|
|
$this->sic_activity_description = $sic_activity_description; |
715
|
|
|
return $this; |
716
|
|
|
} |
717
|
|
|
/** |
718
|
|
|
* Get sic_version value |
719
|
|
|
* @return string|null |
720
|
|
|
*/ |
721
|
|
|
public function getSic_version() |
722
|
|
|
{ |
723
|
|
|
return $this->sic_version; |
724
|
|
|
} |
725
|
|
|
/** |
726
|
|
|
* Set sic_version value |
727
|
|
|
* @param string $sic_version |
728
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
729
|
|
|
*/ |
730
|
|
|
public function setSic_version($sic_version = null) |
731
|
|
|
{ |
732
|
|
|
// validation for constraint: string |
733
|
|
|
if (!is_null($sic_version) && !is_string($sic_version)) { |
|
|
|
|
734
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($sic_version)), __LINE__); |
735
|
|
|
} |
736
|
|
|
$this->sic_version = $sic_version; |
737
|
|
|
return $this; |
738
|
|
|
} |
739
|
|
|
/** |
740
|
|
|
* Get trade_names value |
741
|
|
|
* @return \Webservices\ArrayType\StringArray|null |
742
|
|
|
*/ |
743
|
|
|
public function getTrade_names() |
744
|
|
|
{ |
745
|
|
|
return $this->trade_names; |
746
|
|
|
} |
747
|
|
|
/** |
748
|
|
|
* Set trade_names value |
749
|
|
|
* @param \Webservices\ArrayType\StringArray $trade_names |
750
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
751
|
|
|
*/ |
752
|
|
|
public function setTrade_names(\Webservices\ArrayType\StringArray $trade_names = null) |
753
|
|
|
{ |
754
|
|
|
$this->trade_names = $trade_names; |
755
|
|
|
return $this; |
756
|
|
|
} |
757
|
|
|
/** |
758
|
|
|
* Method called when an object has been exported with var_export() functions |
759
|
|
|
* It allows to return an object instantiated with the values |
760
|
|
|
* @see AbstractStructBase::__set_state() |
761
|
|
|
* @uses AbstractStructBase::__set_state() |
762
|
|
|
* @param array $array the exported values |
763
|
|
|
* @return \Webservices\StructType\DNBBusinessVerification |
764
|
|
|
*/ |
765
|
|
|
public static function __set_state(array $array) |
766
|
|
|
{ |
767
|
|
|
return parent::__set_state($array); |
768
|
|
|
} |
769
|
|
|
/** |
770
|
|
|
* Method returning the class name |
771
|
|
|
* @return string __CLASS__ |
772
|
|
|
*/ |
773
|
|
|
public function __toString() |
774
|
|
|
{ |
775
|
|
|
return __CLASS__; |
776
|
|
|
} |
777
|
|
|
} |
778
|
|
|
|