Total Complexity | 131 |
Total Lines | 1031 |
Duplicated Lines | 0 % |
Changes | 0 |
Complex classes like EwsNetworkItemType 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 EwsNetworkItemType, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
16 | class EwsNetworkItemType extends EwsItemType |
||
17 | { |
||
18 | /** |
||
19 | * The DomainId |
||
20 | * Meta information extracted from the WSDL |
||
21 | * - minOccurs: 0 |
||
22 | * @var int|null |
||
23 | */ |
||
24 | protected ?int $DomainId = null; |
||
25 | /** |
||
26 | * The DomainTag |
||
27 | * Meta information extracted from the WSDL |
||
28 | * - minOccurs: 0 |
||
29 | * @var string|null |
||
30 | */ |
||
31 | protected ?string $DomainTag = null; |
||
32 | /** |
||
33 | * The UserTileUrl |
||
34 | * Meta information extracted from the WSDL |
||
35 | * - minOccurs: 0 |
||
36 | * @var string|null |
||
37 | */ |
||
38 | protected ?string $UserTileUrl = null; |
||
39 | /** |
||
40 | * The ProfileUrl |
||
41 | * Meta information extracted from the WSDL |
||
42 | * - minOccurs: 0 |
||
43 | * @var string|null |
||
44 | */ |
||
45 | protected ?string $ProfileUrl = null; |
||
46 | /** |
||
47 | * The Settings |
||
48 | * Meta information extracted from the WSDL |
||
49 | * - minOccurs: 0 |
||
50 | * @var int|null |
||
51 | */ |
||
52 | protected ?int $Settings = null; |
||
53 | /** |
||
54 | * The IsDefault |
||
55 | * Meta information extracted from the WSDL |
||
56 | * - minOccurs: 0 |
||
57 | * @var bool|null |
||
58 | */ |
||
59 | protected ?bool $IsDefault = null; |
||
60 | /** |
||
61 | * The AutoLinkError |
||
62 | * Meta information extracted from the WSDL |
||
63 | * - minOccurs: 0 |
||
64 | * @var string|null |
||
65 | */ |
||
66 | protected ?string $AutoLinkError = null; |
||
67 | /** |
||
68 | * The AutoLinkSuccess |
||
69 | * Meta information extracted from the WSDL |
||
70 | * - minOccurs: 0 |
||
71 | * @var string|null |
||
72 | */ |
||
73 | protected ?string $AutoLinkSuccess = null; |
||
74 | /** |
||
75 | * The UserEmail |
||
76 | * Meta information extracted from the WSDL |
||
77 | * - minOccurs: 0 |
||
78 | * @var string|null |
||
79 | */ |
||
80 | protected ?string $UserEmail = null; |
||
81 | /** |
||
82 | * The ClientPublishSecret |
||
83 | * Meta information extracted from the WSDL |
||
84 | * - minOccurs: 0 |
||
85 | * @var string|null |
||
86 | */ |
||
87 | protected ?string $ClientPublishSecret = null; |
||
88 | /** |
||
89 | * The ClientToken |
||
90 | * Meta information extracted from the WSDL |
||
91 | * - minOccurs: 0 |
||
92 | * @var string|null |
||
93 | */ |
||
94 | protected ?string $ClientToken = null; |
||
95 | /** |
||
96 | * The ClientToken2 |
||
97 | * Meta information extracted from the WSDL |
||
98 | * - minOccurs: 0 |
||
99 | * @var string|null |
||
100 | */ |
||
101 | protected ?string $ClientToken2 = null; |
||
102 | /** |
||
103 | * The ContactSyncError |
||
104 | * Meta information extracted from the WSDL |
||
105 | * - minOccurs: 0 |
||
106 | * @var string|null |
||
107 | */ |
||
108 | protected ?string $ContactSyncError = null; |
||
109 | /** |
||
110 | * The ContactSyncSuccess |
||
111 | * Meta information extracted from the WSDL |
||
112 | * - minOccurs: 0 |
||
113 | * @var string|null |
||
114 | */ |
||
115 | protected ?string $ContactSyncSuccess = null; |
||
116 | /** |
||
117 | * The ErrorOffers |
||
118 | * Meta information extracted from the WSDL |
||
119 | * - minOccurs: 0 |
||
120 | * @var int|null |
||
121 | */ |
||
122 | protected ?int $ErrorOffers = null; |
||
123 | /** |
||
124 | * The FirstAuthErrorDates |
||
125 | * Meta information extracted from the WSDL |
||
126 | * - minOccurs: 0 |
||
127 | * @var string|null |
||
128 | */ |
||
129 | protected ?string $FirstAuthErrorDates = null; |
||
130 | /** |
||
131 | * The LastVersionSaved |
||
132 | * Meta information extracted from the WSDL |
||
133 | * - minOccurs: 0 |
||
134 | * @var int|null |
||
135 | */ |
||
136 | protected ?int $LastVersionSaved = null; |
||
137 | /** |
||
138 | * The LastWelcomeContact |
||
139 | * Meta information extracted from the WSDL |
||
140 | * - minOccurs: 0 |
||
141 | * @var string|null |
||
142 | */ |
||
143 | protected ?string $LastWelcomeContact = null; |
||
144 | /** |
||
145 | * The Offers |
||
146 | * Meta information extracted from the WSDL |
||
147 | * - minOccurs: 0 |
||
148 | * @var int|null |
||
149 | */ |
||
150 | protected ?int $Offers = null; |
||
151 | /** |
||
152 | * The PsaLastChanged |
||
153 | * Meta information extracted from the WSDL |
||
154 | * - minOccurs: 0 |
||
155 | * @var string|null |
||
156 | */ |
||
157 | protected ?string $PsaLastChanged = null; |
||
158 | /** |
||
159 | * The RefreshToken2 |
||
160 | * Meta information extracted from the WSDL |
||
161 | * - minOccurs: 0 |
||
162 | * @var string|null |
||
163 | */ |
||
164 | protected ?string $RefreshToken2 = null; |
||
165 | /** |
||
166 | * The RefreshTokenExpiry2 |
||
167 | * Meta information extracted from the WSDL |
||
168 | * - minOccurs: 0 |
||
169 | * @var string|null |
||
170 | */ |
||
171 | protected ?string $RefreshTokenExpiry2 = null; |
||
172 | /** |
||
173 | * The SessionHandle |
||
174 | * Meta information extracted from the WSDL |
||
175 | * - minOccurs: 0 |
||
176 | * @var string|null |
||
177 | */ |
||
178 | protected ?string $SessionHandle = null; |
||
179 | /** |
||
180 | * The RejectedOffers |
||
181 | * Meta information extracted from the WSDL |
||
182 | * - minOccurs: 0 |
||
183 | * @var int|null |
||
184 | */ |
||
185 | protected ?int $RejectedOffers = null; |
||
186 | /** |
||
187 | * The SyncEnabled |
||
188 | * Meta information extracted from the WSDL |
||
189 | * - minOccurs: 0 |
||
190 | * @var bool|null |
||
191 | */ |
||
192 | protected ?bool $SyncEnabled = null; |
||
193 | /** |
||
194 | * The TokenRefreshLastAttempted |
||
195 | * Meta information extracted from the WSDL |
||
196 | * - minOccurs: 0 |
||
197 | * @var string|null |
||
198 | */ |
||
199 | protected ?string $TokenRefreshLastAttempted = null; |
||
200 | /** |
||
201 | * The TokenRefreshLastCompleted |
||
202 | * Meta information extracted from the WSDL |
||
203 | * - minOccurs: 0 |
||
204 | * @var string|null |
||
205 | */ |
||
206 | protected ?string $TokenRefreshLastCompleted = null; |
||
207 | /** |
||
208 | * The PsaState |
||
209 | * Meta information extracted from the WSDL |
||
210 | * - minOccurs: 0 |
||
211 | * @var string|null |
||
212 | */ |
||
213 | protected ?string $PsaState = null; |
||
214 | /** |
||
215 | * The SourceEntryID |
||
216 | * Meta information extracted from the WSDL |
||
217 | * - minOccurs: 0 |
||
218 | * @var string|null |
||
219 | */ |
||
220 | protected ?string $SourceEntryID = null; |
||
221 | /** |
||
222 | * The AccountName |
||
223 | * Meta information extracted from the WSDL |
||
224 | * - minOccurs: 0 |
||
225 | * @var string|null |
||
226 | */ |
||
227 | protected ?string $AccountName = null; |
||
228 | /** |
||
229 | * The LastSync |
||
230 | * Meta information extracted from the WSDL |
||
231 | * - minOccurs: 0 |
||
232 | * @var string|null |
||
233 | */ |
||
234 | protected ?string $LastSync = null; |
||
235 | /** |
||
236 | * Constructor method for NetworkItemType |
||
237 | * @uses EwsNetworkItemType::setDomainId() |
||
238 | * @uses EwsNetworkItemType::setDomainTag() |
||
239 | * @uses EwsNetworkItemType::setUserTileUrl() |
||
240 | * @uses EwsNetworkItemType::setProfileUrl() |
||
241 | * @uses EwsNetworkItemType::setSettings() |
||
242 | * @uses EwsNetworkItemType::setIsDefault() |
||
243 | * @uses EwsNetworkItemType::setAutoLinkError() |
||
244 | * @uses EwsNetworkItemType::setAutoLinkSuccess() |
||
245 | * @uses EwsNetworkItemType::setUserEmail() |
||
246 | * @uses EwsNetworkItemType::setClientPublishSecret() |
||
247 | * @uses EwsNetworkItemType::setClientToken() |
||
248 | * @uses EwsNetworkItemType::setClientToken2() |
||
249 | * @uses EwsNetworkItemType::setContactSyncError() |
||
250 | * @uses EwsNetworkItemType::setContactSyncSuccess() |
||
251 | * @uses EwsNetworkItemType::setErrorOffers() |
||
252 | * @uses EwsNetworkItemType::setFirstAuthErrorDates() |
||
253 | * @uses EwsNetworkItemType::setLastVersionSaved() |
||
254 | * @uses EwsNetworkItemType::setLastWelcomeContact() |
||
255 | * @uses EwsNetworkItemType::setOffers() |
||
256 | * @uses EwsNetworkItemType::setPsaLastChanged() |
||
257 | * @uses EwsNetworkItemType::setRefreshToken2() |
||
258 | * @uses EwsNetworkItemType::setRefreshTokenExpiry2() |
||
259 | * @uses EwsNetworkItemType::setSessionHandle() |
||
260 | * @uses EwsNetworkItemType::setRejectedOffers() |
||
261 | * @uses EwsNetworkItemType::setSyncEnabled() |
||
262 | * @uses EwsNetworkItemType::setTokenRefreshLastAttempted() |
||
263 | * @uses EwsNetworkItemType::setTokenRefreshLastCompleted() |
||
264 | * @uses EwsNetworkItemType::setPsaState() |
||
265 | * @uses EwsNetworkItemType::setSourceEntryID() |
||
266 | * @uses EwsNetworkItemType::setAccountName() |
||
267 | * @uses EwsNetworkItemType::setLastSync() |
||
268 | * @param int $domainId |
||
269 | * @param string $domainTag |
||
270 | * @param string $userTileUrl |
||
271 | * @param string $profileUrl |
||
272 | * @param int $settings |
||
273 | * @param bool $isDefault |
||
274 | * @param string $autoLinkError |
||
275 | * @param string $autoLinkSuccess |
||
276 | * @param string $userEmail |
||
277 | * @param string $clientPublishSecret |
||
278 | * @param string $clientToken |
||
279 | * @param string $clientToken2 |
||
280 | * @param string $contactSyncError |
||
281 | * @param string $contactSyncSuccess |
||
282 | * @param int $errorOffers |
||
283 | * @param string $firstAuthErrorDates |
||
284 | * @param int $lastVersionSaved |
||
285 | * @param string $lastWelcomeContact |
||
286 | * @param int $offers |
||
287 | * @param string $psaLastChanged |
||
288 | * @param string $refreshToken2 |
||
289 | * @param string $refreshTokenExpiry2 |
||
290 | * @param string $sessionHandle |
||
291 | * @param int $rejectedOffers |
||
292 | * @param bool $syncEnabled |
||
293 | * @param string $tokenRefreshLastAttempted |
||
294 | * @param string $tokenRefreshLastCompleted |
||
295 | * @param string $psaState |
||
296 | * @param string $sourceEntryID |
||
297 | * @param string $accountName |
||
298 | * @param string $lastSync |
||
299 | */ |
||
300 | public function __construct(?int $domainId = null, ?string $domainTag = null, ?string $userTileUrl = null, ?string $profileUrl = null, ?int $settings = null, ?bool $isDefault = null, ?string $autoLinkError = null, ?string $autoLinkSuccess = null, ?string $userEmail = null, ?string $clientPublishSecret = null, ?string $clientToken = null, ?string $clientToken2 = null, ?string $contactSyncError = null, ?string $contactSyncSuccess = null, ?int $errorOffers = null, ?string $firstAuthErrorDates = null, ?int $lastVersionSaved = null, ?string $lastWelcomeContact = null, ?int $offers = null, ?string $psaLastChanged = null, ?string $refreshToken2 = null, ?string $refreshTokenExpiry2 = null, ?string $sessionHandle = null, ?int $rejectedOffers = null, ?bool $syncEnabled = null, ?string $tokenRefreshLastAttempted = null, ?string $tokenRefreshLastCompleted = null, ?string $psaState = null, ?string $sourceEntryID = null, ?string $accountName = null, ?string $lastSync = null) |
||
301 | { |
||
302 | $this |
||
303 | ->setDomainId($domainId) |
||
304 | ->setDomainTag($domainTag) |
||
305 | ->setUserTileUrl($userTileUrl) |
||
306 | ->setProfileUrl($profileUrl) |
||
307 | ->setSettings($settings) |
||
308 | ->setIsDefault($isDefault) |
||
309 | ->setAutoLinkError($autoLinkError) |
||
310 | ->setAutoLinkSuccess($autoLinkSuccess) |
||
311 | ->setUserEmail($userEmail) |
||
312 | ->setClientPublishSecret($clientPublishSecret) |
||
313 | ->setClientToken($clientToken) |
||
314 | ->setClientToken2($clientToken2) |
||
315 | ->setContactSyncError($contactSyncError) |
||
316 | ->setContactSyncSuccess($contactSyncSuccess) |
||
317 | ->setErrorOffers($errorOffers) |
||
318 | ->setFirstAuthErrorDates($firstAuthErrorDates) |
||
319 | ->setLastVersionSaved($lastVersionSaved) |
||
320 | ->setLastWelcomeContact($lastWelcomeContact) |
||
321 | ->setOffers($offers) |
||
322 | ->setPsaLastChanged($psaLastChanged) |
||
323 | ->setRefreshToken2($refreshToken2) |
||
324 | ->setRefreshTokenExpiry2($refreshTokenExpiry2) |
||
325 | ->setSessionHandle($sessionHandle) |
||
326 | ->setRejectedOffers($rejectedOffers) |
||
327 | ->setSyncEnabled($syncEnabled) |
||
328 | ->setTokenRefreshLastAttempted($tokenRefreshLastAttempted) |
||
329 | ->setTokenRefreshLastCompleted($tokenRefreshLastCompleted) |
||
330 | ->setPsaState($psaState) |
||
331 | ->setSourceEntryID($sourceEntryID) |
||
332 | ->setAccountName($accountName) |
||
333 | ->setLastSync($lastSync); |
||
334 | } |
||
335 | /** |
||
336 | * Get DomainId value |
||
337 | * @return int|null |
||
338 | */ |
||
339 | public function getDomainId(): ?int |
||
340 | { |
||
341 | return $this->DomainId; |
||
342 | } |
||
343 | /** |
||
344 | * Set DomainId value |
||
345 | * @param int $domainId |
||
346 | * @return \StructType\EwsNetworkItemType |
||
347 | */ |
||
348 | public function setDomainId(?int $domainId = null): self |
||
349 | { |
||
350 | // validation for constraint: int |
||
351 | if (!is_null($domainId) && !(is_int($domainId) || ctype_digit($domainId))) { |
||
|
|||
352 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($domainId, true), gettype($domainId)), __LINE__); |
||
353 | } |
||
354 | $this->DomainId = $domainId; |
||
355 | |||
356 | return $this; |
||
357 | } |
||
358 | /** |
||
359 | * Get DomainTag value |
||
360 | * @return string|null |
||
361 | */ |
||
362 | public function getDomainTag(): ?string |
||
363 | { |
||
364 | return $this->DomainTag; |
||
365 | } |
||
366 | /** |
||
367 | * Set DomainTag value |
||
368 | * @param string $domainTag |
||
369 | * @return \StructType\EwsNetworkItemType |
||
370 | */ |
||
371 | public function setDomainTag(?string $domainTag = null): self |
||
372 | { |
||
373 | // validation for constraint: string |
||
374 | if (!is_null($domainTag) && !is_string($domainTag)) { |
||
375 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($domainTag, true), gettype($domainTag)), __LINE__); |
||
376 | } |
||
377 | $this->DomainTag = $domainTag; |
||
378 | |||
379 | return $this; |
||
380 | } |
||
381 | /** |
||
382 | * Get UserTileUrl value |
||
383 | * @return string|null |
||
384 | */ |
||
385 | public function getUserTileUrl(): ?string |
||
386 | { |
||
387 | return $this->UserTileUrl; |
||
388 | } |
||
389 | /** |
||
390 | * Set UserTileUrl value |
||
391 | * @param string $userTileUrl |
||
392 | * @return \StructType\EwsNetworkItemType |
||
393 | */ |
||
394 | public function setUserTileUrl(?string $userTileUrl = null): self |
||
395 | { |
||
396 | // validation for constraint: string |
||
397 | if (!is_null($userTileUrl) && !is_string($userTileUrl)) { |
||
398 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($userTileUrl, true), gettype($userTileUrl)), __LINE__); |
||
399 | } |
||
400 | $this->UserTileUrl = $userTileUrl; |
||
401 | |||
402 | return $this; |
||
403 | } |
||
404 | /** |
||
405 | * Get ProfileUrl value |
||
406 | * @return string|null |
||
407 | */ |
||
408 | public function getProfileUrl(): ?string |
||
411 | } |
||
412 | /** |
||
413 | * Set ProfileUrl value |
||
414 | * @param string $profileUrl |
||
415 | * @return \StructType\EwsNetworkItemType |
||
416 | */ |
||
417 | public function setProfileUrl(?string $profileUrl = null): self |
||
418 | { |
||
419 | // validation for constraint: string |
||
420 | if (!is_null($profileUrl) && !is_string($profileUrl)) { |
||
421 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($profileUrl, true), gettype($profileUrl)), __LINE__); |
||
422 | } |
||
423 | $this->ProfileUrl = $profileUrl; |
||
424 | |||
425 | return $this; |
||
426 | } |
||
427 | /** |
||
428 | * Get Settings value |
||
429 | * @return int|null |
||
430 | */ |
||
431 | public function getSettings(): ?int |
||
432 | { |
||
433 | return $this->Settings; |
||
434 | } |
||
435 | /** |
||
436 | * Set Settings value |
||
437 | * @param int $settings |
||
438 | * @return \StructType\EwsNetworkItemType |
||
439 | */ |
||
440 | public function setSettings(?int $settings = null): self |
||
441 | { |
||
442 | // validation for constraint: int |
||
443 | if (!is_null($settings) && !(is_int($settings) || ctype_digit($settings))) { |
||
444 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($settings, true), gettype($settings)), __LINE__); |
||
445 | } |
||
446 | $this->Settings = $settings; |
||
447 | |||
448 | return $this; |
||
449 | } |
||
450 | /** |
||
451 | * Get IsDefault value |
||
452 | * @return bool|null |
||
453 | */ |
||
454 | public function getIsDefault(): ?bool |
||
455 | { |
||
456 | return $this->IsDefault; |
||
457 | } |
||
458 | /** |
||
459 | * Set IsDefault value |
||
460 | * @param bool $isDefault |
||
461 | * @return \StructType\EwsNetworkItemType |
||
462 | */ |
||
463 | public function setIsDefault(?bool $isDefault = null): self |
||
464 | { |
||
465 | // validation for constraint: boolean |
||
466 | if (!is_null($isDefault) && !is_bool($isDefault)) { |
||
467 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isDefault, true), gettype($isDefault)), __LINE__); |
||
468 | } |
||
469 | $this->IsDefault = $isDefault; |
||
470 | |||
471 | return $this; |
||
472 | } |
||
473 | /** |
||
474 | * Get AutoLinkError value |
||
475 | * @return string|null |
||
476 | */ |
||
477 | public function getAutoLinkError(): ?string |
||
478 | { |
||
479 | return $this->AutoLinkError; |
||
480 | } |
||
481 | /** |
||
482 | * Set AutoLinkError value |
||
483 | * @param string $autoLinkError |
||
484 | * @return \StructType\EwsNetworkItemType |
||
485 | */ |
||
486 | public function setAutoLinkError(?string $autoLinkError = null): self |
||
487 | { |
||
488 | // validation for constraint: string |
||
489 | if (!is_null($autoLinkError) && !is_string($autoLinkError)) { |
||
490 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($autoLinkError, true), gettype($autoLinkError)), __LINE__); |
||
491 | } |
||
492 | $this->AutoLinkError = $autoLinkError; |
||
493 | |||
494 | return $this; |
||
495 | } |
||
496 | /** |
||
497 | * Get AutoLinkSuccess value |
||
498 | * @return string|null |
||
499 | */ |
||
500 | public function getAutoLinkSuccess(): ?string |
||
501 | { |
||
502 | return $this->AutoLinkSuccess; |
||
503 | } |
||
504 | /** |
||
505 | * Set AutoLinkSuccess value |
||
506 | * @param string $autoLinkSuccess |
||
507 | * @return \StructType\EwsNetworkItemType |
||
508 | */ |
||
509 | public function setAutoLinkSuccess(?string $autoLinkSuccess = null): self |
||
510 | { |
||
511 | // validation for constraint: string |
||
512 | if (!is_null($autoLinkSuccess) && !is_string($autoLinkSuccess)) { |
||
513 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($autoLinkSuccess, true), gettype($autoLinkSuccess)), __LINE__); |
||
514 | } |
||
515 | $this->AutoLinkSuccess = $autoLinkSuccess; |
||
516 | |||
517 | return $this; |
||
518 | } |
||
519 | /** |
||
520 | * Get UserEmail value |
||
521 | * @return string|null |
||
522 | */ |
||
523 | public function getUserEmail(): ?string |
||
524 | { |
||
525 | return $this->UserEmail; |
||
526 | } |
||
527 | /** |
||
528 | * Set UserEmail value |
||
529 | * @param string $userEmail |
||
530 | * @return \StructType\EwsNetworkItemType |
||
531 | */ |
||
532 | public function setUserEmail(?string $userEmail = null): self |
||
533 | { |
||
534 | // validation for constraint: string |
||
535 | if (!is_null($userEmail) && !is_string($userEmail)) { |
||
536 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($userEmail, true), gettype($userEmail)), __LINE__); |
||
537 | } |
||
538 | $this->UserEmail = $userEmail; |
||
539 | |||
540 | return $this; |
||
541 | } |
||
542 | /** |
||
543 | * Get ClientPublishSecret value |
||
544 | * @return string|null |
||
545 | */ |
||
546 | public function getClientPublishSecret(): ?string |
||
547 | { |
||
548 | return $this->ClientPublishSecret; |
||
549 | } |
||
550 | /** |
||
551 | * Set ClientPublishSecret value |
||
552 | * @param string $clientPublishSecret |
||
553 | * @return \StructType\EwsNetworkItemType |
||
554 | */ |
||
555 | public function setClientPublishSecret(?string $clientPublishSecret = null): self |
||
556 | { |
||
557 | // validation for constraint: string |
||
558 | if (!is_null($clientPublishSecret) && !is_string($clientPublishSecret)) { |
||
559 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($clientPublishSecret, true), gettype($clientPublishSecret)), __LINE__); |
||
560 | } |
||
561 | $this->ClientPublishSecret = $clientPublishSecret; |
||
562 | |||
563 | return $this; |
||
564 | } |
||
565 | /** |
||
566 | * Get ClientToken value |
||
567 | * @return string|null |
||
568 | */ |
||
569 | public function getClientToken(): ?string |
||
570 | { |
||
571 | return $this->ClientToken; |
||
572 | } |
||
573 | /** |
||
574 | * Set ClientToken value |
||
575 | * @param string $clientToken |
||
576 | * @return \StructType\EwsNetworkItemType |
||
577 | */ |
||
578 | public function setClientToken(?string $clientToken = null): self |
||
579 | { |
||
580 | // validation for constraint: string |
||
581 | if (!is_null($clientToken) && !is_string($clientToken)) { |
||
582 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($clientToken, true), gettype($clientToken)), __LINE__); |
||
583 | } |
||
584 | $this->ClientToken = $clientToken; |
||
585 | |||
586 | return $this; |
||
587 | } |
||
588 | /** |
||
589 | * Get ClientToken2 value |
||
590 | * @return string|null |
||
591 | */ |
||
592 | public function getClientToken2(): ?string |
||
593 | { |
||
594 | return $this->ClientToken2; |
||
595 | } |
||
596 | /** |
||
597 | * Set ClientToken2 value |
||
598 | * @param string $clientToken2 |
||
599 | * @return \StructType\EwsNetworkItemType |
||
600 | */ |
||
601 | public function setClientToken2(?string $clientToken2 = null): self |
||
602 | { |
||
603 | // validation for constraint: string |
||
604 | if (!is_null($clientToken2) && !is_string($clientToken2)) { |
||
605 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($clientToken2, true), gettype($clientToken2)), __LINE__); |
||
606 | } |
||
607 | $this->ClientToken2 = $clientToken2; |
||
608 | |||
609 | return $this; |
||
610 | } |
||
611 | /** |
||
612 | * Get ContactSyncError value |
||
613 | * @return string|null |
||
614 | */ |
||
615 | public function getContactSyncError(): ?string |
||
616 | { |
||
617 | return $this->ContactSyncError; |
||
618 | } |
||
619 | /** |
||
620 | * Set ContactSyncError value |
||
621 | * @param string $contactSyncError |
||
622 | * @return \StructType\EwsNetworkItemType |
||
623 | */ |
||
624 | public function setContactSyncError(?string $contactSyncError = null): self |
||
625 | { |
||
626 | // validation for constraint: string |
||
627 | if (!is_null($contactSyncError) && !is_string($contactSyncError)) { |
||
628 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($contactSyncError, true), gettype($contactSyncError)), __LINE__); |
||
629 | } |
||
630 | $this->ContactSyncError = $contactSyncError; |
||
631 | |||
632 | return $this; |
||
633 | } |
||
634 | /** |
||
635 | * Get ContactSyncSuccess value |
||
636 | * @return string|null |
||
637 | */ |
||
638 | public function getContactSyncSuccess(): ?string |
||
639 | { |
||
640 | return $this->ContactSyncSuccess; |
||
641 | } |
||
642 | /** |
||
643 | * Set ContactSyncSuccess value |
||
644 | * @param string $contactSyncSuccess |
||
645 | * @return \StructType\EwsNetworkItemType |
||
646 | */ |
||
647 | public function setContactSyncSuccess(?string $contactSyncSuccess = null): self |
||
648 | { |
||
649 | // validation for constraint: string |
||
650 | if (!is_null($contactSyncSuccess) && !is_string($contactSyncSuccess)) { |
||
651 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($contactSyncSuccess, true), gettype($contactSyncSuccess)), __LINE__); |
||
652 | } |
||
653 | $this->ContactSyncSuccess = $contactSyncSuccess; |
||
654 | |||
655 | return $this; |
||
656 | } |
||
657 | /** |
||
658 | * Get ErrorOffers value |
||
659 | * @return int|null |
||
660 | */ |
||
661 | public function getErrorOffers(): ?int |
||
662 | { |
||
663 | return $this->ErrorOffers; |
||
664 | } |
||
665 | /** |
||
666 | * Set ErrorOffers value |
||
667 | * @param int $errorOffers |
||
668 | * @return \StructType\EwsNetworkItemType |
||
669 | */ |
||
670 | public function setErrorOffers(?int $errorOffers = null): self |
||
671 | { |
||
672 | // validation for constraint: int |
||
673 | if (!is_null($errorOffers) && !(is_int($errorOffers) || ctype_digit($errorOffers))) { |
||
674 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($errorOffers, true), gettype($errorOffers)), __LINE__); |
||
675 | } |
||
676 | $this->ErrorOffers = $errorOffers; |
||
677 | |||
678 | return $this; |
||
679 | } |
||
680 | /** |
||
681 | * Get FirstAuthErrorDates value |
||
682 | * @return string|null |
||
683 | */ |
||
684 | public function getFirstAuthErrorDates(): ?string |
||
685 | { |
||
686 | return $this->FirstAuthErrorDates; |
||
687 | } |
||
688 | /** |
||
689 | * Set FirstAuthErrorDates value |
||
690 | * @param string $firstAuthErrorDates |
||
691 | * @return \StructType\EwsNetworkItemType |
||
692 | */ |
||
693 | public function setFirstAuthErrorDates(?string $firstAuthErrorDates = null): self |
||
694 | { |
||
695 | // validation for constraint: string |
||
696 | if (!is_null($firstAuthErrorDates) && !is_string($firstAuthErrorDates)) { |
||
697 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($firstAuthErrorDates, true), gettype($firstAuthErrorDates)), __LINE__); |
||
698 | } |
||
699 | $this->FirstAuthErrorDates = $firstAuthErrorDates; |
||
700 | |||
701 | return $this; |
||
702 | } |
||
703 | /** |
||
704 | * Get LastVersionSaved value |
||
705 | * @return int|null |
||
706 | */ |
||
707 | public function getLastVersionSaved(): ?int |
||
708 | { |
||
709 | return $this->LastVersionSaved; |
||
710 | } |
||
711 | /** |
||
712 | * Set LastVersionSaved value |
||
713 | * @param int $lastVersionSaved |
||
714 | * @return \StructType\EwsNetworkItemType |
||
715 | */ |
||
716 | public function setLastVersionSaved(?int $lastVersionSaved = null): self |
||
717 | { |
||
718 | // validation for constraint: int |
||
719 | if (!is_null($lastVersionSaved) && !(is_int($lastVersionSaved) || ctype_digit($lastVersionSaved))) { |
||
720 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($lastVersionSaved, true), gettype($lastVersionSaved)), __LINE__); |
||
721 | } |
||
722 | $this->LastVersionSaved = $lastVersionSaved; |
||
723 | |||
724 | return $this; |
||
725 | } |
||
726 | /** |
||
727 | * Get LastWelcomeContact value |
||
728 | * @return string|null |
||
729 | */ |
||
730 | public function getLastWelcomeContact(): ?string |
||
731 | { |
||
732 | return $this->LastWelcomeContact; |
||
733 | } |
||
734 | /** |
||
735 | * Set LastWelcomeContact value |
||
736 | * @param string $lastWelcomeContact |
||
737 | * @return \StructType\EwsNetworkItemType |
||
738 | */ |
||
739 | public function setLastWelcomeContact(?string $lastWelcomeContact = null): self |
||
740 | { |
||
741 | // validation for constraint: string |
||
742 | if (!is_null($lastWelcomeContact) && !is_string($lastWelcomeContact)) { |
||
743 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($lastWelcomeContact, true), gettype($lastWelcomeContact)), __LINE__); |
||
744 | } |
||
745 | $this->LastWelcomeContact = $lastWelcomeContact; |
||
746 | |||
747 | return $this; |
||
748 | } |
||
749 | /** |
||
750 | * Get Offers value |
||
751 | * @return int|null |
||
752 | */ |
||
753 | public function getOffers(): ?int |
||
754 | { |
||
755 | return $this->Offers; |
||
756 | } |
||
757 | /** |
||
758 | * Set Offers value |
||
759 | * @param int $offers |
||
760 | * @return \StructType\EwsNetworkItemType |
||
761 | */ |
||
762 | public function setOffers(?int $offers = null): self |
||
763 | { |
||
764 | // validation for constraint: int |
||
765 | if (!is_null($offers) && !(is_int($offers) || ctype_digit($offers))) { |
||
766 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($offers, true), gettype($offers)), __LINE__); |
||
767 | } |
||
768 | $this->Offers = $offers; |
||
769 | |||
770 | return $this; |
||
771 | } |
||
772 | /** |
||
773 | * Get PsaLastChanged value |
||
774 | * @return string|null |
||
775 | */ |
||
776 | public function getPsaLastChanged(): ?string |
||
777 | { |
||
778 | return $this->PsaLastChanged; |
||
779 | } |
||
780 | /** |
||
781 | * Set PsaLastChanged value |
||
782 | * @param string $psaLastChanged |
||
783 | * @return \StructType\EwsNetworkItemType |
||
784 | */ |
||
785 | public function setPsaLastChanged(?string $psaLastChanged = null): self |
||
794 | } |
||
795 | /** |
||
796 | * Get RefreshToken2 value |
||
797 | * @return string|null |
||
798 | */ |
||
799 | public function getRefreshToken2(): ?string |
||
800 | { |
||
801 | return $this->RefreshToken2; |
||
802 | } |
||
803 | /** |
||
804 | * Set RefreshToken2 value |
||
805 | * @param string $refreshToken2 |
||
806 | * @return \StructType\EwsNetworkItemType |
||
807 | */ |
||
808 | public function setRefreshToken2(?string $refreshToken2 = null): self |
||
809 | { |
||
810 | // validation for constraint: string |
||
811 | if (!is_null($refreshToken2) && !is_string($refreshToken2)) { |
||
812 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($refreshToken2, true), gettype($refreshToken2)), __LINE__); |
||
813 | } |
||
814 | $this->RefreshToken2 = $refreshToken2; |
||
815 | |||
816 | return $this; |
||
817 | } |
||
818 | /** |
||
819 | * Get RefreshTokenExpiry2 value |
||
820 | * @return string|null |
||
821 | */ |
||
822 | public function getRefreshTokenExpiry2(): ?string |
||
823 | { |
||
824 | return $this->RefreshTokenExpiry2; |
||
825 | } |
||
826 | /** |
||
827 | * Set RefreshTokenExpiry2 value |
||
828 | * @param string $refreshTokenExpiry2 |
||
829 | * @return \StructType\EwsNetworkItemType |
||
830 | */ |
||
831 | public function setRefreshTokenExpiry2(?string $refreshTokenExpiry2 = null): self |
||
832 | { |
||
833 | // validation for constraint: string |
||
834 | if (!is_null($refreshTokenExpiry2) && !is_string($refreshTokenExpiry2)) { |
||
835 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($refreshTokenExpiry2, true), gettype($refreshTokenExpiry2)), __LINE__); |
||
836 | } |
||
837 | $this->RefreshTokenExpiry2 = $refreshTokenExpiry2; |
||
838 | |||
839 | return $this; |
||
840 | } |
||
841 | /** |
||
842 | * Get SessionHandle value |
||
843 | * @return string|null |
||
844 | */ |
||
845 | public function getSessionHandle(): ?string |
||
846 | { |
||
847 | return $this->SessionHandle; |
||
848 | } |
||
849 | /** |
||
850 | * Set SessionHandle value |
||
851 | * @param string $sessionHandle |
||
852 | * @return \StructType\EwsNetworkItemType |
||
853 | */ |
||
854 | public function setSessionHandle(?string $sessionHandle = null): self |
||
855 | { |
||
856 | // validation for constraint: string |
||
857 | if (!is_null($sessionHandle) && !is_string($sessionHandle)) { |
||
858 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($sessionHandle, true), gettype($sessionHandle)), __LINE__); |
||
859 | } |
||
860 | $this->SessionHandle = $sessionHandle; |
||
861 | |||
862 | return $this; |
||
863 | } |
||
864 | /** |
||
865 | * Get RejectedOffers value |
||
866 | * @return int|null |
||
867 | */ |
||
868 | public function getRejectedOffers(): ?int |
||
869 | { |
||
870 | return $this->RejectedOffers; |
||
871 | } |
||
872 | /** |
||
873 | * Set RejectedOffers value |
||
874 | * @param int $rejectedOffers |
||
875 | * @return \StructType\EwsNetworkItemType |
||
876 | */ |
||
877 | public function setRejectedOffers(?int $rejectedOffers = null): self |
||
878 | { |
||
879 | // validation for constraint: int |
||
880 | if (!is_null($rejectedOffers) && !(is_int($rejectedOffers) || ctype_digit($rejectedOffers))) { |
||
881 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($rejectedOffers, true), gettype($rejectedOffers)), __LINE__); |
||
882 | } |
||
883 | $this->RejectedOffers = $rejectedOffers; |
||
884 | |||
885 | return $this; |
||
886 | } |
||
887 | /** |
||
888 | * Get SyncEnabled value |
||
889 | * @return bool|null |
||
890 | */ |
||
891 | public function getSyncEnabled(): ?bool |
||
892 | { |
||
893 | return $this->SyncEnabled; |
||
894 | } |
||
895 | /** |
||
896 | * Set SyncEnabled value |
||
897 | * @param bool $syncEnabled |
||
898 | * @return \StructType\EwsNetworkItemType |
||
899 | */ |
||
900 | public function setSyncEnabled(?bool $syncEnabled = null): self |
||
901 | { |
||
902 | // validation for constraint: boolean |
||
903 | if (!is_null($syncEnabled) && !is_bool($syncEnabled)) { |
||
904 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($syncEnabled, true), gettype($syncEnabled)), __LINE__); |
||
905 | } |
||
906 | $this->SyncEnabled = $syncEnabled; |
||
907 | |||
908 | return $this; |
||
909 | } |
||
910 | /** |
||
911 | * Get TokenRefreshLastAttempted value |
||
912 | * @return string|null |
||
913 | */ |
||
914 | public function getTokenRefreshLastAttempted(): ?string |
||
917 | } |
||
918 | /** |
||
919 | * Set TokenRefreshLastAttempted value |
||
920 | * @param string $tokenRefreshLastAttempted |
||
921 | * @return \StructType\EwsNetworkItemType |
||
922 | */ |
||
923 | public function setTokenRefreshLastAttempted(?string $tokenRefreshLastAttempted = null): self |
||
924 | { |
||
925 | // validation for constraint: string |
||
926 | if (!is_null($tokenRefreshLastAttempted) && !is_string($tokenRefreshLastAttempted)) { |
||
927 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($tokenRefreshLastAttempted, true), gettype($tokenRefreshLastAttempted)), __LINE__); |
||
928 | } |
||
929 | $this->TokenRefreshLastAttempted = $tokenRefreshLastAttempted; |
||
930 | |||
931 | return $this; |
||
932 | } |
||
933 | /** |
||
934 | * Get TokenRefreshLastCompleted value |
||
935 | * @return string|null |
||
936 | */ |
||
937 | public function getTokenRefreshLastCompleted(): ?string |
||
938 | { |
||
939 | return $this->TokenRefreshLastCompleted; |
||
940 | } |
||
941 | /** |
||
942 | * Set TokenRefreshLastCompleted value |
||
943 | * @param string $tokenRefreshLastCompleted |
||
944 | * @return \StructType\EwsNetworkItemType |
||
945 | */ |
||
946 | public function setTokenRefreshLastCompleted(?string $tokenRefreshLastCompleted = null): self |
||
947 | { |
||
948 | // validation for constraint: string |
||
949 | if (!is_null($tokenRefreshLastCompleted) && !is_string($tokenRefreshLastCompleted)) { |
||
950 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($tokenRefreshLastCompleted, true), gettype($tokenRefreshLastCompleted)), __LINE__); |
||
951 | } |
||
952 | $this->TokenRefreshLastCompleted = $tokenRefreshLastCompleted; |
||
953 | |||
954 | return $this; |
||
955 | } |
||
956 | /** |
||
957 | * Get PsaState value |
||
958 | * @return string|null |
||
959 | */ |
||
960 | public function getPsaState(): ?string |
||
961 | { |
||
962 | return $this->PsaState; |
||
963 | } |
||
964 | /** |
||
965 | * Set PsaState value |
||
966 | * @param string $psaState |
||
967 | * @return \StructType\EwsNetworkItemType |
||
968 | */ |
||
969 | public function setPsaState(?string $psaState = null): self |
||
970 | { |
||
971 | // validation for constraint: string |
||
972 | if (!is_null($psaState) && !is_string($psaState)) { |
||
973 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($psaState, true), gettype($psaState)), __LINE__); |
||
974 | } |
||
975 | $this->PsaState = $psaState; |
||
976 | |||
977 | return $this; |
||
978 | } |
||
979 | /** |
||
980 | * Get SourceEntryID value |
||
981 | * @return string|null |
||
982 | */ |
||
983 | public function getSourceEntryID(): ?string |
||
984 | { |
||
985 | return $this->SourceEntryID; |
||
986 | } |
||
987 | /** |
||
988 | * Set SourceEntryID value |
||
989 | * @param string $sourceEntryID |
||
990 | * @return \StructType\EwsNetworkItemType |
||
991 | */ |
||
992 | public function setSourceEntryID(?string $sourceEntryID = null): self |
||
993 | { |
||
994 | // validation for constraint: string |
||
995 | if (!is_null($sourceEntryID) && !is_string($sourceEntryID)) { |
||
996 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($sourceEntryID, true), gettype($sourceEntryID)), __LINE__); |
||
997 | } |
||
998 | $this->SourceEntryID = $sourceEntryID; |
||
999 | |||
1000 | return $this; |
||
1001 | } |
||
1002 | /** |
||
1003 | * Get AccountName value |
||
1004 | * @return string|null |
||
1005 | */ |
||
1006 | public function getAccountName(): ?string |
||
1009 | } |
||
1010 | /** |
||
1011 | * Set AccountName value |
||
1012 | * @param string $accountName |
||
1013 | * @return \StructType\EwsNetworkItemType |
||
1014 | */ |
||
1015 | public function setAccountName(?string $accountName = null): self |
||
1016 | { |
||
1017 | // validation for constraint: string |
||
1018 | if (!is_null($accountName) && !is_string($accountName)) { |
||
1019 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($accountName, true), gettype($accountName)), __LINE__); |
||
1020 | } |
||
1021 | $this->AccountName = $accountName; |
||
1022 | |||
1023 | return $this; |
||
1024 | } |
||
1025 | /** |
||
1026 | * Get LastSync value |
||
1027 | * @return string|null |
||
1028 | */ |
||
1029 | public function getLastSync(): ?string |
||
1030 | { |
||
1031 | return $this->LastSync; |
||
1032 | } |
||
1033 | /** |
||
1034 | * Set LastSync value |
||
1035 | * @param string $lastSync |
||
1036 | * @return \StructType\EwsNetworkItemType |
||
1037 | */ |
||
1038 | public function setLastSync(?string $lastSync = null): self |
||
1047 | } |
||
1048 | } |
||
1049 |