Total Complexity | 101 |
Total Lines | 1016 |
Duplicated Lines | 0 % |
Changes | 0 |
Complex classes like DutchBusinessPositionV2 often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use DutchBusinessPositionV2, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
12 | class DutchBusinessPositionV2 extends AbstractStructBase |
||
13 | { |
||
14 | /** |
||
15 | * The functionary |
||
16 | * Meta informations extracted from the WSDL |
||
17 | * - minOccurs: 0 |
||
18 | * @var \Webservices\StructType\DutchBusinessPersonV2 |
||
19 | */ |
||
20 | public $functionary; |
||
21 | /** |
||
22 | * The organisation |
||
23 | * Meta informations extracted from the WSDL |
||
24 | * - minOccurs: 0 |
||
25 | * @var \Webservices\StructType\DutchBusinessOrganizationReferenceV2 |
||
26 | */ |
||
27 | public $organisation; |
||
28 | /** |
||
29 | * The residential_address |
||
30 | * Meta informations extracted from the WSDL |
||
31 | * - minOccurs: 0 |
||
32 | * @var \Webservices\StructType\DutchBusinessAddressV2 |
||
33 | */ |
||
34 | public $residential_address; |
||
35 | /** |
||
36 | * The correspondence_address |
||
37 | * Meta informations extracted from the WSDL |
||
38 | * - minOccurs: 0 |
||
39 | * @var \Webservices\StructType\DutchBusinessAddressV2 |
||
40 | */ |
||
41 | public $correspondence_address; |
||
42 | /** |
||
43 | * The establishment_address |
||
44 | * Meta informations extracted from the WSDL |
||
45 | * - minOccurs: 0 |
||
46 | * @var \Webservices\StructType\DutchBusinessAddressV2 |
||
47 | */ |
||
48 | public $establishment_address; |
||
49 | /** |
||
50 | * The longest_serving |
||
51 | * Meta informations extracted from the WSDL |
||
52 | * - minOccurs: 0 |
||
53 | * @var bool |
||
54 | */ |
||
55 | public $longest_serving; |
||
56 | /** |
||
57 | * The function_type |
||
58 | * Meta informations extracted from the WSDL |
||
59 | * - minOccurs: 0 |
||
60 | * @var string |
||
61 | */ |
||
62 | public $function_type; |
||
63 | /** |
||
64 | * The function_description |
||
65 | * Meta informations extracted from the WSDL |
||
66 | * - minOccurs: 0 |
||
67 | * @var string |
||
68 | */ |
||
69 | public $function_description; |
||
70 | /** |
||
71 | * The function_title |
||
72 | * Meta informations extracted from the WSDL |
||
73 | * - minOccurs: 0 |
||
74 | * @var string |
||
75 | */ |
||
76 | public $function_title; |
||
77 | /** |
||
78 | * The function_start_date |
||
79 | * Meta informations extracted from the WSDL |
||
80 | * - minOccurs: 0 |
||
81 | * @var \Webservices\StructType\DutchBusinessDateV2 |
||
82 | */ |
||
83 | public $function_start_date; |
||
84 | /** |
||
85 | * The function_registration_date |
||
86 | * Meta informations extracted from the WSDL |
||
87 | * - minOccurs: 0 |
||
88 | * @var \Webservices\StructType\DutchBusinessDateV2 |
||
89 | */ |
||
90 | public $function_registration_date; |
||
91 | /** |
||
92 | * The function_end_date |
||
93 | * Meta informations extracted from the WSDL |
||
94 | * - minOccurs: 0 |
||
95 | * @var \Webservices\StructType\DutchBusinessDateV2 |
||
96 | */ |
||
97 | public $function_end_date; |
||
98 | /** |
||
99 | * The function_authorization |
||
100 | * Meta informations extracted from the WSDL |
||
101 | * - minOccurs: 0 |
||
102 | * @var string |
||
103 | */ |
||
104 | public $function_authorization; |
||
105 | /** |
||
106 | * The function_authorization_description |
||
107 | * Meta informations extracted from the WSDL |
||
108 | * - minOccurs: 0 |
||
109 | * @var string |
||
110 | */ |
||
111 | public $function_authorization_description; |
||
112 | /** |
||
113 | * The function_authorization_start_date |
||
114 | * Meta informations extracted from the WSDL |
||
115 | * - minOccurs: 0 |
||
116 | * @var \Webservices\StructType\DutchBusinessDateV2 |
||
117 | */ |
||
118 | public $function_authorization_start_date; |
||
119 | /** |
||
120 | * The function_authorization_signing_power |
||
121 | * Meta informations extracted from the WSDL |
||
122 | * - minOccurs: 0 |
||
123 | * @var string |
||
124 | */ |
||
125 | public $function_authorization_signing_power; |
||
126 | /** |
||
127 | * The function_authorization_end_date |
||
128 | * Meta informations extracted from the WSDL |
||
129 | * - minOccurs: 0 |
||
130 | * @var \Webservices\StructType\DutchBusinessDateV2 |
||
131 | */ |
||
132 | public $function_authorization_end_date; |
||
133 | /** |
||
134 | * The authorization_description |
||
135 | * Meta informations extracted from the WSDL |
||
136 | * - minOccurs: 0 |
||
137 | * @var string |
||
138 | */ |
||
139 | public $authorization_description; |
||
140 | /** |
||
141 | * The authorization_establishment_number |
||
142 | * Meta informations extracted from the WSDL |
||
143 | * - minOccurs: 0 |
||
144 | * @var string |
||
145 | */ |
||
146 | public $authorization_establishment_number; |
||
147 | /** |
||
148 | * The authorization_start_date |
||
149 | * Meta informations extracted from the WSDL |
||
150 | * - minOccurs: 0 |
||
151 | * @var \Webservices\StructType\DutchBusinessDateV2 |
||
152 | */ |
||
153 | public $authorization_start_date; |
||
154 | /** |
||
155 | * The authorization_end_date |
||
156 | * Meta informations extracted from the WSDL |
||
157 | * - minOccurs: 0 |
||
158 | * @var \Webservices\StructType\DutchBusinessDateV2 |
||
159 | */ |
||
160 | public $authorization_end_date; |
||
161 | /** |
||
162 | * The authorization_constraints |
||
163 | * Meta informations extracted from the WSDL |
||
164 | * - minOccurs: 0 |
||
165 | * @var \Webservices\ArrayType\StringArray |
||
166 | */ |
||
167 | public $authorization_constraints; |
||
168 | /** |
||
169 | * The inauguration |
||
170 | * Meta informations extracted from the WSDL |
||
171 | * - minOccurs: 0 |
||
172 | * @var string |
||
173 | */ |
||
174 | public $inauguration; |
||
175 | /** |
||
176 | * The inauguration_function |
||
177 | * Meta informations extracted from the WSDL |
||
178 | * - minOccurs: 0 |
||
179 | * @var string |
||
180 | */ |
||
181 | public $inauguration_function; |
||
182 | /** |
||
183 | * The inauguration_duration |
||
184 | * Meta informations extracted from the WSDL |
||
185 | * - minOccurs: 0 |
||
186 | * @var string |
||
187 | */ |
||
188 | public $inauguration_duration; |
||
189 | /** |
||
190 | * The inauguration_date |
||
191 | * Meta informations extracted from the WSDL |
||
192 | * - minOccurs: 0 |
||
193 | * @var \Webservices\StructType\DutchBusinessDateV2 |
||
194 | */ |
||
195 | public $inauguration_date; |
||
196 | /** |
||
197 | * The inauguration_body |
||
198 | * Meta informations extracted from the WSDL |
||
199 | * - minOccurs: 0 |
||
200 | * @var string |
||
201 | */ |
||
202 | public $inauguration_body; |
||
203 | /** |
||
204 | * The under_receivership |
||
205 | * Meta informations extracted from the WSDL |
||
206 | * - minOccurs: 0 |
||
207 | * @var string |
||
208 | */ |
||
209 | public $under_receivership; |
||
210 | /** |
||
211 | * The rights_against_third_parties |
||
212 | * Meta informations extracted from the WSDL |
||
213 | * - minOccurs: 0 |
||
214 | * @var string |
||
215 | */ |
||
216 | public $rights_against_third_parties; |
||
217 | /** |
||
218 | * The release_of_covenant |
||
219 | * Meta informations extracted from the WSDL |
||
220 | * - minOccurs: 0 |
||
221 | * @var string |
||
222 | */ |
||
223 | public $release_of_covenant; |
||
224 | /** |
||
225 | * The date_since |
||
226 | * Meta informations extracted from the WSDL |
||
227 | * - minOccurs: 0 |
||
228 | * @var \Webservices\StructType\DutchBusinessDateV2 |
||
229 | */ |
||
230 | public $date_since; |
||
231 | /** |
||
232 | * The date_joined |
||
233 | * Meta informations extracted from the WSDL |
||
234 | * - minOccurs: 0 |
||
235 | * @var \Webservices\StructType\DutchBusinessDateV2 |
||
236 | */ |
||
237 | public $date_joined; |
||
238 | /** |
||
239 | * The remarks |
||
240 | * Meta informations extracted from the WSDL |
||
241 | * - minOccurs: 0 |
||
242 | * @var \Webservices\ArrayType\StringArray |
||
243 | */ |
||
244 | public $remarks; |
||
245 | /** |
||
246 | * Constructor method for DutchBusinessPositionV2 |
||
247 | * @uses DutchBusinessPositionV2::setFunctionary() |
||
248 | * @uses DutchBusinessPositionV2::setOrganisation() |
||
249 | * @uses DutchBusinessPositionV2::setResidential_address() |
||
250 | * @uses DutchBusinessPositionV2::setCorrespondence_address() |
||
251 | * @uses DutchBusinessPositionV2::setEstablishment_address() |
||
252 | * @uses DutchBusinessPositionV2::setLongest_serving() |
||
253 | * @uses DutchBusinessPositionV2::setFunction_type() |
||
254 | * @uses DutchBusinessPositionV2::setFunction_description() |
||
255 | * @uses DutchBusinessPositionV2::setFunction_title() |
||
256 | * @uses DutchBusinessPositionV2::setFunction_start_date() |
||
257 | * @uses DutchBusinessPositionV2::setFunction_registration_date() |
||
258 | * @uses DutchBusinessPositionV2::setFunction_end_date() |
||
259 | * @uses DutchBusinessPositionV2::setFunction_authorization() |
||
260 | * @uses DutchBusinessPositionV2::setFunction_authorization_description() |
||
261 | * @uses DutchBusinessPositionV2::setFunction_authorization_start_date() |
||
262 | * @uses DutchBusinessPositionV2::setFunction_authorization_signing_power() |
||
263 | * @uses DutchBusinessPositionV2::setFunction_authorization_end_date() |
||
264 | * @uses DutchBusinessPositionV2::setAuthorization_description() |
||
265 | * @uses DutchBusinessPositionV2::setAuthorization_establishment_number() |
||
266 | * @uses DutchBusinessPositionV2::setAuthorization_start_date() |
||
267 | * @uses DutchBusinessPositionV2::setAuthorization_end_date() |
||
268 | * @uses DutchBusinessPositionV2::setAuthorization_constraints() |
||
269 | * @uses DutchBusinessPositionV2::setInauguration() |
||
270 | * @uses DutchBusinessPositionV2::setInauguration_function() |
||
271 | * @uses DutchBusinessPositionV2::setInauguration_duration() |
||
272 | * @uses DutchBusinessPositionV2::setInauguration_date() |
||
273 | * @uses DutchBusinessPositionV2::setInauguration_body() |
||
274 | * @uses DutchBusinessPositionV2::setUnder_receivership() |
||
275 | * @uses DutchBusinessPositionV2::setRights_against_third_parties() |
||
276 | * @uses DutchBusinessPositionV2::setRelease_of_covenant() |
||
277 | * @uses DutchBusinessPositionV2::setDate_since() |
||
278 | * @uses DutchBusinessPositionV2::setDate_joined() |
||
279 | * @uses DutchBusinessPositionV2::setRemarks() |
||
280 | * @param \Webservices\StructType\DutchBusinessPersonV2 $functionary |
||
281 | * @param \Webservices\StructType\DutchBusinessOrganizationReferenceV2 $organisation |
||
282 | * @param \Webservices\StructType\DutchBusinessAddressV2 $residential_address |
||
283 | * @param \Webservices\StructType\DutchBusinessAddressV2 $correspondence_address |
||
284 | * @param \Webservices\StructType\DutchBusinessAddressV2 $establishment_address |
||
285 | * @param bool $longest_serving |
||
286 | * @param string $function_type |
||
287 | * @param string $function_description |
||
288 | * @param string $function_title |
||
289 | * @param \Webservices\StructType\DutchBusinessDateV2 $function_start_date |
||
290 | * @param \Webservices\StructType\DutchBusinessDateV2 $function_registration_date |
||
291 | * @param \Webservices\StructType\DutchBusinessDateV2 $function_end_date |
||
292 | * @param string $function_authorization |
||
293 | * @param string $function_authorization_description |
||
294 | * @param \Webservices\StructType\DutchBusinessDateV2 $function_authorization_start_date |
||
295 | * @param string $function_authorization_signing_power |
||
296 | * @param \Webservices\StructType\DutchBusinessDateV2 $function_authorization_end_date |
||
297 | * @param string $authorization_description |
||
298 | * @param string $authorization_establishment_number |
||
299 | * @param \Webservices\StructType\DutchBusinessDateV2 $authorization_start_date |
||
300 | * @param \Webservices\StructType\DutchBusinessDateV2 $authorization_end_date |
||
301 | * @param \Webservices\ArrayType\StringArray $authorization_constraints |
||
302 | * @param string $inauguration |
||
303 | * @param string $inauguration_function |
||
304 | * @param string $inauguration_duration |
||
305 | * @param \Webservices\StructType\DutchBusinessDateV2 $inauguration_date |
||
306 | * @param string $inauguration_body |
||
307 | * @param string $under_receivership |
||
308 | * @param string $rights_against_third_parties |
||
309 | * @param string $release_of_covenant |
||
310 | * @param \Webservices\StructType\DutchBusinessDateV2 $date_since |
||
311 | * @param \Webservices\StructType\DutchBusinessDateV2 $date_joined |
||
312 | * @param \Webservices\ArrayType\StringArray $remarks |
||
313 | */ |
||
314 | public function __construct(\Webservices\StructType\DutchBusinessPersonV2 $functionary = null, \Webservices\StructType\DutchBusinessOrganizationReferenceV2 $organisation = null, \Webservices\StructType\DutchBusinessAddressV2 $residential_address = null, \Webservices\StructType\DutchBusinessAddressV2 $correspondence_address = null, \Webservices\StructType\DutchBusinessAddressV2 $establishment_address = null, $longest_serving = null, $function_type = null, $function_description = null, $function_title = null, \Webservices\StructType\DutchBusinessDateV2 $function_start_date = null, \Webservices\StructType\DutchBusinessDateV2 $function_registration_date = null, \Webservices\StructType\DutchBusinessDateV2 $function_end_date = null, $function_authorization = null, $function_authorization_description = null, \Webservices\StructType\DutchBusinessDateV2 $function_authorization_start_date = null, $function_authorization_signing_power = null, \Webservices\StructType\DutchBusinessDateV2 $function_authorization_end_date = null, $authorization_description = null, $authorization_establishment_number = null, \Webservices\StructType\DutchBusinessDateV2 $authorization_start_date = null, \Webservices\StructType\DutchBusinessDateV2 $authorization_end_date = null, \Webservices\ArrayType\StringArray $authorization_constraints = null, $inauguration = null, $inauguration_function = null, $inauguration_duration = null, \Webservices\StructType\DutchBusinessDateV2 $inauguration_date = null, $inauguration_body = null, $under_receivership = null, $rights_against_third_parties = null, $release_of_covenant = null, \Webservices\StructType\DutchBusinessDateV2 $date_since = null, \Webservices\StructType\DutchBusinessDateV2 $date_joined = null, \Webservices\ArrayType\StringArray $remarks = null) |
||
315 | { |
||
316 | $this |
||
317 | ->setFunctionary($functionary) |
||
318 | ->setOrganisation($organisation) |
||
319 | ->setResidential_address($residential_address) |
||
320 | ->setCorrespondence_address($correspondence_address) |
||
321 | ->setEstablishment_address($establishment_address) |
||
322 | ->setLongest_serving($longest_serving) |
||
323 | ->setFunction_type($function_type) |
||
324 | ->setFunction_description($function_description) |
||
325 | ->setFunction_title($function_title) |
||
326 | ->setFunction_start_date($function_start_date) |
||
327 | ->setFunction_registration_date($function_registration_date) |
||
328 | ->setFunction_end_date($function_end_date) |
||
329 | ->setFunction_authorization($function_authorization) |
||
330 | ->setFunction_authorization_description($function_authorization_description) |
||
331 | ->setFunction_authorization_start_date($function_authorization_start_date) |
||
332 | ->setFunction_authorization_signing_power($function_authorization_signing_power) |
||
333 | ->setFunction_authorization_end_date($function_authorization_end_date) |
||
334 | ->setAuthorization_description($authorization_description) |
||
335 | ->setAuthorization_establishment_number($authorization_establishment_number) |
||
336 | ->setAuthorization_start_date($authorization_start_date) |
||
337 | ->setAuthorization_end_date($authorization_end_date) |
||
338 | ->setAuthorization_constraints($authorization_constraints) |
||
339 | ->setInauguration($inauguration) |
||
340 | ->setInauguration_function($inauguration_function) |
||
341 | ->setInauguration_duration($inauguration_duration) |
||
342 | ->setInauguration_date($inauguration_date) |
||
343 | ->setInauguration_body($inauguration_body) |
||
344 | ->setUnder_receivership($under_receivership) |
||
345 | ->setRights_against_third_parties($rights_against_third_parties) |
||
346 | ->setRelease_of_covenant($release_of_covenant) |
||
347 | ->setDate_since($date_since) |
||
348 | ->setDate_joined($date_joined) |
||
349 | ->setRemarks($remarks); |
||
350 | } |
||
351 | /** |
||
352 | * Get functionary value |
||
353 | * @return \Webservices\StructType\DutchBusinessPersonV2|null |
||
354 | */ |
||
355 | public function getFunctionary() |
||
356 | { |
||
357 | return $this->functionary; |
||
358 | } |
||
359 | /** |
||
360 | * Set functionary value |
||
361 | * @param \Webservices\StructType\DutchBusinessPersonV2 $functionary |
||
362 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
363 | */ |
||
364 | public function setFunctionary(\Webservices\StructType\DutchBusinessPersonV2 $functionary = null) |
||
365 | { |
||
366 | $this->functionary = $functionary; |
||
367 | return $this; |
||
368 | } |
||
369 | /** |
||
370 | * Get organisation value |
||
371 | * @return \Webservices\StructType\DutchBusinessOrganizationReferenceV2|null |
||
372 | */ |
||
373 | public function getOrganisation() |
||
374 | { |
||
375 | return $this->organisation; |
||
376 | } |
||
377 | /** |
||
378 | * Set organisation value |
||
379 | * @param \Webservices\StructType\DutchBusinessOrganizationReferenceV2 $organisation |
||
380 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
381 | */ |
||
382 | public function setOrganisation(\Webservices\StructType\DutchBusinessOrganizationReferenceV2 $organisation = null) |
||
383 | { |
||
384 | $this->organisation = $organisation; |
||
385 | return $this; |
||
386 | } |
||
387 | /** |
||
388 | * Get residential_address value |
||
389 | * @return \Webservices\StructType\DutchBusinessAddressV2|null |
||
390 | */ |
||
391 | public function getResidential_address() |
||
392 | { |
||
393 | return $this->residential_address; |
||
394 | } |
||
395 | /** |
||
396 | * Set residential_address value |
||
397 | * @param \Webservices\StructType\DutchBusinessAddressV2 $residential_address |
||
398 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
399 | */ |
||
400 | public function setResidential_address(\Webservices\StructType\DutchBusinessAddressV2 $residential_address = null) |
||
401 | { |
||
402 | $this->residential_address = $residential_address; |
||
403 | return $this; |
||
404 | } |
||
405 | /** |
||
406 | * Get correspondence_address value |
||
407 | * @return \Webservices\StructType\DutchBusinessAddressV2|null |
||
408 | */ |
||
409 | public function getCorrespondence_address() |
||
410 | { |
||
411 | return $this->correspondence_address; |
||
412 | } |
||
413 | /** |
||
414 | * Set correspondence_address value |
||
415 | * @param \Webservices\StructType\DutchBusinessAddressV2 $correspondence_address |
||
416 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
417 | */ |
||
418 | public function setCorrespondence_address(\Webservices\StructType\DutchBusinessAddressV2 $correspondence_address = null) |
||
419 | { |
||
420 | $this->correspondence_address = $correspondence_address; |
||
421 | return $this; |
||
422 | } |
||
423 | /** |
||
424 | * Get establishment_address value |
||
425 | * @return \Webservices\StructType\DutchBusinessAddressV2|null |
||
426 | */ |
||
427 | public function getEstablishment_address() |
||
428 | { |
||
429 | return $this->establishment_address; |
||
430 | } |
||
431 | /** |
||
432 | * Set establishment_address value |
||
433 | * @param \Webservices\StructType\DutchBusinessAddressV2 $establishment_address |
||
434 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
435 | */ |
||
436 | public function setEstablishment_address(\Webservices\StructType\DutchBusinessAddressV2 $establishment_address = null) |
||
437 | { |
||
438 | $this->establishment_address = $establishment_address; |
||
439 | return $this; |
||
440 | } |
||
441 | /** |
||
442 | * Get longest_serving value |
||
443 | * @return bool|null |
||
444 | */ |
||
445 | public function getLongest_serving() |
||
446 | { |
||
447 | return $this->longest_serving; |
||
448 | } |
||
449 | /** |
||
450 | * Set longest_serving value |
||
451 | * @param bool $longest_serving |
||
452 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
453 | */ |
||
454 | public function setLongest_serving($longest_serving = null) |
||
455 | { |
||
456 | // validation for constraint: boolean |
||
457 | if (!is_null($longest_serving) && !is_bool($longest_serving)) { |
||
|
|||
458 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($longest_serving)), __LINE__); |
||
459 | } |
||
460 | $this->longest_serving = $longest_serving; |
||
461 | return $this; |
||
462 | } |
||
463 | /** |
||
464 | * Get function_type value |
||
465 | * @return string|null |
||
466 | */ |
||
467 | public function getFunction_type() |
||
468 | { |
||
469 | return $this->function_type; |
||
470 | } |
||
471 | /** |
||
472 | * Set function_type value |
||
473 | * @param string $function_type |
||
474 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
475 | */ |
||
476 | public function setFunction_type($function_type = null) |
||
477 | { |
||
478 | // validation for constraint: string |
||
479 | if (!is_null($function_type) && !is_string($function_type)) { |
||
480 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($function_type)), __LINE__); |
||
481 | } |
||
482 | $this->function_type = $function_type; |
||
483 | return $this; |
||
484 | } |
||
485 | /** |
||
486 | * Get function_description value |
||
487 | * @return string|null |
||
488 | */ |
||
489 | public function getFunction_description() |
||
490 | { |
||
491 | return $this->function_description; |
||
492 | } |
||
493 | /** |
||
494 | * Set function_description value |
||
495 | * @param string $function_description |
||
496 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
497 | */ |
||
498 | public function setFunction_description($function_description = null) |
||
499 | { |
||
500 | // validation for constraint: string |
||
501 | if (!is_null($function_description) && !is_string($function_description)) { |
||
502 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($function_description)), __LINE__); |
||
503 | } |
||
504 | $this->function_description = $function_description; |
||
505 | return $this; |
||
506 | } |
||
507 | /** |
||
508 | * Get function_title value |
||
509 | * @return string|null |
||
510 | */ |
||
511 | public function getFunction_title() |
||
512 | { |
||
513 | return $this->function_title; |
||
514 | } |
||
515 | /** |
||
516 | * Set function_title value |
||
517 | * @param string $function_title |
||
518 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
519 | */ |
||
520 | public function setFunction_title($function_title = null) |
||
521 | { |
||
522 | // validation for constraint: string |
||
523 | if (!is_null($function_title) && !is_string($function_title)) { |
||
524 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($function_title)), __LINE__); |
||
525 | } |
||
526 | $this->function_title = $function_title; |
||
527 | return $this; |
||
528 | } |
||
529 | /** |
||
530 | * Get function_start_date value |
||
531 | * @return \Webservices\StructType\DutchBusinessDateV2|null |
||
532 | */ |
||
533 | public function getFunction_start_date() |
||
534 | { |
||
535 | return $this->function_start_date; |
||
536 | } |
||
537 | /** |
||
538 | * Set function_start_date value |
||
539 | * @param \Webservices\StructType\DutchBusinessDateV2 $function_start_date |
||
540 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
541 | */ |
||
542 | public function setFunction_start_date(\Webservices\StructType\DutchBusinessDateV2 $function_start_date = null) |
||
543 | { |
||
544 | $this->function_start_date = $function_start_date; |
||
545 | return $this; |
||
546 | } |
||
547 | /** |
||
548 | * Get function_registration_date value |
||
549 | * @return \Webservices\StructType\DutchBusinessDateV2|null |
||
550 | */ |
||
551 | public function getFunction_registration_date() |
||
552 | { |
||
553 | return $this->function_registration_date; |
||
554 | } |
||
555 | /** |
||
556 | * Set function_registration_date value |
||
557 | * @param \Webservices\StructType\DutchBusinessDateV2 $function_registration_date |
||
558 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
559 | */ |
||
560 | public function setFunction_registration_date(\Webservices\StructType\DutchBusinessDateV2 $function_registration_date = null) |
||
561 | { |
||
562 | $this->function_registration_date = $function_registration_date; |
||
563 | return $this; |
||
564 | } |
||
565 | /** |
||
566 | * Get function_end_date value |
||
567 | * @return \Webservices\StructType\DutchBusinessDateV2|null |
||
568 | */ |
||
569 | public function getFunction_end_date() |
||
570 | { |
||
571 | return $this->function_end_date; |
||
572 | } |
||
573 | /** |
||
574 | * Set function_end_date value |
||
575 | * @param \Webservices\StructType\DutchBusinessDateV2 $function_end_date |
||
576 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
577 | */ |
||
578 | public function setFunction_end_date(\Webservices\StructType\DutchBusinessDateV2 $function_end_date = null) |
||
579 | { |
||
580 | $this->function_end_date = $function_end_date; |
||
581 | return $this; |
||
582 | } |
||
583 | /** |
||
584 | * Get function_authorization value |
||
585 | * @return string|null |
||
586 | */ |
||
587 | public function getFunction_authorization() |
||
588 | { |
||
589 | return $this->function_authorization; |
||
590 | } |
||
591 | /** |
||
592 | * Set function_authorization value |
||
593 | * @param string $function_authorization |
||
594 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
595 | */ |
||
596 | public function setFunction_authorization($function_authorization = null) |
||
597 | { |
||
598 | // validation for constraint: string |
||
599 | if (!is_null($function_authorization) && !is_string($function_authorization)) { |
||
600 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($function_authorization)), __LINE__); |
||
601 | } |
||
602 | $this->function_authorization = $function_authorization; |
||
603 | return $this; |
||
604 | } |
||
605 | /** |
||
606 | * Get function_authorization_description value |
||
607 | * @return string|null |
||
608 | */ |
||
609 | public function getFunction_authorization_description() |
||
610 | { |
||
611 | return $this->function_authorization_description; |
||
612 | } |
||
613 | /** |
||
614 | * Set function_authorization_description value |
||
615 | * @param string $function_authorization_description |
||
616 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
617 | */ |
||
618 | public function setFunction_authorization_description($function_authorization_description = null) |
||
619 | { |
||
620 | // validation for constraint: string |
||
621 | if (!is_null($function_authorization_description) && !is_string($function_authorization_description)) { |
||
622 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($function_authorization_description)), __LINE__); |
||
623 | } |
||
624 | $this->function_authorization_description = $function_authorization_description; |
||
625 | return $this; |
||
626 | } |
||
627 | /** |
||
628 | * Get function_authorization_start_date value |
||
629 | * @return \Webservices\StructType\DutchBusinessDateV2|null |
||
630 | */ |
||
631 | public function getFunction_authorization_start_date() |
||
632 | { |
||
633 | return $this->function_authorization_start_date; |
||
634 | } |
||
635 | /** |
||
636 | * Set function_authorization_start_date value |
||
637 | * @param \Webservices\StructType\DutchBusinessDateV2 $function_authorization_start_date |
||
638 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
639 | */ |
||
640 | public function setFunction_authorization_start_date(\Webservices\StructType\DutchBusinessDateV2 $function_authorization_start_date = null) |
||
641 | { |
||
642 | $this->function_authorization_start_date = $function_authorization_start_date; |
||
643 | return $this; |
||
644 | } |
||
645 | /** |
||
646 | * Get function_authorization_signing_power value |
||
647 | * @return string|null |
||
648 | */ |
||
649 | public function getFunction_authorization_signing_power() |
||
650 | { |
||
651 | return $this->function_authorization_signing_power; |
||
652 | } |
||
653 | /** |
||
654 | * Set function_authorization_signing_power value |
||
655 | * @param string $function_authorization_signing_power |
||
656 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
657 | */ |
||
658 | public function setFunction_authorization_signing_power($function_authorization_signing_power = null) |
||
659 | { |
||
660 | // validation for constraint: string |
||
661 | if (!is_null($function_authorization_signing_power) && !is_string($function_authorization_signing_power)) { |
||
662 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($function_authorization_signing_power)), __LINE__); |
||
663 | } |
||
664 | $this->function_authorization_signing_power = $function_authorization_signing_power; |
||
665 | return $this; |
||
666 | } |
||
667 | /** |
||
668 | * Get function_authorization_end_date value |
||
669 | * @return \Webservices\StructType\DutchBusinessDateV2|null |
||
670 | */ |
||
671 | public function getFunction_authorization_end_date() |
||
672 | { |
||
673 | return $this->function_authorization_end_date; |
||
674 | } |
||
675 | /** |
||
676 | * Set function_authorization_end_date value |
||
677 | * @param \Webservices\StructType\DutchBusinessDateV2 $function_authorization_end_date |
||
678 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
679 | */ |
||
680 | public function setFunction_authorization_end_date(\Webservices\StructType\DutchBusinessDateV2 $function_authorization_end_date = null) |
||
681 | { |
||
682 | $this->function_authorization_end_date = $function_authorization_end_date; |
||
683 | return $this; |
||
684 | } |
||
685 | /** |
||
686 | * Get authorization_description value |
||
687 | * @return string|null |
||
688 | */ |
||
689 | public function getAuthorization_description() |
||
690 | { |
||
691 | return $this->authorization_description; |
||
692 | } |
||
693 | /** |
||
694 | * Set authorization_description value |
||
695 | * @param string $authorization_description |
||
696 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
697 | */ |
||
698 | public function setAuthorization_description($authorization_description = null) |
||
699 | { |
||
700 | // validation for constraint: string |
||
701 | if (!is_null($authorization_description) && !is_string($authorization_description)) { |
||
702 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($authorization_description)), __LINE__); |
||
703 | } |
||
704 | $this->authorization_description = $authorization_description; |
||
705 | return $this; |
||
706 | } |
||
707 | /** |
||
708 | * Get authorization_establishment_number value |
||
709 | * @return string|null |
||
710 | */ |
||
711 | public function getAuthorization_establishment_number() |
||
712 | { |
||
713 | return $this->authorization_establishment_number; |
||
714 | } |
||
715 | /** |
||
716 | * Set authorization_establishment_number value |
||
717 | * @param string $authorization_establishment_number |
||
718 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
719 | */ |
||
720 | public function setAuthorization_establishment_number($authorization_establishment_number = null) |
||
721 | { |
||
722 | // validation for constraint: string |
||
723 | if (!is_null($authorization_establishment_number) && !is_string($authorization_establishment_number)) { |
||
724 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($authorization_establishment_number)), __LINE__); |
||
725 | } |
||
726 | $this->authorization_establishment_number = $authorization_establishment_number; |
||
727 | return $this; |
||
728 | } |
||
729 | /** |
||
730 | * Get authorization_start_date value |
||
731 | * @return \Webservices\StructType\DutchBusinessDateV2|null |
||
732 | */ |
||
733 | public function getAuthorization_start_date() |
||
734 | { |
||
735 | return $this->authorization_start_date; |
||
736 | } |
||
737 | /** |
||
738 | * Set authorization_start_date value |
||
739 | * @param \Webservices\StructType\DutchBusinessDateV2 $authorization_start_date |
||
740 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
741 | */ |
||
742 | public function setAuthorization_start_date(\Webservices\StructType\DutchBusinessDateV2 $authorization_start_date = null) |
||
743 | { |
||
744 | $this->authorization_start_date = $authorization_start_date; |
||
745 | return $this; |
||
746 | } |
||
747 | /** |
||
748 | * Get authorization_end_date value |
||
749 | * @return \Webservices\StructType\DutchBusinessDateV2|null |
||
750 | */ |
||
751 | public function getAuthorization_end_date() |
||
752 | { |
||
753 | return $this->authorization_end_date; |
||
754 | } |
||
755 | /** |
||
756 | * Set authorization_end_date value |
||
757 | * @param \Webservices\StructType\DutchBusinessDateV2 $authorization_end_date |
||
758 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
759 | */ |
||
760 | public function setAuthorization_end_date(\Webservices\StructType\DutchBusinessDateV2 $authorization_end_date = null) |
||
761 | { |
||
762 | $this->authorization_end_date = $authorization_end_date; |
||
763 | return $this; |
||
764 | } |
||
765 | /** |
||
766 | * Get authorization_constraints value |
||
767 | * @return \Webservices\ArrayType\StringArray|null |
||
768 | */ |
||
769 | public function getAuthorization_constraints() |
||
770 | { |
||
771 | return $this->authorization_constraints; |
||
772 | } |
||
773 | /** |
||
774 | * Set authorization_constraints value |
||
775 | * @param \Webservices\ArrayType\StringArray $authorization_constraints |
||
776 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
777 | */ |
||
778 | public function setAuthorization_constraints(\Webservices\ArrayType\StringArray $authorization_constraints = null) |
||
779 | { |
||
780 | $this->authorization_constraints = $authorization_constraints; |
||
781 | return $this; |
||
782 | } |
||
783 | /** |
||
784 | * Get inauguration value |
||
785 | * @return string|null |
||
786 | */ |
||
787 | public function getInauguration() |
||
788 | { |
||
789 | return $this->inauguration; |
||
790 | } |
||
791 | /** |
||
792 | * Set inauguration value |
||
793 | * @param string $inauguration |
||
794 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
795 | */ |
||
796 | public function setInauguration($inauguration = null) |
||
797 | { |
||
798 | // validation for constraint: string |
||
799 | if (!is_null($inauguration) && !is_string($inauguration)) { |
||
800 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($inauguration)), __LINE__); |
||
801 | } |
||
802 | $this->inauguration = $inauguration; |
||
803 | return $this; |
||
804 | } |
||
805 | /** |
||
806 | * Get inauguration_function value |
||
807 | * @return string|null |
||
808 | */ |
||
809 | public function getInauguration_function() |
||
810 | { |
||
811 | return $this->inauguration_function; |
||
812 | } |
||
813 | /** |
||
814 | * Set inauguration_function value |
||
815 | * @param string $inauguration_function |
||
816 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
817 | */ |
||
818 | public function setInauguration_function($inauguration_function = null) |
||
819 | { |
||
820 | // validation for constraint: string |
||
821 | if (!is_null($inauguration_function) && !is_string($inauguration_function)) { |
||
822 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($inauguration_function)), __LINE__); |
||
823 | } |
||
824 | $this->inauguration_function = $inauguration_function; |
||
825 | return $this; |
||
826 | } |
||
827 | /** |
||
828 | * Get inauguration_duration value |
||
829 | * @return string|null |
||
830 | */ |
||
831 | public function getInauguration_duration() |
||
832 | { |
||
833 | return $this->inauguration_duration; |
||
834 | } |
||
835 | /** |
||
836 | * Set inauguration_duration value |
||
837 | * @param string $inauguration_duration |
||
838 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
839 | */ |
||
840 | public function setInauguration_duration($inauguration_duration = null) |
||
841 | { |
||
842 | // validation for constraint: string |
||
843 | if (!is_null($inauguration_duration) && !is_string($inauguration_duration)) { |
||
844 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($inauguration_duration)), __LINE__); |
||
845 | } |
||
846 | $this->inauguration_duration = $inauguration_duration; |
||
847 | return $this; |
||
848 | } |
||
849 | /** |
||
850 | * Get inauguration_date value |
||
851 | * @return \Webservices\StructType\DutchBusinessDateV2|null |
||
852 | */ |
||
853 | public function getInauguration_date() |
||
854 | { |
||
855 | return $this->inauguration_date; |
||
856 | } |
||
857 | /** |
||
858 | * Set inauguration_date value |
||
859 | * @param \Webservices\StructType\DutchBusinessDateV2 $inauguration_date |
||
860 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
861 | */ |
||
862 | public function setInauguration_date(\Webservices\StructType\DutchBusinessDateV2 $inauguration_date = null) |
||
863 | { |
||
864 | $this->inauguration_date = $inauguration_date; |
||
865 | return $this; |
||
866 | } |
||
867 | /** |
||
868 | * Get inauguration_body value |
||
869 | * @return string|null |
||
870 | */ |
||
871 | public function getInauguration_body() |
||
872 | { |
||
873 | return $this->inauguration_body; |
||
874 | } |
||
875 | /** |
||
876 | * Set inauguration_body value |
||
877 | * @param string $inauguration_body |
||
878 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
879 | */ |
||
880 | public function setInauguration_body($inauguration_body = null) |
||
881 | { |
||
882 | // validation for constraint: string |
||
883 | if (!is_null($inauguration_body) && !is_string($inauguration_body)) { |
||
884 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($inauguration_body)), __LINE__); |
||
885 | } |
||
886 | $this->inauguration_body = $inauguration_body; |
||
887 | return $this; |
||
888 | } |
||
889 | /** |
||
890 | * Get under_receivership value |
||
891 | * @return string|null |
||
892 | */ |
||
893 | public function getUnder_receivership() |
||
894 | { |
||
895 | return $this->under_receivership; |
||
896 | } |
||
897 | /** |
||
898 | * Set under_receivership value |
||
899 | * @param string $under_receivership |
||
900 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
901 | */ |
||
902 | public function setUnder_receivership($under_receivership = null) |
||
910 | } |
||
911 | /** |
||
912 | * Get rights_against_third_parties value |
||
913 | * @return string|null |
||
914 | */ |
||
915 | public function getRights_against_third_parties() |
||
916 | { |
||
917 | return $this->rights_against_third_parties; |
||
918 | } |
||
919 | /** |
||
920 | * Set rights_against_third_parties value |
||
921 | * @param string $rights_against_third_parties |
||
922 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
923 | */ |
||
924 | public function setRights_against_third_parties($rights_against_third_parties = null) |
||
925 | { |
||
926 | // validation for constraint: string |
||
927 | if (!is_null($rights_against_third_parties) && !is_string($rights_against_third_parties)) { |
||
928 | throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($rights_against_third_parties)), __LINE__); |
||
929 | } |
||
930 | $this->rights_against_third_parties = $rights_against_third_parties; |
||
931 | return $this; |
||
932 | } |
||
933 | /** |
||
934 | * Get release_of_covenant value |
||
935 | * @return string|null |
||
936 | */ |
||
937 | public function getRelease_of_covenant() |
||
938 | { |
||
939 | return $this->release_of_covenant; |
||
940 | } |
||
941 | /** |
||
942 | * Set release_of_covenant value |
||
943 | * @param string $release_of_covenant |
||
944 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
945 | */ |
||
946 | public function setRelease_of_covenant($release_of_covenant = null) |
||
954 | } |
||
955 | /** |
||
956 | * Get date_since value |
||
957 | * @return \Webservices\StructType\DutchBusinessDateV2|null |
||
958 | */ |
||
959 | public function getDate_since() |
||
960 | { |
||
961 | return $this->date_since; |
||
962 | } |
||
963 | /** |
||
964 | * Set date_since value |
||
965 | * @param \Webservices\StructType\DutchBusinessDateV2 $date_since |
||
966 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
967 | */ |
||
968 | public function setDate_since(\Webservices\StructType\DutchBusinessDateV2 $date_since = null) |
||
969 | { |
||
970 | $this->date_since = $date_since; |
||
971 | return $this; |
||
972 | } |
||
973 | /** |
||
974 | * Get date_joined value |
||
975 | * @return \Webservices\StructType\DutchBusinessDateV2|null |
||
976 | */ |
||
977 | public function getDate_joined() |
||
978 | { |
||
979 | return $this->date_joined; |
||
980 | } |
||
981 | /** |
||
982 | * Set date_joined value |
||
983 | * @param \Webservices\StructType\DutchBusinessDateV2 $date_joined |
||
984 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
985 | */ |
||
986 | public function setDate_joined(\Webservices\StructType\DutchBusinessDateV2 $date_joined = null) |
||
987 | { |
||
988 | $this->date_joined = $date_joined; |
||
989 | return $this; |
||
990 | } |
||
991 | /** |
||
992 | * Get remarks value |
||
993 | * @return \Webservices\ArrayType\StringArray|null |
||
994 | */ |
||
995 | public function getRemarks() |
||
996 | { |
||
997 | return $this->remarks; |
||
998 | } |
||
999 | /** |
||
1000 | * Set remarks value |
||
1001 | * @param \Webservices\ArrayType\StringArray $remarks |
||
1002 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
1003 | */ |
||
1004 | public function setRemarks(\Webservices\ArrayType\StringArray $remarks = null) |
||
1008 | } |
||
1009 | /** |
||
1010 | * Method called when an object has been exported with var_export() functions |
||
1011 | * It allows to return an object instantiated with the values |
||
1012 | * @see AbstractStructBase::__set_state() |
||
1013 | * @uses AbstractStructBase::__set_state() |
||
1014 | * @param array $array the exported values |
||
1015 | * @return \Webservices\StructType\DutchBusinessPositionV2 |
||
1016 | */ |
||
1017 | public static function __set_state(array $array) |
||
1018 | { |
||
1019 | return parent::__set_state($array); |
||
1020 | } |
||
1021 | /** |
||
1022 | * Method returning the class name |
||
1023 | * @return string __CLASS__ |
||
1024 | */ |
||
1025 | public function __toString() |
||
1026 | { |
||
1027 | return __CLASS__; |
||
1028 | } |
||
1029 | } |
||
1030 |