|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
namespace StructType; |
|
6
|
|
|
|
|
7
|
|
|
use InvalidArgumentException; |
|
8
|
|
|
use WsdlToPhp\PackageBase\AbstractStructBase; |
|
9
|
|
|
|
|
10
|
|
|
/** |
|
11
|
|
|
* This class stands for SearchPreviewItemType StructType |
|
12
|
|
|
* Meta information extracted from the WSDL |
|
13
|
|
|
* - documentation: Mailbox search preview item. |
|
14
|
|
|
* @package Ews |
|
15
|
|
|
* @subpackage Structs |
|
16
|
|
|
* @author WsdlToPhp <[email protected]> |
|
17
|
|
|
*/ |
|
18
|
|
|
class EwsSearchPreviewItemType extends AbstractStructBase |
|
19
|
|
|
{ |
|
20
|
|
|
/** |
|
21
|
|
|
* The Id |
|
22
|
|
|
* Meta information extracted from the WSDL |
|
23
|
|
|
* - maxOccurs: 1 |
|
24
|
|
|
* - minOccurs: 1 |
|
25
|
|
|
* @var \StructType\EwsItemIdType |
|
26
|
|
|
*/ |
|
27
|
|
|
protected \StructType\EwsItemIdType $Id; |
|
28
|
|
|
/** |
|
29
|
|
|
* The Mailbox |
|
30
|
|
|
* Meta information extracted from the WSDL |
|
31
|
|
|
* - maxOccurs: 1 |
|
32
|
|
|
* - minOccurs: 0 |
|
33
|
|
|
* @var \StructType\EwsPreviewItemMailboxType|null |
|
34
|
|
|
*/ |
|
35
|
|
|
protected ?\StructType\EwsPreviewItemMailboxType $Mailbox = null; |
|
36
|
|
|
/** |
|
37
|
|
|
* The ParentId |
|
38
|
|
|
* Meta information extracted from the WSDL |
|
39
|
|
|
* - maxOccurs: 1 |
|
40
|
|
|
* - minOccurs: 0 |
|
41
|
|
|
* @var \StructType\EwsItemIdType|null |
|
42
|
|
|
*/ |
|
43
|
|
|
protected ?\StructType\EwsItemIdType $ParentId = null; |
|
44
|
|
|
/** |
|
45
|
|
|
* The ItemClass |
|
46
|
|
|
* Meta information extracted from the WSDL |
|
47
|
|
|
* - base: xs:string |
|
48
|
|
|
* - maxOccurs: 1 |
|
49
|
|
|
* - minOccurs: 0 |
|
50
|
|
|
* @var string|null |
|
51
|
|
|
*/ |
|
52
|
|
|
protected ?string $ItemClass = null; |
|
53
|
|
|
/** |
|
54
|
|
|
* The UniqueHash |
|
55
|
|
|
* Meta information extracted from the WSDL |
|
56
|
|
|
* - maxOccurs: 1 |
|
57
|
|
|
* - minOccurs: 0 |
|
58
|
|
|
* @var string|null |
|
59
|
|
|
*/ |
|
60
|
|
|
protected ?string $UniqueHash = null; |
|
61
|
|
|
/** |
|
62
|
|
|
* The SortValue |
|
63
|
|
|
* Meta information extracted from the WSDL |
|
64
|
|
|
* - maxOccurs: 1 |
|
65
|
|
|
* - minOccurs: 0 |
|
66
|
|
|
* @var string|null |
|
67
|
|
|
*/ |
|
68
|
|
|
protected ?string $SortValue = null; |
|
69
|
|
|
/** |
|
70
|
|
|
* The OwaLink |
|
71
|
|
|
* Meta information extracted from the WSDL |
|
72
|
|
|
* - maxOccurs: 1 |
|
73
|
|
|
* - minOccurs: 0 |
|
74
|
|
|
* @var string|null |
|
75
|
|
|
*/ |
|
76
|
|
|
protected ?string $OwaLink = null; |
|
77
|
|
|
/** |
|
78
|
|
|
* The Sender |
|
79
|
|
|
* Meta information extracted from the WSDL |
|
80
|
|
|
* - maxOccurs: 1 |
|
81
|
|
|
* - minOccurs: 0 |
|
82
|
|
|
* @var string|null |
|
83
|
|
|
*/ |
|
84
|
|
|
protected ?string $Sender = null; |
|
85
|
|
|
/** |
|
86
|
|
|
* The ToRecipients |
|
87
|
|
|
* Meta information extracted from the WSDL |
|
88
|
|
|
* - maxOccurs: 1 |
|
89
|
|
|
* - minOccurs: 0 |
|
90
|
|
|
* @var \ArrayType\EwsArrayOfSmtpAddressType|null |
|
91
|
|
|
*/ |
|
92
|
|
|
protected ?\ArrayType\EwsArrayOfSmtpAddressType $ToRecipients = null; |
|
93
|
|
|
/** |
|
94
|
|
|
* The CcRecipients |
|
95
|
|
|
* Meta information extracted from the WSDL |
|
96
|
|
|
* - maxOccurs: 1 |
|
97
|
|
|
* - minOccurs: 0 |
|
98
|
|
|
* @var \ArrayType\EwsArrayOfSmtpAddressType|null |
|
99
|
|
|
*/ |
|
100
|
|
|
protected ?\ArrayType\EwsArrayOfSmtpAddressType $CcRecipients = null; |
|
101
|
|
|
/** |
|
102
|
|
|
* The BccRecipients |
|
103
|
|
|
* Meta information extracted from the WSDL |
|
104
|
|
|
* - maxOccurs: 1 |
|
105
|
|
|
* - minOccurs: 0 |
|
106
|
|
|
* @var \ArrayType\EwsArrayOfSmtpAddressType|null |
|
107
|
|
|
*/ |
|
108
|
|
|
protected ?\ArrayType\EwsArrayOfSmtpAddressType $BccRecipients = null; |
|
109
|
|
|
/** |
|
110
|
|
|
* The CreatedTime |
|
111
|
|
|
* Meta information extracted from the WSDL |
|
112
|
|
|
* - maxOccurs: 1 |
|
113
|
|
|
* - minOccurs: 0 |
|
114
|
|
|
* @var string|null |
|
115
|
|
|
*/ |
|
116
|
|
|
protected ?string $CreatedTime = null; |
|
117
|
|
|
/** |
|
118
|
|
|
* The ReceivedTime |
|
119
|
|
|
* Meta information extracted from the WSDL |
|
120
|
|
|
* - maxOccurs: 1 |
|
121
|
|
|
* - minOccurs: 0 |
|
122
|
|
|
* @var string|null |
|
123
|
|
|
*/ |
|
124
|
|
|
protected ?string $ReceivedTime = null; |
|
125
|
|
|
/** |
|
126
|
|
|
* The SentTime |
|
127
|
|
|
* Meta information extracted from the WSDL |
|
128
|
|
|
* - maxOccurs: 1 |
|
129
|
|
|
* - minOccurs: 0 |
|
130
|
|
|
* @var string|null |
|
131
|
|
|
*/ |
|
132
|
|
|
protected ?string $SentTime = null; |
|
133
|
|
|
/** |
|
134
|
|
|
* The Subject |
|
135
|
|
|
* Meta information extracted from the WSDL |
|
136
|
|
|
* - maxOccurs: 1 |
|
137
|
|
|
* - minOccurs: 0 |
|
138
|
|
|
* @var string|null |
|
139
|
|
|
*/ |
|
140
|
|
|
protected ?string $Subject = null; |
|
141
|
|
|
/** |
|
142
|
|
|
* The Size |
|
143
|
|
|
* Meta information extracted from the WSDL |
|
144
|
|
|
* - maxOccurs: 1 |
|
145
|
|
|
* - minOccurs: 0 |
|
146
|
|
|
* @var int|null |
|
147
|
|
|
*/ |
|
148
|
|
|
protected ?int $Size = null; |
|
149
|
|
|
/** |
|
150
|
|
|
* The Preview |
|
151
|
|
|
* Meta information extracted from the WSDL |
|
152
|
|
|
* - maxOccurs: 1 |
|
153
|
|
|
* - minOccurs: 0 |
|
154
|
|
|
* @var string|null |
|
155
|
|
|
*/ |
|
156
|
|
|
protected ?string $Preview = null; |
|
157
|
|
|
/** |
|
158
|
|
|
* The Importance |
|
159
|
|
|
* Meta information extracted from the WSDL |
|
160
|
|
|
* - maxOccurs: 1 |
|
161
|
|
|
* - minOccurs: 0 |
|
162
|
|
|
* @var string|null |
|
163
|
|
|
*/ |
|
164
|
|
|
protected ?string $Importance = null; |
|
165
|
|
|
/** |
|
166
|
|
|
* The Read |
|
167
|
|
|
* Meta information extracted from the WSDL |
|
168
|
|
|
* - maxOccurs: 1 |
|
169
|
|
|
* - minOccurs: 0 |
|
170
|
|
|
* @var bool|null |
|
171
|
|
|
*/ |
|
172
|
|
|
protected ?bool $Read = null; |
|
173
|
|
|
/** |
|
174
|
|
|
* The HasAttachment |
|
175
|
|
|
* Meta information extracted from the WSDL |
|
176
|
|
|
* - maxOccurs: 1 |
|
177
|
|
|
* - minOccurs: 0 |
|
178
|
|
|
* @var bool|null |
|
179
|
|
|
*/ |
|
180
|
|
|
protected ?bool $HasAttachment = null; |
|
181
|
|
|
/** |
|
182
|
|
|
* The ExtendedProperties |
|
183
|
|
|
* Meta information extracted from the WSDL |
|
184
|
|
|
* - maxOccurs: 1 |
|
185
|
|
|
* - minOccurs: 0 |
|
186
|
|
|
* @var \ArrayType\EwsNonEmptyArrayOfExtendedPropertyType|null |
|
187
|
|
|
*/ |
|
188
|
|
|
protected ?\ArrayType\EwsNonEmptyArrayOfExtendedPropertyType $ExtendedProperties = null; |
|
189
|
|
|
/** |
|
190
|
|
|
* Constructor method for SearchPreviewItemType |
|
191
|
|
|
* @uses EwsSearchPreviewItemType::setId() |
|
192
|
|
|
* @uses EwsSearchPreviewItemType::setMailbox() |
|
193
|
|
|
* @uses EwsSearchPreviewItemType::setParentId() |
|
194
|
|
|
* @uses EwsSearchPreviewItemType::setItemClass() |
|
195
|
|
|
* @uses EwsSearchPreviewItemType::setUniqueHash() |
|
196
|
|
|
* @uses EwsSearchPreviewItemType::setSortValue() |
|
197
|
|
|
* @uses EwsSearchPreviewItemType::setOwaLink() |
|
198
|
|
|
* @uses EwsSearchPreviewItemType::setSender() |
|
199
|
|
|
* @uses EwsSearchPreviewItemType::setToRecipients() |
|
200
|
|
|
* @uses EwsSearchPreviewItemType::setCcRecipients() |
|
201
|
|
|
* @uses EwsSearchPreviewItemType::setBccRecipients() |
|
202
|
|
|
* @uses EwsSearchPreviewItemType::setCreatedTime() |
|
203
|
|
|
* @uses EwsSearchPreviewItemType::setReceivedTime() |
|
204
|
|
|
* @uses EwsSearchPreviewItemType::setSentTime() |
|
205
|
|
|
* @uses EwsSearchPreviewItemType::setSubject() |
|
206
|
|
|
* @uses EwsSearchPreviewItemType::setSize() |
|
207
|
|
|
* @uses EwsSearchPreviewItemType::setPreview() |
|
208
|
|
|
* @uses EwsSearchPreviewItemType::setImportance() |
|
209
|
|
|
* @uses EwsSearchPreviewItemType::setRead() |
|
210
|
|
|
* @uses EwsSearchPreviewItemType::setHasAttachment() |
|
211
|
|
|
* @uses EwsSearchPreviewItemType::setExtendedProperties() |
|
212
|
|
|
* @param \StructType\EwsItemIdType $id |
|
213
|
|
|
* @param \StructType\EwsPreviewItemMailboxType $mailbox |
|
214
|
|
|
* @param \StructType\EwsItemIdType $parentId |
|
215
|
|
|
* @param string $itemClass |
|
216
|
|
|
* @param string $uniqueHash |
|
217
|
|
|
* @param string $sortValue |
|
218
|
|
|
* @param string $owaLink |
|
219
|
|
|
* @param string $sender |
|
220
|
|
|
* @param \ArrayType\EwsArrayOfSmtpAddressType $toRecipients |
|
221
|
|
|
* @param \ArrayType\EwsArrayOfSmtpAddressType $ccRecipients |
|
222
|
|
|
* @param \ArrayType\EwsArrayOfSmtpAddressType $bccRecipients |
|
223
|
|
|
* @param string $createdTime |
|
224
|
|
|
* @param string $receivedTime |
|
225
|
|
|
* @param string $sentTime |
|
226
|
|
|
* @param string $subject |
|
227
|
|
|
* @param int $size |
|
228
|
|
|
* @param string $preview |
|
229
|
|
|
* @param string $importance |
|
230
|
|
|
* @param bool $read |
|
231
|
|
|
* @param bool $hasAttachment |
|
232
|
|
|
* @param \ArrayType\EwsNonEmptyArrayOfExtendedPropertyType $extendedProperties |
|
233
|
|
|
*/ |
|
234
|
|
|
public function __construct(\StructType\EwsItemIdType $id, ?\StructType\EwsPreviewItemMailboxType $mailbox = null, ?\StructType\EwsItemIdType $parentId = null, ?string $itemClass = null, ?string $uniqueHash = null, ?string $sortValue = null, ?string $owaLink = null, ?string $sender = null, ?\ArrayType\EwsArrayOfSmtpAddressType $toRecipients = null, ?\ArrayType\EwsArrayOfSmtpAddressType $ccRecipients = null, ?\ArrayType\EwsArrayOfSmtpAddressType $bccRecipients = null, ?string $createdTime = null, ?string $receivedTime = null, ?string $sentTime = null, ?string $subject = null, ?int $size = null, ?string $preview = null, ?string $importance = null, ?bool $read = null, ?bool $hasAttachment = null, ?\ArrayType\EwsNonEmptyArrayOfExtendedPropertyType $extendedProperties = null) |
|
235
|
|
|
{ |
|
236
|
|
|
$this |
|
237
|
|
|
->setId($id) |
|
238
|
|
|
->setMailbox($mailbox) |
|
239
|
|
|
->setParentId($parentId) |
|
240
|
|
|
->setItemClass($itemClass) |
|
241
|
|
|
->setUniqueHash($uniqueHash) |
|
242
|
|
|
->setSortValue($sortValue) |
|
243
|
|
|
->setOwaLink($owaLink) |
|
244
|
|
|
->setSender($sender) |
|
245
|
|
|
->setToRecipients($toRecipients) |
|
246
|
|
|
->setCcRecipients($ccRecipients) |
|
247
|
|
|
->setBccRecipients($bccRecipients) |
|
248
|
|
|
->setCreatedTime($createdTime) |
|
249
|
|
|
->setReceivedTime($receivedTime) |
|
250
|
|
|
->setSentTime($sentTime) |
|
251
|
|
|
->setSubject($subject) |
|
252
|
|
|
->setSize($size) |
|
253
|
|
|
->setPreview($preview) |
|
254
|
|
|
->setImportance($importance) |
|
255
|
|
|
->setRead($read) |
|
256
|
|
|
->setHasAttachment($hasAttachment) |
|
257
|
|
|
->setExtendedProperties($extendedProperties); |
|
258
|
|
|
} |
|
259
|
|
|
/** |
|
260
|
|
|
* Get Id value |
|
261
|
|
|
* @return \StructType\EwsItemIdType |
|
262
|
|
|
*/ |
|
263
|
|
|
public function getId(): \StructType\EwsItemIdType |
|
264
|
|
|
{ |
|
265
|
|
|
return $this->Id; |
|
266
|
|
|
} |
|
267
|
|
|
/** |
|
268
|
|
|
* Set Id value |
|
269
|
|
|
* @param \StructType\EwsItemIdType $id |
|
270
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
271
|
|
|
*/ |
|
272
|
|
|
public function setId(\StructType\EwsItemIdType $id): self |
|
273
|
|
|
{ |
|
274
|
|
|
$this->Id = $id; |
|
275
|
|
|
|
|
276
|
|
|
return $this; |
|
277
|
|
|
} |
|
278
|
|
|
/** |
|
279
|
|
|
* Get Mailbox value |
|
280
|
|
|
* @return \StructType\EwsPreviewItemMailboxType|null |
|
281
|
|
|
*/ |
|
282
|
|
|
public function getMailbox(): ?\StructType\EwsPreviewItemMailboxType |
|
283
|
|
|
{ |
|
284
|
|
|
return $this->Mailbox; |
|
285
|
|
|
} |
|
286
|
|
|
/** |
|
287
|
|
|
* Set Mailbox value |
|
288
|
|
|
* @param \StructType\EwsPreviewItemMailboxType $mailbox |
|
289
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
290
|
|
|
*/ |
|
291
|
|
|
public function setMailbox(?\StructType\EwsPreviewItemMailboxType $mailbox = null): self |
|
292
|
|
|
{ |
|
293
|
|
|
$this->Mailbox = $mailbox; |
|
294
|
|
|
|
|
295
|
|
|
return $this; |
|
296
|
|
|
} |
|
297
|
|
|
/** |
|
298
|
|
|
* Get ParentId value |
|
299
|
|
|
* @return \StructType\EwsItemIdType|null |
|
300
|
|
|
*/ |
|
301
|
|
|
public function getParentId(): ?\StructType\EwsItemIdType |
|
302
|
|
|
{ |
|
303
|
|
|
return $this->ParentId; |
|
304
|
|
|
} |
|
305
|
|
|
/** |
|
306
|
|
|
* Set ParentId value |
|
307
|
|
|
* @param \StructType\EwsItemIdType $parentId |
|
308
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
309
|
|
|
*/ |
|
310
|
|
|
public function setParentId(?\StructType\EwsItemIdType $parentId = null): self |
|
311
|
|
|
{ |
|
312
|
|
|
$this->ParentId = $parentId; |
|
313
|
|
|
|
|
314
|
|
|
return $this; |
|
315
|
|
|
} |
|
316
|
|
|
/** |
|
317
|
|
|
* Get ItemClass value |
|
318
|
|
|
* @return string|null |
|
319
|
|
|
*/ |
|
320
|
|
|
public function getItemClass(): ?string |
|
321
|
|
|
{ |
|
322
|
|
|
return $this->ItemClass; |
|
323
|
|
|
} |
|
324
|
|
|
/** |
|
325
|
|
|
* Set ItemClass value |
|
326
|
|
|
* @param string $itemClass |
|
327
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
328
|
|
|
*/ |
|
329
|
|
|
public function setItemClass(?string $itemClass = null): self |
|
330
|
|
|
{ |
|
331
|
|
|
// validation for constraint: string |
|
332
|
|
|
if (!is_null($itemClass) && !is_string($itemClass)) { |
|
|
|
|
|
|
333
|
|
|
throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($itemClass, true), gettype($itemClass)), __LINE__); |
|
334
|
|
|
} |
|
335
|
|
|
$this->ItemClass = $itemClass; |
|
336
|
|
|
|
|
337
|
|
|
return $this; |
|
338
|
|
|
} |
|
339
|
|
|
/** |
|
340
|
|
|
* Get UniqueHash value |
|
341
|
|
|
* @return string|null |
|
342
|
|
|
*/ |
|
343
|
|
|
public function getUniqueHash(): ?string |
|
344
|
|
|
{ |
|
345
|
|
|
return $this->UniqueHash; |
|
346
|
|
|
} |
|
347
|
|
|
/** |
|
348
|
|
|
* Set UniqueHash value |
|
349
|
|
|
* @param string $uniqueHash |
|
350
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
351
|
|
|
*/ |
|
352
|
|
|
public function setUniqueHash(?string $uniqueHash = null): self |
|
353
|
|
|
{ |
|
354
|
|
|
// validation for constraint: string |
|
355
|
|
|
if (!is_null($uniqueHash) && !is_string($uniqueHash)) { |
|
|
|
|
|
|
356
|
|
|
throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($uniqueHash, true), gettype($uniqueHash)), __LINE__); |
|
357
|
|
|
} |
|
358
|
|
|
$this->UniqueHash = $uniqueHash; |
|
359
|
|
|
|
|
360
|
|
|
return $this; |
|
361
|
|
|
} |
|
362
|
|
|
/** |
|
363
|
|
|
* Get SortValue value |
|
364
|
|
|
* @return string|null |
|
365
|
|
|
*/ |
|
366
|
|
|
public function getSortValue(): ?string |
|
367
|
|
|
{ |
|
368
|
|
|
return $this->SortValue; |
|
369
|
|
|
} |
|
370
|
|
|
/** |
|
371
|
|
|
* Set SortValue value |
|
372
|
|
|
* @param string $sortValue |
|
373
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
374
|
|
|
*/ |
|
375
|
|
|
public function setSortValue(?string $sortValue = null): self |
|
376
|
|
|
{ |
|
377
|
|
|
// validation for constraint: string |
|
378
|
|
|
if (!is_null($sortValue) && !is_string($sortValue)) { |
|
|
|
|
|
|
379
|
|
|
throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($sortValue, true), gettype($sortValue)), __LINE__); |
|
380
|
|
|
} |
|
381
|
|
|
$this->SortValue = $sortValue; |
|
382
|
|
|
|
|
383
|
|
|
return $this; |
|
384
|
|
|
} |
|
385
|
|
|
/** |
|
386
|
|
|
* Get OwaLink value |
|
387
|
|
|
* @return string|null |
|
388
|
|
|
*/ |
|
389
|
|
|
public function getOwaLink(): ?string |
|
390
|
|
|
{ |
|
391
|
|
|
return $this->OwaLink; |
|
392
|
|
|
} |
|
393
|
|
|
/** |
|
394
|
|
|
* Set OwaLink value |
|
395
|
|
|
* @param string $owaLink |
|
396
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
397
|
|
|
*/ |
|
398
|
|
|
public function setOwaLink(?string $owaLink = null): self |
|
399
|
|
|
{ |
|
400
|
|
|
// validation for constraint: string |
|
401
|
|
|
if (!is_null($owaLink) && !is_string($owaLink)) { |
|
|
|
|
|
|
402
|
|
|
throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($owaLink, true), gettype($owaLink)), __LINE__); |
|
403
|
|
|
} |
|
404
|
|
|
$this->OwaLink = $owaLink; |
|
405
|
|
|
|
|
406
|
|
|
return $this; |
|
407
|
|
|
} |
|
408
|
|
|
/** |
|
409
|
|
|
* Get Sender value |
|
410
|
|
|
* @return string|null |
|
411
|
|
|
*/ |
|
412
|
|
|
public function getSender(): ?string |
|
413
|
|
|
{ |
|
414
|
|
|
return $this->Sender; |
|
415
|
|
|
} |
|
416
|
|
|
/** |
|
417
|
|
|
* Set Sender value |
|
418
|
|
|
* @param string $sender |
|
419
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
420
|
|
|
*/ |
|
421
|
|
|
public function setSender(?string $sender = null): self |
|
422
|
|
|
{ |
|
423
|
|
|
// validation for constraint: string |
|
424
|
|
|
if (!is_null($sender) && !is_string($sender)) { |
|
|
|
|
|
|
425
|
|
|
throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($sender, true), gettype($sender)), __LINE__); |
|
426
|
|
|
} |
|
427
|
|
|
$this->Sender = $sender; |
|
428
|
|
|
|
|
429
|
|
|
return $this; |
|
430
|
|
|
} |
|
431
|
|
|
/** |
|
432
|
|
|
* Get ToRecipients value |
|
433
|
|
|
* @return \ArrayType\EwsArrayOfSmtpAddressType|null |
|
434
|
|
|
*/ |
|
435
|
|
|
public function getToRecipients(): ?\ArrayType\EwsArrayOfSmtpAddressType |
|
436
|
|
|
{ |
|
437
|
|
|
return $this->ToRecipients; |
|
438
|
|
|
} |
|
439
|
|
|
/** |
|
440
|
|
|
* Set ToRecipients value |
|
441
|
|
|
* @param \ArrayType\EwsArrayOfSmtpAddressType $toRecipients |
|
442
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
443
|
|
|
*/ |
|
444
|
|
|
public function setToRecipients(?\ArrayType\EwsArrayOfSmtpAddressType $toRecipients = null): self |
|
445
|
|
|
{ |
|
446
|
|
|
$this->ToRecipients = $toRecipients; |
|
447
|
|
|
|
|
448
|
|
|
return $this; |
|
449
|
|
|
} |
|
450
|
|
|
/** |
|
451
|
|
|
* Get CcRecipients value |
|
452
|
|
|
* @return \ArrayType\EwsArrayOfSmtpAddressType|null |
|
453
|
|
|
*/ |
|
454
|
|
|
public function getCcRecipients(): ?\ArrayType\EwsArrayOfSmtpAddressType |
|
455
|
|
|
{ |
|
456
|
|
|
return $this->CcRecipients; |
|
457
|
|
|
} |
|
458
|
|
|
/** |
|
459
|
|
|
* Set CcRecipients value |
|
460
|
|
|
* @param \ArrayType\EwsArrayOfSmtpAddressType $ccRecipients |
|
461
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
462
|
|
|
*/ |
|
463
|
|
|
public function setCcRecipients(?\ArrayType\EwsArrayOfSmtpAddressType $ccRecipients = null): self |
|
464
|
|
|
{ |
|
465
|
|
|
$this->CcRecipients = $ccRecipients; |
|
466
|
|
|
|
|
467
|
|
|
return $this; |
|
468
|
|
|
} |
|
469
|
|
|
/** |
|
470
|
|
|
* Get BccRecipients value |
|
471
|
|
|
* @return \ArrayType\EwsArrayOfSmtpAddressType|null |
|
472
|
|
|
*/ |
|
473
|
|
|
public function getBccRecipients(): ?\ArrayType\EwsArrayOfSmtpAddressType |
|
474
|
|
|
{ |
|
475
|
|
|
return $this->BccRecipients; |
|
476
|
|
|
} |
|
477
|
|
|
/** |
|
478
|
|
|
* Set BccRecipients value |
|
479
|
|
|
* @param \ArrayType\EwsArrayOfSmtpAddressType $bccRecipients |
|
480
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
481
|
|
|
*/ |
|
482
|
|
|
public function setBccRecipients(?\ArrayType\EwsArrayOfSmtpAddressType $bccRecipients = null): self |
|
483
|
|
|
{ |
|
484
|
|
|
$this->BccRecipients = $bccRecipients; |
|
485
|
|
|
|
|
486
|
|
|
return $this; |
|
487
|
|
|
} |
|
488
|
|
|
/** |
|
489
|
|
|
* Get CreatedTime value |
|
490
|
|
|
* @return string|null |
|
491
|
|
|
*/ |
|
492
|
|
|
public function getCreatedTime(): ?string |
|
493
|
|
|
{ |
|
494
|
|
|
return $this->CreatedTime; |
|
495
|
|
|
} |
|
496
|
|
|
/** |
|
497
|
|
|
* Set CreatedTime value |
|
498
|
|
|
* @param string $createdTime |
|
499
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
500
|
|
|
*/ |
|
501
|
|
|
public function setCreatedTime(?string $createdTime = null): self |
|
502
|
|
|
{ |
|
503
|
|
|
// validation for constraint: string |
|
504
|
|
|
if (!is_null($createdTime) && !is_string($createdTime)) { |
|
|
|
|
|
|
505
|
|
|
throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($createdTime, true), gettype($createdTime)), __LINE__); |
|
506
|
|
|
} |
|
507
|
|
|
$this->CreatedTime = $createdTime; |
|
508
|
|
|
|
|
509
|
|
|
return $this; |
|
510
|
|
|
} |
|
511
|
|
|
/** |
|
512
|
|
|
* Get ReceivedTime value |
|
513
|
|
|
* @return string|null |
|
514
|
|
|
*/ |
|
515
|
|
|
public function getReceivedTime(): ?string |
|
516
|
|
|
{ |
|
517
|
|
|
return $this->ReceivedTime; |
|
518
|
|
|
} |
|
519
|
|
|
/** |
|
520
|
|
|
* Set ReceivedTime value |
|
521
|
|
|
* @param string $receivedTime |
|
522
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
523
|
|
|
*/ |
|
524
|
|
|
public function setReceivedTime(?string $receivedTime = null): self |
|
525
|
|
|
{ |
|
526
|
|
|
// validation for constraint: string |
|
527
|
|
|
if (!is_null($receivedTime) && !is_string($receivedTime)) { |
|
|
|
|
|
|
528
|
|
|
throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($receivedTime, true), gettype($receivedTime)), __LINE__); |
|
529
|
|
|
} |
|
530
|
|
|
$this->ReceivedTime = $receivedTime; |
|
531
|
|
|
|
|
532
|
|
|
return $this; |
|
533
|
|
|
} |
|
534
|
|
|
/** |
|
535
|
|
|
* Get SentTime value |
|
536
|
|
|
* @return string|null |
|
537
|
|
|
*/ |
|
538
|
|
|
public function getSentTime(): ?string |
|
539
|
|
|
{ |
|
540
|
|
|
return $this->SentTime; |
|
541
|
|
|
} |
|
542
|
|
|
/** |
|
543
|
|
|
* Set SentTime value |
|
544
|
|
|
* @param string $sentTime |
|
545
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
546
|
|
|
*/ |
|
547
|
|
|
public function setSentTime(?string $sentTime = null): self |
|
548
|
|
|
{ |
|
549
|
|
|
// validation for constraint: string |
|
550
|
|
|
if (!is_null($sentTime) && !is_string($sentTime)) { |
|
|
|
|
|
|
551
|
|
|
throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($sentTime, true), gettype($sentTime)), __LINE__); |
|
552
|
|
|
} |
|
553
|
|
|
$this->SentTime = $sentTime; |
|
554
|
|
|
|
|
555
|
|
|
return $this; |
|
556
|
|
|
} |
|
557
|
|
|
/** |
|
558
|
|
|
* Get Subject value |
|
559
|
|
|
* @return string|null |
|
560
|
|
|
*/ |
|
561
|
|
|
public function getSubject(): ?string |
|
562
|
|
|
{ |
|
563
|
|
|
return $this->Subject; |
|
564
|
|
|
} |
|
565
|
|
|
/** |
|
566
|
|
|
* Set Subject value |
|
567
|
|
|
* @param string $subject |
|
568
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
569
|
|
|
*/ |
|
570
|
|
|
public function setSubject(?string $subject = null): self |
|
571
|
|
|
{ |
|
572
|
|
|
// validation for constraint: string |
|
573
|
|
|
if (!is_null($subject) && !is_string($subject)) { |
|
|
|
|
|
|
574
|
|
|
throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($subject, true), gettype($subject)), __LINE__); |
|
575
|
|
|
} |
|
576
|
|
|
$this->Subject = $subject; |
|
577
|
|
|
|
|
578
|
|
|
return $this; |
|
579
|
|
|
} |
|
580
|
|
|
/** |
|
581
|
|
|
* Get Size value |
|
582
|
|
|
* @return int|null |
|
583
|
|
|
*/ |
|
584
|
|
|
public function getSize(): ?int |
|
585
|
|
|
{ |
|
586
|
|
|
return $this->Size; |
|
587
|
|
|
} |
|
588
|
|
|
/** |
|
589
|
|
|
* Set Size value |
|
590
|
|
|
* @param int $size |
|
591
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
592
|
|
|
*/ |
|
593
|
|
|
public function setSize(?int $size = null): self |
|
594
|
|
|
{ |
|
595
|
|
|
// validation for constraint: int |
|
596
|
|
|
if (!is_null($size) && !(is_int($size) || ctype_digit($size))) { |
|
|
|
|
|
|
597
|
|
|
throw new InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($size, true), gettype($size)), __LINE__); |
|
598
|
|
|
} |
|
599
|
|
|
$this->Size = $size; |
|
600
|
|
|
|
|
601
|
|
|
return $this; |
|
602
|
|
|
} |
|
603
|
|
|
/** |
|
604
|
|
|
* Get Preview value |
|
605
|
|
|
* @return string|null |
|
606
|
|
|
*/ |
|
607
|
|
|
public function getPreview(): ?string |
|
608
|
|
|
{ |
|
609
|
|
|
return $this->Preview; |
|
610
|
|
|
} |
|
611
|
|
|
/** |
|
612
|
|
|
* Set Preview value |
|
613
|
|
|
* @param string $preview |
|
614
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
615
|
|
|
*/ |
|
616
|
|
|
public function setPreview(?string $preview = null): self |
|
617
|
|
|
{ |
|
618
|
|
|
// validation for constraint: string |
|
619
|
|
|
if (!is_null($preview) && !is_string($preview)) { |
|
|
|
|
|
|
620
|
|
|
throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($preview, true), gettype($preview)), __LINE__); |
|
621
|
|
|
} |
|
622
|
|
|
$this->Preview = $preview; |
|
623
|
|
|
|
|
624
|
|
|
return $this; |
|
625
|
|
|
} |
|
626
|
|
|
/** |
|
627
|
|
|
* Get Importance value |
|
628
|
|
|
* @return string|null |
|
629
|
|
|
*/ |
|
630
|
|
|
public function getImportance(): ?string |
|
631
|
|
|
{ |
|
632
|
|
|
return $this->Importance; |
|
633
|
|
|
} |
|
634
|
|
|
/** |
|
635
|
|
|
* Set Importance value |
|
636
|
|
|
* @uses \EnumType\EwsImportanceChoicesType::valueIsValid() |
|
637
|
|
|
* @uses \EnumType\EwsImportanceChoicesType::getValidValues() |
|
638
|
|
|
* @throws InvalidArgumentException |
|
639
|
|
|
* @param string $importance |
|
640
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
641
|
|
|
*/ |
|
642
|
|
|
public function setImportance(?string $importance = null): self |
|
643
|
|
|
{ |
|
644
|
|
|
// validation for constraint: enumeration |
|
645
|
|
|
if (!\EnumType\EwsImportanceChoicesType::valueIsValid($importance)) { |
|
646
|
|
|
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__); |
|
|
|
|
|
|
647
|
|
|
} |
|
648
|
|
|
$this->Importance = $importance; |
|
649
|
|
|
|
|
650
|
|
|
return $this; |
|
651
|
|
|
} |
|
652
|
|
|
/** |
|
653
|
|
|
* Get Read value |
|
654
|
|
|
* @return bool|null |
|
655
|
|
|
*/ |
|
656
|
|
|
public function getRead(): ?bool |
|
657
|
|
|
{ |
|
658
|
|
|
return $this->Read; |
|
659
|
|
|
} |
|
660
|
|
|
/** |
|
661
|
|
|
* Set Read value |
|
662
|
|
|
* @param bool $read |
|
663
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
664
|
|
|
*/ |
|
665
|
|
|
public function setRead(?bool $read = null): self |
|
666
|
|
|
{ |
|
667
|
|
|
// validation for constraint: boolean |
|
668
|
|
|
if (!is_null($read) && !is_bool($read)) { |
|
|
|
|
|
|
669
|
|
|
throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($read, true), gettype($read)), __LINE__); |
|
670
|
|
|
} |
|
671
|
|
|
$this->Read = $read; |
|
672
|
|
|
|
|
673
|
|
|
return $this; |
|
674
|
|
|
} |
|
675
|
|
|
/** |
|
676
|
|
|
* Get HasAttachment value |
|
677
|
|
|
* @return bool|null |
|
678
|
|
|
*/ |
|
679
|
|
|
public function getHasAttachment(): ?bool |
|
680
|
|
|
{ |
|
681
|
|
|
return $this->HasAttachment; |
|
682
|
|
|
} |
|
683
|
|
|
/** |
|
684
|
|
|
* Set HasAttachment value |
|
685
|
|
|
* @param bool $hasAttachment |
|
686
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
687
|
|
|
*/ |
|
688
|
|
|
public function setHasAttachment(?bool $hasAttachment = null): self |
|
689
|
|
|
{ |
|
690
|
|
|
// validation for constraint: boolean |
|
691
|
|
|
if (!is_null($hasAttachment) && !is_bool($hasAttachment)) { |
|
|
|
|
|
|
692
|
|
|
throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($hasAttachment, true), gettype($hasAttachment)), __LINE__); |
|
693
|
|
|
} |
|
694
|
|
|
$this->HasAttachment = $hasAttachment; |
|
695
|
|
|
|
|
696
|
|
|
return $this; |
|
697
|
|
|
} |
|
698
|
|
|
/** |
|
699
|
|
|
* Get ExtendedProperties value |
|
700
|
|
|
* @return \ArrayType\EwsNonEmptyArrayOfExtendedPropertyType|null |
|
701
|
|
|
*/ |
|
702
|
|
|
public function getExtendedProperties(): ?\ArrayType\EwsNonEmptyArrayOfExtendedPropertyType |
|
703
|
|
|
{ |
|
704
|
|
|
return $this->ExtendedProperties; |
|
705
|
|
|
} |
|
706
|
|
|
/** |
|
707
|
|
|
* Set ExtendedProperties value |
|
708
|
|
|
* @param \ArrayType\EwsNonEmptyArrayOfExtendedPropertyType $extendedProperties |
|
709
|
|
|
* @return \StructType\EwsSearchPreviewItemType |
|
710
|
|
|
*/ |
|
711
|
|
|
public function setExtendedProperties(?\ArrayType\EwsNonEmptyArrayOfExtendedPropertyType $extendedProperties = null): self |
|
712
|
|
|
{ |
|
713
|
|
|
$this->ExtendedProperties = $extendedProperties; |
|
714
|
|
|
|
|
715
|
|
|
return $this; |
|
716
|
|
|
} |
|
717
|
|
|
} |
|
718
|
|
|
|