Total Complexity | 140 |
Total Lines | 1293 |
Duplicated Lines | 0 % |
Changes | 0 |
Complex classes like EwsConversationType 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 EwsConversationType, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
16 | class EwsConversationType extends AbstractStructBase |
||
17 | { |
||
18 | /** |
||
19 | * The ConversationId |
||
20 | * Meta information extracted from the WSDL |
||
21 | * - minOccurs: 0 |
||
22 | * @var \StructType\EwsItemIdType|null |
||
23 | */ |
||
24 | protected ?\StructType\EwsItemIdType $ConversationId = null; |
||
25 | /** |
||
26 | * The ConversationTopic |
||
27 | * Meta information extracted from the WSDL |
||
28 | * - minOccurs: 0 |
||
29 | * @var string|null |
||
30 | */ |
||
31 | protected ?string $ConversationTopic = null; |
||
32 | /** |
||
33 | * The UniqueRecipients |
||
34 | * Meta information extracted from the WSDL |
||
35 | * - minOccurs: 0 |
||
36 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
37 | */ |
||
38 | protected ?\ArrayType\EwsArrayOfStringsType $UniqueRecipients = null; |
||
39 | /** |
||
40 | * The GlobalUniqueRecipients |
||
41 | * Meta information extracted from the WSDL |
||
42 | * - minOccurs: 0 |
||
43 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
44 | */ |
||
45 | protected ?\ArrayType\EwsArrayOfStringsType $GlobalUniqueRecipients = null; |
||
46 | /** |
||
47 | * The UniqueUnreadSenders |
||
48 | * Meta information extracted from the WSDL |
||
49 | * - minOccurs: 0 |
||
50 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
51 | */ |
||
52 | protected ?\ArrayType\EwsArrayOfStringsType $UniqueUnreadSenders = null; |
||
53 | /** |
||
54 | * The GlobalUniqueUnreadSenders |
||
55 | * Meta information extracted from the WSDL |
||
56 | * - minOccurs: 0 |
||
57 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
58 | */ |
||
59 | protected ?\ArrayType\EwsArrayOfStringsType $GlobalUniqueUnreadSenders = null; |
||
60 | /** |
||
61 | * The UniqueSenders |
||
62 | * Meta information extracted from the WSDL |
||
63 | * - minOccurs: 0 |
||
64 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
65 | */ |
||
66 | protected ?\ArrayType\EwsArrayOfStringsType $UniqueSenders = null; |
||
67 | /** |
||
68 | * The GlobalUniqueSenders |
||
69 | * Meta information extracted from the WSDL |
||
70 | * - minOccurs: 0 |
||
71 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
72 | */ |
||
73 | protected ?\ArrayType\EwsArrayOfStringsType $GlobalUniqueSenders = null; |
||
74 | /** |
||
75 | * The LastDeliveryTime |
||
76 | * Meta information extracted from the WSDL |
||
77 | * - minOccurs: 0 |
||
78 | * @var string|null |
||
79 | */ |
||
80 | protected ?string $LastDeliveryTime = null; |
||
81 | /** |
||
82 | * The GlobalLastDeliveryTime |
||
83 | * Meta information extracted from the WSDL |
||
84 | * - minOccurs: 0 |
||
85 | * @var string|null |
||
86 | */ |
||
87 | protected ?string $GlobalLastDeliveryTime = null; |
||
88 | /** |
||
89 | * The Categories |
||
90 | * Meta information extracted from the WSDL |
||
91 | * - minOccurs: 0 |
||
92 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
93 | */ |
||
94 | protected ?\ArrayType\EwsArrayOfStringsType $Categories = null; |
||
95 | /** |
||
96 | * The GlobalCategories |
||
97 | * Meta information extracted from the WSDL |
||
98 | * - minOccurs: 0 |
||
99 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
100 | */ |
||
101 | protected ?\ArrayType\EwsArrayOfStringsType $GlobalCategories = null; |
||
102 | /** |
||
103 | * The FlagStatus |
||
104 | * Meta information extracted from the WSDL |
||
105 | * - minOccurs: 0 |
||
106 | * @var string|null |
||
107 | */ |
||
108 | protected ?string $FlagStatus = null; |
||
109 | /** |
||
110 | * The GlobalFlagStatus |
||
111 | * Meta information extracted from the WSDL |
||
112 | * - minOccurs: 0 |
||
113 | * @var string|null |
||
114 | */ |
||
115 | protected ?string $GlobalFlagStatus = null; |
||
116 | /** |
||
117 | * The HasAttachments |
||
118 | * Meta information extracted from the WSDL |
||
119 | * - minOccurs: 0 |
||
120 | * @var bool|null |
||
121 | */ |
||
122 | protected ?bool $HasAttachments = null; |
||
123 | /** |
||
124 | * The GlobalHasAttachments |
||
125 | * Meta information extracted from the WSDL |
||
126 | * - minOccurs: 0 |
||
127 | * @var bool|null |
||
128 | */ |
||
129 | protected ?bool $GlobalHasAttachments = null; |
||
130 | /** |
||
131 | * The MessageCount |
||
132 | * Meta information extracted from the WSDL |
||
133 | * - minOccurs: 0 |
||
134 | * @var int|null |
||
135 | */ |
||
136 | protected ?int $MessageCount = null; |
||
137 | /** |
||
138 | * The GlobalMessageCount |
||
139 | * Meta information extracted from the WSDL |
||
140 | * - minOccurs: 0 |
||
141 | * @var int|null |
||
142 | */ |
||
143 | protected ?int $GlobalMessageCount = null; |
||
144 | /** |
||
145 | * The UnreadCount |
||
146 | * Meta information extracted from the WSDL |
||
147 | * - minOccurs: 0 |
||
148 | * @var int|null |
||
149 | */ |
||
150 | protected ?int $UnreadCount = null; |
||
151 | /** |
||
152 | * The GlobalUnreadCount |
||
153 | * Meta information extracted from the WSDL |
||
154 | * - minOccurs: 0 |
||
155 | * @var int|null |
||
156 | */ |
||
157 | protected ?int $GlobalUnreadCount = null; |
||
158 | /** |
||
159 | * The Size |
||
160 | * Meta information extracted from the WSDL |
||
161 | * - minOccurs: 0 |
||
162 | * @var int|null |
||
163 | */ |
||
164 | protected ?int $Size = null; |
||
165 | /** |
||
166 | * The GlobalSize |
||
167 | * Meta information extracted from the WSDL |
||
168 | * - minOccurs: 0 |
||
169 | * @var int|null |
||
170 | */ |
||
171 | protected ?int $GlobalSize = null; |
||
172 | /** |
||
173 | * The ItemClasses |
||
174 | * Meta information extracted from the WSDL |
||
175 | * - minOccurs: 0 |
||
176 | * @var \ArrayType\EwsArrayOfItemClassType|null |
||
177 | */ |
||
178 | protected ?\ArrayType\EwsArrayOfItemClassType $ItemClasses = null; |
||
179 | /** |
||
180 | * The GlobalItemClasses |
||
181 | * Meta information extracted from the WSDL |
||
182 | * - minOccurs: 0 |
||
183 | * @var \ArrayType\EwsArrayOfItemClassType|null |
||
184 | */ |
||
185 | protected ?\ArrayType\EwsArrayOfItemClassType $GlobalItemClasses = null; |
||
186 | /** |
||
187 | * The Importance |
||
188 | * Meta information extracted from the WSDL |
||
189 | * - minOccurs: 0 |
||
190 | * @var string|null |
||
191 | */ |
||
192 | protected ?string $Importance = null; |
||
193 | /** |
||
194 | * The GlobalImportance |
||
195 | * Meta information extracted from the WSDL |
||
196 | * - minOccurs: 0 |
||
197 | * @var string|null |
||
198 | */ |
||
199 | protected ?string $GlobalImportance = null; |
||
200 | /** |
||
201 | * The ItemIds |
||
202 | * Meta information extracted from the WSDL |
||
203 | * - minOccurs: 0 |
||
204 | * @var \StructType\EwsNonEmptyArrayOfBaseItemIdsType|null |
||
205 | */ |
||
206 | protected ?\StructType\EwsNonEmptyArrayOfBaseItemIdsType $ItemIds = null; |
||
207 | /** |
||
208 | * The GlobalItemIds |
||
209 | * Meta information extracted from the WSDL |
||
210 | * - minOccurs: 0 |
||
211 | * @var \StructType\EwsNonEmptyArrayOfBaseItemIdsType|null |
||
212 | */ |
||
213 | protected ?\StructType\EwsNonEmptyArrayOfBaseItemIdsType $GlobalItemIds = null; |
||
214 | /** |
||
215 | * The LastModifiedTime |
||
216 | * Meta information extracted from the WSDL |
||
217 | * - minOccurs: 0 |
||
218 | * @var string|null |
||
219 | */ |
||
220 | protected ?string $LastModifiedTime = null; |
||
221 | /** |
||
222 | * The InstanceKey |
||
223 | * Meta information extracted from the WSDL |
||
224 | * - minOccurs: 0 |
||
225 | * @var string|null |
||
226 | */ |
||
227 | protected ?string $InstanceKey = null; |
||
228 | /** |
||
229 | * The Preview |
||
230 | * Meta information extracted from the WSDL |
||
231 | * - minOccurs: 0 |
||
232 | * @var string|null |
||
233 | */ |
||
234 | protected ?string $Preview = null; |
||
235 | /** |
||
236 | * The MailboxScope |
||
237 | * Meta information extracted from the WSDL |
||
238 | * - minOccurs: 0 |
||
239 | * @var string|null |
||
240 | */ |
||
241 | protected ?string $MailboxScope = null; |
||
242 | /** |
||
243 | * The IconIndex |
||
244 | * Meta information extracted from the WSDL |
||
245 | * - minOccurs: 0 |
||
246 | * @var string|null |
||
247 | */ |
||
248 | protected ?string $IconIndex = null; |
||
249 | /** |
||
250 | * The GlobalIconIndex |
||
251 | * Meta information extracted from the WSDL |
||
252 | * - minOccurs: 0 |
||
253 | * @var string|null |
||
254 | */ |
||
255 | protected ?string $GlobalIconIndex = null; |
||
256 | /** |
||
257 | * The DraftItemIds |
||
258 | * Meta information extracted from the WSDL |
||
259 | * - minOccurs: 0 |
||
260 | * @var \StructType\EwsNonEmptyArrayOfBaseItemIdsType|null |
||
261 | */ |
||
262 | protected ?\StructType\EwsNonEmptyArrayOfBaseItemIdsType $DraftItemIds = null; |
||
263 | /** |
||
264 | * The HasIrm |
||
265 | * Meta information extracted from the WSDL |
||
266 | * - minOccurs: 0 |
||
267 | * @var bool|null |
||
268 | */ |
||
269 | protected ?bool $HasIrm = null; |
||
270 | /** |
||
271 | * The GlobalHasIrm |
||
272 | * Meta information extracted from the WSDL |
||
273 | * - minOccurs: 0 |
||
274 | * @var bool|null |
||
275 | */ |
||
276 | protected ?bool $GlobalHasIrm = null; |
||
277 | /** |
||
278 | * The SortKey |
||
279 | * Meta information extracted from the WSDL |
||
280 | * - minOccurs: 0 |
||
281 | * @var int|null |
||
282 | */ |
||
283 | protected ?int $SortKey = null; |
||
284 | /** |
||
285 | * The MentionedMe |
||
286 | * Meta information extracted from the WSDL |
||
287 | * - minOccurs: 0 |
||
288 | * @var bool|null |
||
289 | */ |
||
290 | protected ?bool $MentionedMe = null; |
||
291 | /** |
||
292 | * The GlobalMentionedMe |
||
293 | * Meta information extracted from the WSDL |
||
294 | * - minOccurs: 0 |
||
295 | * @var bool|null |
||
296 | */ |
||
297 | protected ?bool $GlobalMentionedMe = null; |
||
298 | /** |
||
299 | * Constructor method for ConversationType |
||
300 | * @uses EwsConversationType::setConversationId() |
||
301 | * @uses EwsConversationType::setConversationTopic() |
||
302 | * @uses EwsConversationType::setUniqueRecipients() |
||
303 | * @uses EwsConversationType::setGlobalUniqueRecipients() |
||
304 | * @uses EwsConversationType::setUniqueUnreadSenders() |
||
305 | * @uses EwsConversationType::setGlobalUniqueUnreadSenders() |
||
306 | * @uses EwsConversationType::setUniqueSenders() |
||
307 | * @uses EwsConversationType::setGlobalUniqueSenders() |
||
308 | * @uses EwsConversationType::setLastDeliveryTime() |
||
309 | * @uses EwsConversationType::setGlobalLastDeliveryTime() |
||
310 | * @uses EwsConversationType::setCategories() |
||
311 | * @uses EwsConversationType::setGlobalCategories() |
||
312 | * @uses EwsConversationType::setFlagStatus() |
||
313 | * @uses EwsConversationType::setGlobalFlagStatus() |
||
314 | * @uses EwsConversationType::setHasAttachments() |
||
315 | * @uses EwsConversationType::setGlobalHasAttachments() |
||
316 | * @uses EwsConversationType::setMessageCount() |
||
317 | * @uses EwsConversationType::setGlobalMessageCount() |
||
318 | * @uses EwsConversationType::setUnreadCount() |
||
319 | * @uses EwsConversationType::setGlobalUnreadCount() |
||
320 | * @uses EwsConversationType::setSize() |
||
321 | * @uses EwsConversationType::setGlobalSize() |
||
322 | * @uses EwsConversationType::setItemClasses() |
||
323 | * @uses EwsConversationType::setGlobalItemClasses() |
||
324 | * @uses EwsConversationType::setImportance() |
||
325 | * @uses EwsConversationType::setGlobalImportance() |
||
326 | * @uses EwsConversationType::setItemIds() |
||
327 | * @uses EwsConversationType::setGlobalItemIds() |
||
328 | * @uses EwsConversationType::setLastModifiedTime() |
||
329 | * @uses EwsConversationType::setInstanceKey() |
||
330 | * @uses EwsConversationType::setPreview() |
||
331 | * @uses EwsConversationType::setMailboxScope() |
||
332 | * @uses EwsConversationType::setIconIndex() |
||
333 | * @uses EwsConversationType::setGlobalIconIndex() |
||
334 | * @uses EwsConversationType::setDraftItemIds() |
||
335 | * @uses EwsConversationType::setHasIrm() |
||
336 | * @uses EwsConversationType::setGlobalHasIrm() |
||
337 | * @uses EwsConversationType::setSortKey() |
||
338 | * @uses EwsConversationType::setMentionedMe() |
||
339 | * @uses EwsConversationType::setGlobalMentionedMe() |
||
340 | * @param \StructType\EwsItemIdType $conversationId |
||
341 | * @param string $conversationTopic |
||
342 | * @param \ArrayType\EwsArrayOfStringsType $uniqueRecipients |
||
343 | * @param \ArrayType\EwsArrayOfStringsType $globalUniqueRecipients |
||
344 | * @param \ArrayType\EwsArrayOfStringsType $uniqueUnreadSenders |
||
345 | * @param \ArrayType\EwsArrayOfStringsType $globalUniqueUnreadSenders |
||
346 | * @param \ArrayType\EwsArrayOfStringsType $uniqueSenders |
||
347 | * @param \ArrayType\EwsArrayOfStringsType $globalUniqueSenders |
||
348 | * @param string $lastDeliveryTime |
||
349 | * @param string $globalLastDeliveryTime |
||
350 | * @param \ArrayType\EwsArrayOfStringsType $categories |
||
351 | * @param \ArrayType\EwsArrayOfStringsType $globalCategories |
||
352 | * @param string $flagStatus |
||
353 | * @param string $globalFlagStatus |
||
354 | * @param bool $hasAttachments |
||
355 | * @param bool $globalHasAttachments |
||
356 | * @param int $messageCount |
||
357 | * @param int $globalMessageCount |
||
358 | * @param int $unreadCount |
||
359 | * @param int $globalUnreadCount |
||
360 | * @param int $size |
||
361 | * @param int $globalSize |
||
362 | * @param \ArrayType\EwsArrayOfItemClassType $itemClasses |
||
363 | * @param \ArrayType\EwsArrayOfItemClassType $globalItemClasses |
||
364 | * @param string $importance |
||
365 | * @param string $globalImportance |
||
366 | * @param \StructType\EwsNonEmptyArrayOfBaseItemIdsType $itemIds |
||
367 | * @param \StructType\EwsNonEmptyArrayOfBaseItemIdsType $globalItemIds |
||
368 | * @param string $lastModifiedTime |
||
369 | * @param string $instanceKey |
||
370 | * @param string $preview |
||
371 | * @param string $mailboxScope |
||
372 | * @param string $iconIndex |
||
373 | * @param string $globalIconIndex |
||
374 | * @param \StructType\EwsNonEmptyArrayOfBaseItemIdsType $draftItemIds |
||
375 | * @param bool $hasIrm |
||
376 | * @param bool $globalHasIrm |
||
377 | * @param int $sortKey |
||
378 | * @param bool $mentionedMe |
||
379 | * @param bool $globalMentionedMe |
||
380 | */ |
||
381 | public function __construct(?\StructType\EwsItemIdType $conversationId = null, ?string $conversationTopic = null, ?\ArrayType\EwsArrayOfStringsType $uniqueRecipients = null, ?\ArrayType\EwsArrayOfStringsType $globalUniqueRecipients = null, ?\ArrayType\EwsArrayOfStringsType $uniqueUnreadSenders = null, ?\ArrayType\EwsArrayOfStringsType $globalUniqueUnreadSenders = null, ?\ArrayType\EwsArrayOfStringsType $uniqueSenders = null, ?\ArrayType\EwsArrayOfStringsType $globalUniqueSenders = null, ?string $lastDeliveryTime = null, ?string $globalLastDeliveryTime = null, ?\ArrayType\EwsArrayOfStringsType $categories = null, ?\ArrayType\EwsArrayOfStringsType $globalCategories = null, ?string $flagStatus = null, ?string $globalFlagStatus = null, ?bool $hasAttachments = null, ?bool $globalHasAttachments = null, ?int $messageCount = null, ?int $globalMessageCount = null, ?int $unreadCount = null, ?int $globalUnreadCount = null, ?int $size = null, ?int $globalSize = null, ?\ArrayType\EwsArrayOfItemClassType $itemClasses = null, ?\ArrayType\EwsArrayOfItemClassType $globalItemClasses = null, ?string $importance = null, ?string $globalImportance = null, ?\StructType\EwsNonEmptyArrayOfBaseItemIdsType $itemIds = null, ?\StructType\EwsNonEmptyArrayOfBaseItemIdsType $globalItemIds = null, ?string $lastModifiedTime = null, ?string $instanceKey = null, ?string $preview = null, ?string $mailboxScope = null, ?string $iconIndex = null, ?string $globalIconIndex = null, ?\StructType\EwsNonEmptyArrayOfBaseItemIdsType $draftItemIds = null, ?bool $hasIrm = null, ?bool $globalHasIrm = null, ?int $sortKey = null, ?bool $mentionedMe = null, ?bool $globalMentionedMe = null) |
||
382 | { |
||
383 | $this |
||
384 | ->setConversationId($conversationId) |
||
385 | ->setConversationTopic($conversationTopic) |
||
386 | ->setUniqueRecipients($uniqueRecipients) |
||
387 | ->setGlobalUniqueRecipients($globalUniqueRecipients) |
||
388 | ->setUniqueUnreadSenders($uniqueUnreadSenders) |
||
389 | ->setGlobalUniqueUnreadSenders($globalUniqueUnreadSenders) |
||
390 | ->setUniqueSenders($uniqueSenders) |
||
391 | ->setGlobalUniqueSenders($globalUniqueSenders) |
||
392 | ->setLastDeliveryTime($lastDeliveryTime) |
||
393 | ->setGlobalLastDeliveryTime($globalLastDeliveryTime) |
||
394 | ->setCategories($categories) |
||
395 | ->setGlobalCategories($globalCategories) |
||
396 | ->setFlagStatus($flagStatus) |
||
397 | ->setGlobalFlagStatus($globalFlagStatus) |
||
398 | ->setHasAttachments($hasAttachments) |
||
399 | ->setGlobalHasAttachments($globalHasAttachments) |
||
400 | ->setMessageCount($messageCount) |
||
401 | ->setGlobalMessageCount($globalMessageCount) |
||
402 | ->setUnreadCount($unreadCount) |
||
403 | ->setGlobalUnreadCount($globalUnreadCount) |
||
404 | ->setSize($size) |
||
405 | ->setGlobalSize($globalSize) |
||
406 | ->setItemClasses($itemClasses) |
||
407 | ->setGlobalItemClasses($globalItemClasses) |
||
408 | ->setImportance($importance) |
||
409 | ->setGlobalImportance($globalImportance) |
||
410 | ->setItemIds($itemIds) |
||
411 | ->setGlobalItemIds($globalItemIds) |
||
412 | ->setLastModifiedTime($lastModifiedTime) |
||
413 | ->setInstanceKey($instanceKey) |
||
414 | ->setPreview($preview) |
||
415 | ->setMailboxScope($mailboxScope) |
||
416 | ->setIconIndex($iconIndex) |
||
417 | ->setGlobalIconIndex($globalIconIndex) |
||
418 | ->setDraftItemIds($draftItemIds) |
||
419 | ->setHasIrm($hasIrm) |
||
420 | ->setGlobalHasIrm($globalHasIrm) |
||
421 | ->setSortKey($sortKey) |
||
422 | ->setMentionedMe($mentionedMe) |
||
423 | ->setGlobalMentionedMe($globalMentionedMe); |
||
424 | } |
||
425 | /** |
||
426 | * Get ConversationId value |
||
427 | * @return \StructType\EwsItemIdType|null |
||
428 | */ |
||
429 | public function getConversationId(): ?\StructType\EwsItemIdType |
||
430 | { |
||
431 | return $this->ConversationId; |
||
432 | } |
||
433 | /** |
||
434 | * Set ConversationId value |
||
435 | * @param \StructType\EwsItemIdType $conversationId |
||
436 | * @return \StructType\EwsConversationType |
||
437 | */ |
||
438 | public function setConversationId(?\StructType\EwsItemIdType $conversationId = null): self |
||
439 | { |
||
440 | $this->ConversationId = $conversationId; |
||
441 | |||
442 | return $this; |
||
443 | } |
||
444 | /** |
||
445 | * Get ConversationTopic value |
||
446 | * @return string|null |
||
447 | */ |
||
448 | public function getConversationTopic(): ?string |
||
449 | { |
||
450 | return $this->ConversationTopic; |
||
451 | } |
||
452 | /** |
||
453 | * Set ConversationTopic value |
||
454 | * @param string $conversationTopic |
||
455 | * @return \StructType\EwsConversationType |
||
456 | */ |
||
457 | public function setConversationTopic(?string $conversationTopic = null): self |
||
458 | { |
||
459 | // validation for constraint: string |
||
460 | if (!is_null($conversationTopic) && !is_string($conversationTopic)) { |
||
|
|||
461 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($conversationTopic, true), gettype($conversationTopic)), __LINE__); |
||
462 | } |
||
463 | $this->ConversationTopic = $conversationTopic; |
||
464 | |||
465 | return $this; |
||
466 | } |
||
467 | /** |
||
468 | * Get UniqueRecipients value |
||
469 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
470 | */ |
||
471 | public function getUniqueRecipients(): ?\ArrayType\EwsArrayOfStringsType |
||
472 | { |
||
473 | return $this->UniqueRecipients; |
||
474 | } |
||
475 | /** |
||
476 | * Set UniqueRecipients value |
||
477 | * @param \ArrayType\EwsArrayOfStringsType $uniqueRecipients |
||
478 | * @return \StructType\EwsConversationType |
||
479 | */ |
||
480 | public function setUniqueRecipients(?\ArrayType\EwsArrayOfStringsType $uniqueRecipients = null): self |
||
481 | { |
||
482 | $this->UniqueRecipients = $uniqueRecipients; |
||
483 | |||
484 | return $this; |
||
485 | } |
||
486 | /** |
||
487 | * Get GlobalUniqueRecipients value |
||
488 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
489 | */ |
||
490 | public function getGlobalUniqueRecipients(): ?\ArrayType\EwsArrayOfStringsType |
||
491 | { |
||
492 | return $this->GlobalUniqueRecipients; |
||
493 | } |
||
494 | /** |
||
495 | * Set GlobalUniqueRecipients value |
||
496 | * @param \ArrayType\EwsArrayOfStringsType $globalUniqueRecipients |
||
497 | * @return \StructType\EwsConversationType |
||
498 | */ |
||
499 | public function setGlobalUniqueRecipients(?\ArrayType\EwsArrayOfStringsType $globalUniqueRecipients = null): self |
||
500 | { |
||
501 | $this->GlobalUniqueRecipients = $globalUniqueRecipients; |
||
502 | |||
503 | return $this; |
||
504 | } |
||
505 | /** |
||
506 | * Get UniqueUnreadSenders value |
||
507 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
508 | */ |
||
509 | public function getUniqueUnreadSenders(): ?\ArrayType\EwsArrayOfStringsType |
||
510 | { |
||
511 | return $this->UniqueUnreadSenders; |
||
512 | } |
||
513 | /** |
||
514 | * Set UniqueUnreadSenders value |
||
515 | * @param \ArrayType\EwsArrayOfStringsType $uniqueUnreadSenders |
||
516 | * @return \StructType\EwsConversationType |
||
517 | */ |
||
518 | public function setUniqueUnreadSenders(?\ArrayType\EwsArrayOfStringsType $uniqueUnreadSenders = null): self |
||
519 | { |
||
520 | $this->UniqueUnreadSenders = $uniqueUnreadSenders; |
||
521 | |||
522 | return $this; |
||
523 | } |
||
524 | /** |
||
525 | * Get GlobalUniqueUnreadSenders value |
||
526 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
527 | */ |
||
528 | public function getGlobalUniqueUnreadSenders(): ?\ArrayType\EwsArrayOfStringsType |
||
529 | { |
||
530 | return $this->GlobalUniqueUnreadSenders; |
||
531 | } |
||
532 | /** |
||
533 | * Set GlobalUniqueUnreadSenders value |
||
534 | * @param \ArrayType\EwsArrayOfStringsType $globalUniqueUnreadSenders |
||
535 | * @return \StructType\EwsConversationType |
||
536 | */ |
||
537 | public function setGlobalUniqueUnreadSenders(?\ArrayType\EwsArrayOfStringsType $globalUniqueUnreadSenders = null): self |
||
538 | { |
||
539 | $this->GlobalUniqueUnreadSenders = $globalUniqueUnreadSenders; |
||
540 | |||
541 | return $this; |
||
542 | } |
||
543 | /** |
||
544 | * Get UniqueSenders value |
||
545 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
546 | */ |
||
547 | public function getUniqueSenders(): ?\ArrayType\EwsArrayOfStringsType |
||
548 | { |
||
549 | return $this->UniqueSenders; |
||
550 | } |
||
551 | /** |
||
552 | * Set UniqueSenders value |
||
553 | * @param \ArrayType\EwsArrayOfStringsType $uniqueSenders |
||
554 | * @return \StructType\EwsConversationType |
||
555 | */ |
||
556 | public function setUniqueSenders(?\ArrayType\EwsArrayOfStringsType $uniqueSenders = null): self |
||
557 | { |
||
558 | $this->UniqueSenders = $uniqueSenders; |
||
559 | |||
560 | return $this; |
||
561 | } |
||
562 | /** |
||
563 | * Get GlobalUniqueSenders value |
||
564 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
565 | */ |
||
566 | public function getGlobalUniqueSenders(): ?\ArrayType\EwsArrayOfStringsType |
||
567 | { |
||
568 | return $this->GlobalUniqueSenders; |
||
569 | } |
||
570 | /** |
||
571 | * Set GlobalUniqueSenders value |
||
572 | * @param \ArrayType\EwsArrayOfStringsType $globalUniqueSenders |
||
573 | * @return \StructType\EwsConversationType |
||
574 | */ |
||
575 | public function setGlobalUniqueSenders(?\ArrayType\EwsArrayOfStringsType $globalUniqueSenders = null): self |
||
576 | { |
||
577 | $this->GlobalUniqueSenders = $globalUniqueSenders; |
||
578 | |||
579 | return $this; |
||
580 | } |
||
581 | /** |
||
582 | * Get LastDeliveryTime value |
||
583 | * @return string|null |
||
584 | */ |
||
585 | public function getLastDeliveryTime(): ?string |
||
586 | { |
||
587 | return $this->LastDeliveryTime; |
||
588 | } |
||
589 | /** |
||
590 | * Set LastDeliveryTime value |
||
591 | * @param string $lastDeliveryTime |
||
592 | * @return \StructType\EwsConversationType |
||
593 | */ |
||
594 | public function setLastDeliveryTime(?string $lastDeliveryTime = null): self |
||
595 | { |
||
596 | // validation for constraint: string |
||
597 | if (!is_null($lastDeliveryTime) && !is_string($lastDeliveryTime)) { |
||
598 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($lastDeliveryTime, true), gettype($lastDeliveryTime)), __LINE__); |
||
599 | } |
||
600 | $this->LastDeliveryTime = $lastDeliveryTime; |
||
601 | |||
602 | return $this; |
||
603 | } |
||
604 | /** |
||
605 | * Get GlobalLastDeliveryTime value |
||
606 | * @return string|null |
||
607 | */ |
||
608 | public function getGlobalLastDeliveryTime(): ?string |
||
609 | { |
||
610 | return $this->GlobalLastDeliveryTime; |
||
611 | } |
||
612 | /** |
||
613 | * Set GlobalLastDeliveryTime value |
||
614 | * @param string $globalLastDeliveryTime |
||
615 | * @return \StructType\EwsConversationType |
||
616 | */ |
||
617 | public function setGlobalLastDeliveryTime(?string $globalLastDeliveryTime = null): self |
||
618 | { |
||
619 | // validation for constraint: string |
||
620 | if (!is_null($globalLastDeliveryTime) && !is_string($globalLastDeliveryTime)) { |
||
621 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($globalLastDeliveryTime, true), gettype($globalLastDeliveryTime)), __LINE__); |
||
622 | } |
||
623 | $this->GlobalLastDeliveryTime = $globalLastDeliveryTime; |
||
624 | |||
625 | return $this; |
||
626 | } |
||
627 | /** |
||
628 | * Get Categories value |
||
629 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
630 | */ |
||
631 | public function getCategories(): ?\ArrayType\EwsArrayOfStringsType |
||
632 | { |
||
633 | return $this->Categories; |
||
634 | } |
||
635 | /** |
||
636 | * Set Categories value |
||
637 | * @param \ArrayType\EwsArrayOfStringsType $categories |
||
638 | * @return \StructType\EwsConversationType |
||
639 | */ |
||
640 | public function setCategories(?\ArrayType\EwsArrayOfStringsType $categories = null): self |
||
641 | { |
||
642 | $this->Categories = $categories; |
||
643 | |||
644 | return $this; |
||
645 | } |
||
646 | /** |
||
647 | * Get GlobalCategories value |
||
648 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
649 | */ |
||
650 | public function getGlobalCategories(): ?\ArrayType\EwsArrayOfStringsType |
||
651 | { |
||
652 | return $this->GlobalCategories; |
||
653 | } |
||
654 | /** |
||
655 | * Set GlobalCategories value |
||
656 | * @param \ArrayType\EwsArrayOfStringsType $globalCategories |
||
657 | * @return \StructType\EwsConversationType |
||
658 | */ |
||
659 | public function setGlobalCategories(?\ArrayType\EwsArrayOfStringsType $globalCategories = null): self |
||
660 | { |
||
661 | $this->GlobalCategories = $globalCategories; |
||
662 | |||
663 | return $this; |
||
664 | } |
||
665 | /** |
||
666 | * Get FlagStatus value |
||
667 | * @return string|null |
||
668 | */ |
||
669 | public function getFlagStatus(): ?string |
||
670 | { |
||
671 | return $this->FlagStatus; |
||
672 | } |
||
673 | /** |
||
674 | * Set FlagStatus value |
||
675 | * @uses \EnumType\EwsFlagStatusType::valueIsValid() |
||
676 | * @uses \EnumType\EwsFlagStatusType::getValidValues() |
||
677 | * @throws InvalidArgumentException |
||
678 | * @param string $flagStatus |
||
679 | * @return \StructType\EwsConversationType |
||
680 | */ |
||
681 | public function setFlagStatus(?string $flagStatus = null): self |
||
682 | { |
||
683 | // validation for constraint: enumeration |
||
684 | if (!\EnumType\EwsFlagStatusType::valueIsValid($flagStatus)) { |
||
685 | throw new InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \EnumType\EwsFlagStatusType', is_array($flagStatus) ? implode(', ', $flagStatus) : var_export($flagStatus, true), implode(', ', \EnumType\EwsFlagStatusType::getValidValues())), __LINE__); |
||
686 | } |
||
687 | $this->FlagStatus = $flagStatus; |
||
688 | |||
689 | return $this; |
||
690 | } |
||
691 | /** |
||
692 | * Get GlobalFlagStatus value |
||
693 | * @return string|null |
||
694 | */ |
||
695 | public function getGlobalFlagStatus(): ?string |
||
696 | { |
||
697 | return $this->GlobalFlagStatus; |
||
698 | } |
||
699 | /** |
||
700 | * Set GlobalFlagStatus value |
||
701 | * @uses \EnumType\EwsFlagStatusType::valueIsValid() |
||
702 | * @uses \EnumType\EwsFlagStatusType::getValidValues() |
||
703 | * @throws InvalidArgumentException |
||
704 | * @param string $globalFlagStatus |
||
705 | * @return \StructType\EwsConversationType |
||
706 | */ |
||
707 | public function setGlobalFlagStatus(?string $globalFlagStatus = null): self |
||
708 | { |
||
709 | // validation for constraint: enumeration |
||
710 | if (!\EnumType\EwsFlagStatusType::valueIsValid($globalFlagStatus)) { |
||
711 | throw new InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \EnumType\EwsFlagStatusType', is_array($globalFlagStatus) ? implode(', ', $globalFlagStatus) : var_export($globalFlagStatus, true), implode(', ', \EnumType\EwsFlagStatusType::getValidValues())), __LINE__); |
||
712 | } |
||
713 | $this->GlobalFlagStatus = $globalFlagStatus; |
||
714 | |||
715 | return $this; |
||
716 | } |
||
717 | /** |
||
718 | * Get HasAttachments value |
||
719 | * @return bool|null |
||
720 | */ |
||
721 | public function getHasAttachments(): ?bool |
||
722 | { |
||
723 | return $this->HasAttachments; |
||
724 | } |
||
725 | /** |
||
726 | * Set HasAttachments value |
||
727 | * @param bool $hasAttachments |
||
728 | * @return \StructType\EwsConversationType |
||
729 | */ |
||
730 | public function setHasAttachments(?bool $hasAttachments = null): self |
||
731 | { |
||
732 | // validation for constraint: boolean |
||
733 | if (!is_null($hasAttachments) && !is_bool($hasAttachments)) { |
||
734 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($hasAttachments, true), gettype($hasAttachments)), __LINE__); |
||
735 | } |
||
736 | $this->HasAttachments = $hasAttachments; |
||
737 | |||
738 | return $this; |
||
739 | } |
||
740 | /** |
||
741 | * Get GlobalHasAttachments value |
||
742 | * @return bool|null |
||
743 | */ |
||
744 | public function getGlobalHasAttachments(): ?bool |
||
745 | { |
||
746 | return $this->GlobalHasAttachments; |
||
747 | } |
||
748 | /** |
||
749 | * Set GlobalHasAttachments value |
||
750 | * @param bool $globalHasAttachments |
||
751 | * @return \StructType\EwsConversationType |
||
752 | */ |
||
753 | public function setGlobalHasAttachments(?bool $globalHasAttachments = null): self |
||
754 | { |
||
755 | // validation for constraint: boolean |
||
756 | if (!is_null($globalHasAttachments) && !is_bool($globalHasAttachments)) { |
||
757 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($globalHasAttachments, true), gettype($globalHasAttachments)), __LINE__); |
||
758 | } |
||
759 | $this->GlobalHasAttachments = $globalHasAttachments; |
||
760 | |||
761 | return $this; |
||
762 | } |
||
763 | /** |
||
764 | * Get MessageCount value |
||
765 | * @return int|null |
||
766 | */ |
||
767 | public function getMessageCount(): ?int |
||
770 | } |
||
771 | /** |
||
772 | * Set MessageCount value |
||
773 | * @param int $messageCount |
||
774 | * @return \StructType\EwsConversationType |
||
775 | */ |
||
776 | public function setMessageCount(?int $messageCount = null): self |
||
777 | { |
||
778 | // validation for constraint: int |
||
779 | if (!is_null($messageCount) && !(is_int($messageCount) || ctype_digit($messageCount))) { |
||
780 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($messageCount, true), gettype($messageCount)), __LINE__); |
||
781 | } |
||
782 | $this->MessageCount = $messageCount; |
||
783 | |||
784 | return $this; |
||
785 | } |
||
786 | /** |
||
787 | * Get GlobalMessageCount value |
||
788 | * @return int|null |
||
789 | */ |
||
790 | public function getGlobalMessageCount(): ?int |
||
791 | { |
||
792 | return $this->GlobalMessageCount; |
||
793 | } |
||
794 | /** |
||
795 | * Set GlobalMessageCount value |
||
796 | * @param int $globalMessageCount |
||
797 | * @return \StructType\EwsConversationType |
||
798 | */ |
||
799 | public function setGlobalMessageCount(?int $globalMessageCount = null): self |
||
800 | { |
||
801 | // validation for constraint: int |
||
802 | if (!is_null($globalMessageCount) && !(is_int($globalMessageCount) || ctype_digit($globalMessageCount))) { |
||
803 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($globalMessageCount, true), gettype($globalMessageCount)), __LINE__); |
||
804 | } |
||
805 | $this->GlobalMessageCount = $globalMessageCount; |
||
806 | |||
807 | return $this; |
||
808 | } |
||
809 | /** |
||
810 | * Get UnreadCount value |
||
811 | * @return int|null |
||
812 | */ |
||
813 | public function getUnreadCount(): ?int |
||
814 | { |
||
815 | return $this->UnreadCount; |
||
816 | } |
||
817 | /** |
||
818 | * Set UnreadCount value |
||
819 | * @param int $unreadCount |
||
820 | * @return \StructType\EwsConversationType |
||
821 | */ |
||
822 | public function setUnreadCount(?int $unreadCount = null): self |
||
823 | { |
||
824 | // validation for constraint: int |
||
825 | if (!is_null($unreadCount) && !(is_int($unreadCount) || ctype_digit($unreadCount))) { |
||
826 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($unreadCount, true), gettype($unreadCount)), __LINE__); |
||
827 | } |
||
828 | $this->UnreadCount = $unreadCount; |
||
829 | |||
830 | return $this; |
||
831 | } |
||
832 | /** |
||
833 | * Get GlobalUnreadCount value |
||
834 | * @return int|null |
||
835 | */ |
||
836 | public function getGlobalUnreadCount(): ?int |
||
837 | { |
||
838 | return $this->GlobalUnreadCount; |
||
839 | } |
||
840 | /** |
||
841 | * Set GlobalUnreadCount value |
||
842 | * @param int $globalUnreadCount |
||
843 | * @return \StructType\EwsConversationType |
||
844 | */ |
||
845 | public function setGlobalUnreadCount(?int $globalUnreadCount = null): self |
||
846 | { |
||
847 | // validation for constraint: int |
||
848 | if (!is_null($globalUnreadCount) && !(is_int($globalUnreadCount) || ctype_digit($globalUnreadCount))) { |
||
849 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($globalUnreadCount, true), gettype($globalUnreadCount)), __LINE__); |
||
850 | } |
||
851 | $this->GlobalUnreadCount = $globalUnreadCount; |
||
852 | |||
853 | return $this; |
||
854 | } |
||
855 | /** |
||
856 | * Get Size value |
||
857 | * @return int|null |
||
858 | */ |
||
859 | public function getSize(): ?int |
||
860 | { |
||
861 | return $this->Size; |
||
862 | } |
||
863 | /** |
||
864 | * Set Size value |
||
865 | * @param int $size |
||
866 | * @return \StructType\EwsConversationType |
||
867 | */ |
||
868 | public function setSize(?int $size = null): self |
||
869 | { |
||
870 | // validation for constraint: int |
||
871 | if (!is_null($size) && !(is_int($size) || ctype_digit($size))) { |
||
872 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($size, true), gettype($size)), __LINE__); |
||
873 | } |
||
874 | $this->Size = $size; |
||
875 | |||
876 | return $this; |
||
877 | } |
||
878 | /** |
||
879 | * Get GlobalSize value |
||
880 | * @return int|null |
||
881 | */ |
||
882 | public function getGlobalSize(): ?int |
||
885 | } |
||
886 | /** |
||
887 | * Set GlobalSize value |
||
888 | * @param int $globalSize |
||
889 | * @return \StructType\EwsConversationType |
||
890 | */ |
||
891 | public function setGlobalSize(?int $globalSize = null): self |
||
892 | { |
||
893 | // validation for constraint: int |
||
894 | if (!is_null($globalSize) && !(is_int($globalSize) || ctype_digit($globalSize))) { |
||
895 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($globalSize, true), gettype($globalSize)), __LINE__); |
||
896 | } |
||
897 | $this->GlobalSize = $globalSize; |
||
898 | |||
899 | return $this; |
||
900 | } |
||
901 | /** |
||
902 | * Get ItemClasses value |
||
903 | * @return \ArrayType\EwsArrayOfItemClassType|null |
||
904 | */ |
||
905 | public function getItemClasses(): ?\ArrayType\EwsArrayOfItemClassType |
||
906 | { |
||
907 | return $this->ItemClasses; |
||
908 | } |
||
909 | /** |
||
910 | * Set ItemClasses value |
||
911 | * @param \ArrayType\EwsArrayOfItemClassType $itemClasses |
||
912 | * @return \StructType\EwsConversationType |
||
913 | */ |
||
914 | public function setItemClasses(?\ArrayType\EwsArrayOfItemClassType $itemClasses = null): self |
||
915 | { |
||
916 | $this->ItemClasses = $itemClasses; |
||
917 | |||
918 | return $this; |
||
919 | } |
||
920 | /** |
||
921 | * Get GlobalItemClasses value |
||
922 | * @return \ArrayType\EwsArrayOfItemClassType|null |
||
923 | */ |
||
924 | public function getGlobalItemClasses(): ?\ArrayType\EwsArrayOfItemClassType |
||
925 | { |
||
926 | return $this->GlobalItemClasses; |
||
927 | } |
||
928 | /** |
||
929 | * Set GlobalItemClasses value |
||
930 | * @param \ArrayType\EwsArrayOfItemClassType $globalItemClasses |
||
931 | * @return \StructType\EwsConversationType |
||
932 | */ |
||
933 | public function setGlobalItemClasses(?\ArrayType\EwsArrayOfItemClassType $globalItemClasses = null): self |
||
934 | { |
||
935 | $this->GlobalItemClasses = $globalItemClasses; |
||
936 | |||
937 | return $this; |
||
938 | } |
||
939 | /** |
||
940 | * Get Importance value |
||
941 | * @return string|null |
||
942 | */ |
||
943 | public function getImportance(): ?string |
||
944 | { |
||
945 | return $this->Importance; |
||
946 | } |
||
947 | /** |
||
948 | * Set Importance value |
||
949 | * @uses \EnumType\EwsImportanceChoicesType::valueIsValid() |
||
950 | * @uses \EnumType\EwsImportanceChoicesType::getValidValues() |
||
951 | * @throws InvalidArgumentException |
||
952 | * @param string $importance |
||
953 | * @return \StructType\EwsConversationType |
||
954 | */ |
||
955 | public function setImportance(?string $importance = null): self |
||
956 | { |
||
957 | // validation for constraint: enumeration |
||
958 | if (!\EnumType\EwsImportanceChoicesType::valueIsValid($importance)) { |
||
959 | throw new InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \EnumType\EwsImportanceChoicesType', is_array($importance) ? implode(', ', $importance) : var_export($importance, true), implode(', ', \EnumType\EwsImportanceChoicesType::getValidValues())), __LINE__); |
||
960 | } |
||
961 | $this->Importance = $importance; |
||
962 | |||
963 | return $this; |
||
964 | } |
||
965 | /** |
||
966 | * Get GlobalImportance value |
||
967 | * @return string|null |
||
968 | */ |
||
969 | public function getGlobalImportance(): ?string |
||
970 | { |
||
971 | return $this->GlobalImportance; |
||
972 | } |
||
973 | /** |
||
974 | * Set GlobalImportance value |
||
975 | * @uses \EnumType\EwsImportanceChoicesType::valueIsValid() |
||
976 | * @uses \EnumType\EwsImportanceChoicesType::getValidValues() |
||
977 | * @throws InvalidArgumentException |
||
978 | * @param string $globalImportance |
||
979 | * @return \StructType\EwsConversationType |
||
980 | */ |
||
981 | public function setGlobalImportance(?string $globalImportance = null): self |
||
982 | { |
||
983 | // validation for constraint: enumeration |
||
984 | if (!\EnumType\EwsImportanceChoicesType::valueIsValid($globalImportance)) { |
||
985 | throw new InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \EnumType\EwsImportanceChoicesType', is_array($globalImportance) ? implode(', ', $globalImportance) : var_export($globalImportance, true), implode(', ', \EnumType\EwsImportanceChoicesType::getValidValues())), __LINE__); |
||
986 | } |
||
987 | $this->GlobalImportance = $globalImportance; |
||
988 | |||
989 | return $this; |
||
990 | } |
||
991 | /** |
||
992 | * Get ItemIds value |
||
993 | * @return \StructType\EwsNonEmptyArrayOfBaseItemIdsType|null |
||
994 | */ |
||
995 | public function getItemIds(): ?\StructType\EwsNonEmptyArrayOfBaseItemIdsType |
||
998 | } |
||
999 | /** |
||
1000 | * Set ItemIds value |
||
1001 | * @param \StructType\EwsNonEmptyArrayOfBaseItemIdsType $itemIds |
||
1002 | * @return \StructType\EwsConversationType |
||
1003 | */ |
||
1004 | public function setItemIds(?\StructType\EwsNonEmptyArrayOfBaseItemIdsType $itemIds = null): self |
||
1005 | { |
||
1006 | $this->ItemIds = $itemIds; |
||
1007 | |||
1008 | return $this; |
||
1009 | } |
||
1010 | /** |
||
1011 | * Get GlobalItemIds value |
||
1012 | * @return \StructType\EwsNonEmptyArrayOfBaseItemIdsType|null |
||
1013 | */ |
||
1014 | public function getGlobalItemIds(): ?\StructType\EwsNonEmptyArrayOfBaseItemIdsType |
||
1015 | { |
||
1016 | return $this->GlobalItemIds; |
||
1017 | } |
||
1018 | /** |
||
1019 | * Set GlobalItemIds value |
||
1020 | * @param \StructType\EwsNonEmptyArrayOfBaseItemIdsType $globalItemIds |
||
1021 | * @return \StructType\EwsConversationType |
||
1022 | */ |
||
1023 | public function setGlobalItemIds(?\StructType\EwsNonEmptyArrayOfBaseItemIdsType $globalItemIds = null): self |
||
1024 | { |
||
1025 | $this->GlobalItemIds = $globalItemIds; |
||
1026 | |||
1027 | return $this; |
||
1028 | } |
||
1029 | /** |
||
1030 | * Get LastModifiedTime value |
||
1031 | * @return string|null |
||
1032 | */ |
||
1033 | public function getLastModifiedTime(): ?string |
||
1034 | { |
||
1035 | return $this->LastModifiedTime; |
||
1036 | } |
||
1037 | /** |
||
1038 | * Set LastModifiedTime value |
||
1039 | * @param string $lastModifiedTime |
||
1040 | * @return \StructType\EwsConversationType |
||
1041 | */ |
||
1042 | public function setLastModifiedTime(?string $lastModifiedTime = null): self |
||
1043 | { |
||
1044 | // validation for constraint: string |
||
1045 | if (!is_null($lastModifiedTime) && !is_string($lastModifiedTime)) { |
||
1046 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($lastModifiedTime, true), gettype($lastModifiedTime)), __LINE__); |
||
1047 | } |
||
1048 | $this->LastModifiedTime = $lastModifiedTime; |
||
1049 | |||
1050 | return $this; |
||
1051 | } |
||
1052 | /** |
||
1053 | * Get InstanceKey value |
||
1054 | * @return string|null |
||
1055 | */ |
||
1056 | public function getInstanceKey(): ?string |
||
1057 | { |
||
1058 | return $this->InstanceKey; |
||
1059 | } |
||
1060 | /** |
||
1061 | * Set InstanceKey value |
||
1062 | * @param string $instanceKey |
||
1063 | * @return \StructType\EwsConversationType |
||
1064 | */ |
||
1065 | public function setInstanceKey(?string $instanceKey = null): self |
||
1066 | { |
||
1067 | // validation for constraint: string |
||
1068 | if (!is_null($instanceKey) && !is_string($instanceKey)) { |
||
1069 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($instanceKey, true), gettype($instanceKey)), __LINE__); |
||
1070 | } |
||
1071 | $this->InstanceKey = $instanceKey; |
||
1072 | |||
1073 | return $this; |
||
1074 | } |
||
1075 | /** |
||
1076 | * Get Preview value |
||
1077 | * @return string|null |
||
1078 | */ |
||
1079 | public function getPreview(): ?string |
||
1080 | { |
||
1081 | return $this->Preview; |
||
1082 | } |
||
1083 | /** |
||
1084 | * Set Preview value |
||
1085 | * @param string $preview |
||
1086 | * @return \StructType\EwsConversationType |
||
1087 | */ |
||
1088 | public function setPreview(?string $preview = null): self |
||
1089 | { |
||
1090 | // validation for constraint: string |
||
1091 | if (!is_null($preview) && !is_string($preview)) { |
||
1092 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($preview, true), gettype($preview)), __LINE__); |
||
1093 | } |
||
1094 | $this->Preview = $preview; |
||
1095 | |||
1096 | return $this; |
||
1097 | } |
||
1098 | /** |
||
1099 | * Get MailboxScope value |
||
1100 | * @return string|null |
||
1101 | */ |
||
1102 | public function getMailboxScope(): ?string |
||
1103 | { |
||
1104 | return $this->MailboxScope; |
||
1105 | } |
||
1106 | /** |
||
1107 | * Set MailboxScope value |
||
1108 | * @uses \EnumType\EwsMailboxSearchLocationType::valueIsValid() |
||
1109 | * @uses \EnumType\EwsMailboxSearchLocationType::getValidValues() |
||
1110 | * @throws InvalidArgumentException |
||
1111 | * @param string $mailboxScope |
||
1112 | * @return \StructType\EwsConversationType |
||
1113 | */ |
||
1114 | public function setMailboxScope(?string $mailboxScope = null): self |
||
1115 | { |
||
1116 | // validation for constraint: enumeration |
||
1117 | if (!\EnumType\EwsMailboxSearchLocationType::valueIsValid($mailboxScope)) { |
||
1118 | throw new InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \EnumType\EwsMailboxSearchLocationType', is_array($mailboxScope) ? implode(', ', $mailboxScope) : var_export($mailboxScope, true), implode(', ', \EnumType\EwsMailboxSearchLocationType::getValidValues())), __LINE__); |
||
1119 | } |
||
1120 | $this->MailboxScope = $mailboxScope; |
||
1121 | |||
1122 | return $this; |
||
1123 | } |
||
1124 | /** |
||
1125 | * Get IconIndex value |
||
1126 | * @return string|null |
||
1127 | */ |
||
1128 | public function getIconIndex(): ?string |
||
1129 | { |
||
1130 | return $this->IconIndex; |
||
1131 | } |
||
1132 | /** |
||
1133 | * Set IconIndex value |
||
1134 | * @uses \EnumType\EwsIconIndexType::valueIsValid() |
||
1135 | * @uses \EnumType\EwsIconIndexType::getValidValues() |
||
1136 | * @throws InvalidArgumentException |
||
1137 | * @param string $iconIndex |
||
1138 | * @return \StructType\EwsConversationType |
||
1139 | */ |
||
1140 | public function setIconIndex(?string $iconIndex = null): self |
||
1141 | { |
||
1142 | // validation for constraint: enumeration |
||
1143 | if (!\EnumType\EwsIconIndexType::valueIsValid($iconIndex)) { |
||
1144 | throw new InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \EnumType\EwsIconIndexType', is_array($iconIndex) ? implode(', ', $iconIndex) : var_export($iconIndex, true), implode(', ', \EnumType\EwsIconIndexType::getValidValues())), __LINE__); |
||
1145 | } |
||
1146 | $this->IconIndex = $iconIndex; |
||
1147 | |||
1148 | return $this; |
||
1149 | } |
||
1150 | /** |
||
1151 | * Get GlobalIconIndex value |
||
1152 | * @return string|null |
||
1153 | */ |
||
1154 | public function getGlobalIconIndex(): ?string |
||
1155 | { |
||
1156 | return $this->GlobalIconIndex; |
||
1157 | } |
||
1158 | /** |
||
1159 | * Set GlobalIconIndex value |
||
1160 | * @uses \EnumType\EwsIconIndexType::valueIsValid() |
||
1161 | * @uses \EnumType\EwsIconIndexType::getValidValues() |
||
1162 | * @throws InvalidArgumentException |
||
1163 | * @param string $globalIconIndex |
||
1164 | * @return \StructType\EwsConversationType |
||
1165 | */ |
||
1166 | public function setGlobalIconIndex(?string $globalIconIndex = null): self |
||
1167 | { |
||
1168 | // validation for constraint: enumeration |
||
1169 | if (!\EnumType\EwsIconIndexType::valueIsValid($globalIconIndex)) { |
||
1170 | throw new InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \EnumType\EwsIconIndexType', is_array($globalIconIndex) ? implode(', ', $globalIconIndex) : var_export($globalIconIndex, true), implode(', ', \EnumType\EwsIconIndexType::getValidValues())), __LINE__); |
||
1171 | } |
||
1172 | $this->GlobalIconIndex = $globalIconIndex; |
||
1173 | |||
1174 | return $this; |
||
1175 | } |
||
1176 | /** |
||
1177 | * Get DraftItemIds value |
||
1178 | * @return \StructType\EwsNonEmptyArrayOfBaseItemIdsType|null |
||
1179 | */ |
||
1180 | public function getDraftItemIds(): ?\StructType\EwsNonEmptyArrayOfBaseItemIdsType |
||
1181 | { |
||
1182 | return $this->DraftItemIds; |
||
1183 | } |
||
1184 | /** |
||
1185 | * Set DraftItemIds value |
||
1186 | * @param \StructType\EwsNonEmptyArrayOfBaseItemIdsType $draftItemIds |
||
1187 | * @return \StructType\EwsConversationType |
||
1188 | */ |
||
1189 | public function setDraftItemIds(?\StructType\EwsNonEmptyArrayOfBaseItemIdsType $draftItemIds = null): self |
||
1190 | { |
||
1191 | $this->DraftItemIds = $draftItemIds; |
||
1192 | |||
1193 | return $this; |
||
1194 | } |
||
1195 | /** |
||
1196 | * Get HasIrm value |
||
1197 | * @return bool|null |
||
1198 | */ |
||
1199 | public function getHasIrm(): ?bool |
||
1200 | { |
||
1201 | return $this->HasIrm; |
||
1202 | } |
||
1203 | /** |
||
1204 | * Set HasIrm value |
||
1205 | * @param bool $hasIrm |
||
1206 | * @return \StructType\EwsConversationType |
||
1207 | */ |
||
1208 | public function setHasIrm(?bool $hasIrm = null): self |
||
1209 | { |
||
1210 | // validation for constraint: boolean |
||
1211 | if (!is_null($hasIrm) && !is_bool($hasIrm)) { |
||
1212 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($hasIrm, true), gettype($hasIrm)), __LINE__); |
||
1213 | } |
||
1214 | $this->HasIrm = $hasIrm; |
||
1215 | |||
1216 | return $this; |
||
1217 | } |
||
1218 | /** |
||
1219 | * Get GlobalHasIrm value |
||
1220 | * @return bool|null |
||
1221 | */ |
||
1222 | public function getGlobalHasIrm(): ?bool |
||
1223 | { |
||
1224 | return $this->GlobalHasIrm; |
||
1225 | } |
||
1226 | /** |
||
1227 | * Set GlobalHasIrm value |
||
1228 | * @param bool $globalHasIrm |
||
1229 | * @return \StructType\EwsConversationType |
||
1230 | */ |
||
1231 | public function setGlobalHasIrm(?bool $globalHasIrm = null): self |
||
1240 | } |
||
1241 | /** |
||
1242 | * Get SortKey value |
||
1243 | * @return int|null |
||
1244 | */ |
||
1245 | public function getSortKey(): ?int |
||
1246 | { |
||
1247 | return $this->SortKey; |
||
1248 | } |
||
1249 | /** |
||
1250 | * Set SortKey value |
||
1251 | * @param int $sortKey |
||
1252 | * @return \StructType\EwsConversationType |
||
1253 | */ |
||
1254 | public function setSortKey(?int $sortKey = null): self |
||
1255 | { |
||
1256 | // validation for constraint: int |
||
1257 | if (!is_null($sortKey) && !(is_int($sortKey) || ctype_digit($sortKey))) { |
||
1258 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($sortKey, true), gettype($sortKey)), __LINE__); |
||
1259 | } |
||
1260 | $this->SortKey = $sortKey; |
||
1261 | |||
1262 | return $this; |
||
1263 | } |
||
1264 | /** |
||
1265 | * Get MentionedMe value |
||
1266 | * @return bool|null |
||
1267 | */ |
||
1268 | public function getMentionedMe(): ?bool |
||
1269 | { |
||
1270 | return $this->MentionedMe; |
||
1271 | } |
||
1272 | /** |
||
1273 | * Set MentionedMe value |
||
1274 | * @param bool $mentionedMe |
||
1275 | * @return \StructType\EwsConversationType |
||
1276 | */ |
||
1277 | public function setMentionedMe(?bool $mentionedMe = null): self |
||
1286 | } |
||
1287 | /** |
||
1288 | * Get GlobalMentionedMe value |
||
1289 | * @return bool|null |
||
1290 | */ |
||
1291 | public function getGlobalMentionedMe(): ?bool |
||
1292 | { |
||
1293 | return $this->GlobalMentionedMe; |
||
1294 | } |
||
1295 | /** |
||
1296 | * Set GlobalMentionedMe value |
||
1297 | * @param bool $globalMentionedMe |
||
1298 | * @return \StructType\EwsConversationType |
||
1299 | */ |
||
1300 | public function setGlobalMentionedMe(?bool $globalMentionedMe = null): self |
||
1301 | { |
||
1302 | // validation for constraint: boolean |
||
1303 | if (!is_null($globalMentionedMe) && !is_bool($globalMentionedMe)) { |
||
1304 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($globalMentionedMe, true), gettype($globalMentionedMe)), __LINE__); |
||
1309 | } |
||
1310 | } |
||
1311 |