| Total Complexity | 109 |
| Total Lines | 1117 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
Complex classes like EwsRulePredicatesType 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 EwsRulePredicatesType, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 18 | class EwsRulePredicatesType extends AbstractStructBase |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * The Categories |
||
| 22 | * Meta information extracted from the WSDL |
||
| 23 | * - maxOccurs: 1 |
||
| 24 | * - minOccurs: 0 |
||
| 25 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
| 26 | */ |
||
| 27 | protected ?\ArrayType\EwsArrayOfStringsType $Categories = null; |
||
| 28 | /** |
||
| 29 | * The ContainsBodyStrings |
||
| 30 | * Meta information extracted from the WSDL |
||
| 31 | * - maxOccurs: 1 |
||
| 32 | * - minOccurs: 0 |
||
| 33 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
| 34 | */ |
||
| 35 | protected ?\ArrayType\EwsArrayOfStringsType $ContainsBodyStrings = null; |
||
| 36 | /** |
||
| 37 | * The ContainsHeaderStrings |
||
| 38 | * Meta information extracted from the WSDL |
||
| 39 | * - maxOccurs: 1 |
||
| 40 | * - minOccurs: 0 |
||
| 41 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
| 42 | */ |
||
| 43 | protected ?\ArrayType\EwsArrayOfStringsType $ContainsHeaderStrings = null; |
||
| 44 | /** |
||
| 45 | * The ContainsRecipientStrings |
||
| 46 | * Meta information extracted from the WSDL |
||
| 47 | * - maxOccurs: 1 |
||
| 48 | * - minOccurs: 0 |
||
| 49 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
| 50 | */ |
||
| 51 | protected ?\ArrayType\EwsArrayOfStringsType $ContainsRecipientStrings = null; |
||
| 52 | /** |
||
| 53 | * The ContainsSenderStrings |
||
| 54 | * Meta information extracted from the WSDL |
||
| 55 | * - maxOccurs: 1 |
||
| 56 | * - minOccurs: 0 |
||
| 57 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
| 58 | */ |
||
| 59 | protected ?\ArrayType\EwsArrayOfStringsType $ContainsSenderStrings = null; |
||
| 60 | /** |
||
| 61 | * The ContainsSubjectOrBodyStrings |
||
| 62 | * Meta information extracted from the WSDL |
||
| 63 | * - maxOccurs: 1 |
||
| 64 | * - minOccurs: 0 |
||
| 65 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
| 66 | */ |
||
| 67 | protected ?\ArrayType\EwsArrayOfStringsType $ContainsSubjectOrBodyStrings = null; |
||
| 68 | /** |
||
| 69 | * The ContainsSubjectStrings |
||
| 70 | * Meta information extracted from the WSDL |
||
| 71 | * - maxOccurs: 1 |
||
| 72 | * - minOccurs: 0 |
||
| 73 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
| 74 | */ |
||
| 75 | protected ?\ArrayType\EwsArrayOfStringsType $ContainsSubjectStrings = null; |
||
| 76 | /** |
||
| 77 | * The FlaggedForAction |
||
| 78 | * Meta information extracted from the WSDL |
||
| 79 | * - maxOccurs: 1 |
||
| 80 | * - minOccurs: 0 |
||
| 81 | * @var string|null |
||
| 82 | */ |
||
| 83 | protected ?string $FlaggedForAction = null; |
||
| 84 | /** |
||
| 85 | * The FromAddresses |
||
| 86 | * Meta information extracted from the WSDL |
||
| 87 | * - maxOccurs: 1 |
||
| 88 | * - minOccurs: 0 |
||
| 89 | * @var \ArrayType\EwsArrayOfEmailAddressesType|null |
||
| 90 | */ |
||
| 91 | protected ?\ArrayType\EwsArrayOfEmailAddressesType $FromAddresses = null; |
||
| 92 | /** |
||
| 93 | * The FromConnectedAccounts |
||
| 94 | * Meta information extracted from the WSDL |
||
| 95 | * - maxOccurs: 1 |
||
| 96 | * - minOccurs: 0 |
||
| 97 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
| 98 | */ |
||
| 99 | protected ?\ArrayType\EwsArrayOfStringsType $FromConnectedAccounts = null; |
||
| 100 | /** |
||
| 101 | * The HasAttachments |
||
| 102 | * Meta information extracted from the WSDL |
||
| 103 | * - maxOccurs: 1 |
||
| 104 | * - minOccurs: 0 |
||
| 105 | * @var bool|null |
||
| 106 | */ |
||
| 107 | protected ?bool $HasAttachments = null; |
||
| 108 | /** |
||
| 109 | * The Importance |
||
| 110 | * Meta information extracted from the WSDL |
||
| 111 | * - maxOccurs: 1 |
||
| 112 | * - minOccurs: 0 |
||
| 113 | * @var string|null |
||
| 114 | */ |
||
| 115 | protected ?string $Importance = null; |
||
| 116 | /** |
||
| 117 | * The IsApprovalRequest |
||
| 118 | * Meta information extracted from the WSDL |
||
| 119 | * - maxOccurs: 1 |
||
| 120 | * - minOccurs: 0 |
||
| 121 | * @var bool|null |
||
| 122 | */ |
||
| 123 | protected ?bool $IsApprovalRequest = null; |
||
| 124 | /** |
||
| 125 | * The IsAutomaticForward |
||
| 126 | * Meta information extracted from the WSDL |
||
| 127 | * - maxOccurs: 1 |
||
| 128 | * - minOccurs: 0 |
||
| 129 | * @var bool|null |
||
| 130 | */ |
||
| 131 | protected ?bool $IsAutomaticForward = null; |
||
| 132 | /** |
||
| 133 | * The IsAutomaticReply |
||
| 134 | * Meta information extracted from the WSDL |
||
| 135 | * - maxOccurs: 1 |
||
| 136 | * - minOccurs: 0 |
||
| 137 | * @var bool|null |
||
| 138 | */ |
||
| 139 | protected ?bool $IsAutomaticReply = null; |
||
| 140 | /** |
||
| 141 | * The IsEncrypted |
||
| 142 | * Meta information extracted from the WSDL |
||
| 143 | * - maxOccurs: 1 |
||
| 144 | * - minOccurs: 0 |
||
| 145 | * @var bool|null |
||
| 146 | */ |
||
| 147 | protected ?bool $IsEncrypted = null; |
||
| 148 | /** |
||
| 149 | * The IsMeetingRequest |
||
| 150 | * Meta information extracted from the WSDL |
||
| 151 | * - maxOccurs: 1 |
||
| 152 | * - minOccurs: 0 |
||
| 153 | * @var bool|null |
||
| 154 | */ |
||
| 155 | protected ?bool $IsMeetingRequest = null; |
||
| 156 | /** |
||
| 157 | * The IsMeetingResponse |
||
| 158 | * Meta information extracted from the WSDL |
||
| 159 | * - maxOccurs: 1 |
||
| 160 | * - minOccurs: 0 |
||
| 161 | * @var bool|null |
||
| 162 | */ |
||
| 163 | protected ?bool $IsMeetingResponse = null; |
||
| 164 | /** |
||
| 165 | * The IsNDR |
||
| 166 | * Meta information extracted from the WSDL |
||
| 167 | * - maxOccurs: 1 |
||
| 168 | * - minOccurs: 0 |
||
| 169 | * @var bool|null |
||
| 170 | */ |
||
| 171 | protected ?bool $IsNDR = null; |
||
| 172 | /** |
||
| 173 | * The IsPermissionControlled |
||
| 174 | * Meta information extracted from the WSDL |
||
| 175 | * - maxOccurs: 1 |
||
| 176 | * - minOccurs: 0 |
||
| 177 | * @var bool|null |
||
| 178 | */ |
||
| 179 | protected ?bool $IsPermissionControlled = null; |
||
| 180 | /** |
||
| 181 | * The IsReadReceipt |
||
| 182 | * Meta information extracted from the WSDL |
||
| 183 | * - maxOccurs: 1 |
||
| 184 | * - minOccurs: 0 |
||
| 185 | * @var bool|null |
||
| 186 | */ |
||
| 187 | protected ?bool $IsReadReceipt = null; |
||
| 188 | /** |
||
| 189 | * The IsSigned |
||
| 190 | * Meta information extracted from the WSDL |
||
| 191 | * - maxOccurs: 1 |
||
| 192 | * - minOccurs: 0 |
||
| 193 | * @var bool|null |
||
| 194 | */ |
||
| 195 | protected ?bool $IsSigned = null; |
||
| 196 | /** |
||
| 197 | * The IsVoicemail |
||
| 198 | * Meta information extracted from the WSDL |
||
| 199 | * - maxOccurs: 1 |
||
| 200 | * - minOccurs: 0 |
||
| 201 | * @var bool|null |
||
| 202 | */ |
||
| 203 | protected ?bool $IsVoicemail = null; |
||
| 204 | /** |
||
| 205 | * The ItemClasses |
||
| 206 | * Meta information extracted from the WSDL |
||
| 207 | * - maxOccurs: 1 |
||
| 208 | * - minOccurs: 0 |
||
| 209 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
| 210 | */ |
||
| 211 | protected ?\ArrayType\EwsArrayOfStringsType $ItemClasses = null; |
||
| 212 | /** |
||
| 213 | * The MessageClassifications |
||
| 214 | * Meta information extracted from the WSDL |
||
| 215 | * - maxOccurs: 1 |
||
| 216 | * - minOccurs: 0 |
||
| 217 | * @var \ArrayType\EwsArrayOfStringsType|null |
||
| 218 | */ |
||
| 219 | protected ?\ArrayType\EwsArrayOfStringsType $MessageClassifications = null; |
||
| 220 | /** |
||
| 221 | * The NotSentToMe |
||
| 222 | * Meta information extracted from the WSDL |
||
| 223 | * - maxOccurs: 1 |
||
| 224 | * - minOccurs: 0 |
||
| 225 | * @var bool|null |
||
| 226 | */ |
||
| 227 | protected ?bool $NotSentToMe = null; |
||
| 228 | /** |
||
| 229 | * The SentCcMe |
||
| 230 | * Meta information extracted from the WSDL |
||
| 231 | * - maxOccurs: 1 |
||
| 232 | * - minOccurs: 0 |
||
| 233 | * @var bool|null |
||
| 234 | */ |
||
| 235 | protected ?bool $SentCcMe = null; |
||
| 236 | /** |
||
| 237 | * The SentOnlyToMe |
||
| 238 | * Meta information extracted from the WSDL |
||
| 239 | * - maxOccurs: 1 |
||
| 240 | * - minOccurs: 0 |
||
| 241 | * @var bool|null |
||
| 242 | */ |
||
| 243 | protected ?bool $SentOnlyToMe = null; |
||
| 244 | /** |
||
| 245 | * The SentToAddresses |
||
| 246 | * Meta information extracted from the WSDL |
||
| 247 | * - maxOccurs: 1 |
||
| 248 | * - minOccurs: 0 |
||
| 249 | * @var \ArrayType\EwsArrayOfEmailAddressesType|null |
||
| 250 | */ |
||
| 251 | protected ?\ArrayType\EwsArrayOfEmailAddressesType $SentToAddresses = null; |
||
| 252 | /** |
||
| 253 | * The SentToMe |
||
| 254 | * Meta information extracted from the WSDL |
||
| 255 | * - maxOccurs: 1 |
||
| 256 | * - minOccurs: 0 |
||
| 257 | * @var bool|null |
||
| 258 | */ |
||
| 259 | protected ?bool $SentToMe = null; |
||
| 260 | /** |
||
| 261 | * The SentToOrCcMe |
||
| 262 | * Meta information extracted from the WSDL |
||
| 263 | * - maxOccurs: 1 |
||
| 264 | * - minOccurs: 0 |
||
| 265 | * @var bool|null |
||
| 266 | */ |
||
| 267 | protected ?bool $SentToOrCcMe = null; |
||
| 268 | /** |
||
| 269 | * The Sensitivity |
||
| 270 | * Meta information extracted from the WSDL |
||
| 271 | * - maxOccurs: 1 |
||
| 272 | * - minOccurs: 0 |
||
| 273 | * @var string|null |
||
| 274 | */ |
||
| 275 | protected ?string $Sensitivity = null; |
||
| 276 | /** |
||
| 277 | * The WithinDateRange |
||
| 278 | * Meta information extracted from the WSDL |
||
| 279 | * - maxOccurs: 1 |
||
| 280 | * - minOccurs: 0 |
||
| 281 | * @var \StructType\EwsRulePredicateDateRangeType|null |
||
| 282 | */ |
||
| 283 | protected ?\StructType\EwsRulePredicateDateRangeType $WithinDateRange = null; |
||
| 284 | /** |
||
| 285 | * The WithinSizeRange |
||
| 286 | * Meta information extracted from the WSDL |
||
| 287 | * - maxOccurs: 1 |
||
| 288 | * - minOccurs: 0 |
||
| 289 | * @var \StructType\EwsRulePredicateSizeRangeType|null |
||
| 290 | */ |
||
| 291 | protected ?\StructType\EwsRulePredicateSizeRangeType $WithinSizeRange = null; |
||
| 292 | /** |
||
| 293 | * Constructor method for RulePredicatesType |
||
| 294 | * @uses EwsRulePredicatesType::setCategories() |
||
| 295 | * @uses EwsRulePredicatesType::setContainsBodyStrings() |
||
| 296 | * @uses EwsRulePredicatesType::setContainsHeaderStrings() |
||
| 297 | * @uses EwsRulePredicatesType::setContainsRecipientStrings() |
||
| 298 | * @uses EwsRulePredicatesType::setContainsSenderStrings() |
||
| 299 | * @uses EwsRulePredicatesType::setContainsSubjectOrBodyStrings() |
||
| 300 | * @uses EwsRulePredicatesType::setContainsSubjectStrings() |
||
| 301 | * @uses EwsRulePredicatesType::setFlaggedForAction() |
||
| 302 | * @uses EwsRulePredicatesType::setFromAddresses() |
||
| 303 | * @uses EwsRulePredicatesType::setFromConnectedAccounts() |
||
| 304 | * @uses EwsRulePredicatesType::setHasAttachments() |
||
| 305 | * @uses EwsRulePredicatesType::setImportance() |
||
| 306 | * @uses EwsRulePredicatesType::setIsApprovalRequest() |
||
| 307 | * @uses EwsRulePredicatesType::setIsAutomaticForward() |
||
| 308 | * @uses EwsRulePredicatesType::setIsAutomaticReply() |
||
| 309 | * @uses EwsRulePredicatesType::setIsEncrypted() |
||
| 310 | * @uses EwsRulePredicatesType::setIsMeetingRequest() |
||
| 311 | * @uses EwsRulePredicatesType::setIsMeetingResponse() |
||
| 312 | * @uses EwsRulePredicatesType::setIsNDR() |
||
| 313 | * @uses EwsRulePredicatesType::setIsPermissionControlled() |
||
| 314 | * @uses EwsRulePredicatesType::setIsReadReceipt() |
||
| 315 | * @uses EwsRulePredicatesType::setIsSigned() |
||
| 316 | * @uses EwsRulePredicatesType::setIsVoicemail() |
||
| 317 | * @uses EwsRulePredicatesType::setItemClasses() |
||
| 318 | * @uses EwsRulePredicatesType::setMessageClassifications() |
||
| 319 | * @uses EwsRulePredicatesType::setNotSentToMe() |
||
| 320 | * @uses EwsRulePredicatesType::setSentCcMe() |
||
| 321 | * @uses EwsRulePredicatesType::setSentOnlyToMe() |
||
| 322 | * @uses EwsRulePredicatesType::setSentToAddresses() |
||
| 323 | * @uses EwsRulePredicatesType::setSentToMe() |
||
| 324 | * @uses EwsRulePredicatesType::setSentToOrCcMe() |
||
| 325 | * @uses EwsRulePredicatesType::setSensitivity() |
||
| 326 | * @uses EwsRulePredicatesType::setWithinDateRange() |
||
| 327 | * @uses EwsRulePredicatesType::setWithinSizeRange() |
||
| 328 | * @param \ArrayType\EwsArrayOfStringsType $categories |
||
| 329 | * @param \ArrayType\EwsArrayOfStringsType $containsBodyStrings |
||
| 330 | * @param \ArrayType\EwsArrayOfStringsType $containsHeaderStrings |
||
| 331 | * @param \ArrayType\EwsArrayOfStringsType $containsRecipientStrings |
||
| 332 | * @param \ArrayType\EwsArrayOfStringsType $containsSenderStrings |
||
| 333 | * @param \ArrayType\EwsArrayOfStringsType $containsSubjectOrBodyStrings |
||
| 334 | * @param \ArrayType\EwsArrayOfStringsType $containsSubjectStrings |
||
| 335 | * @param string $flaggedForAction |
||
| 336 | * @param \ArrayType\EwsArrayOfEmailAddressesType $fromAddresses |
||
| 337 | * @param \ArrayType\EwsArrayOfStringsType $fromConnectedAccounts |
||
| 338 | * @param bool $hasAttachments |
||
| 339 | * @param string $importance |
||
| 340 | * @param bool $isApprovalRequest |
||
| 341 | * @param bool $isAutomaticForward |
||
| 342 | * @param bool $isAutomaticReply |
||
| 343 | * @param bool $isEncrypted |
||
| 344 | * @param bool $isMeetingRequest |
||
| 345 | * @param bool $isMeetingResponse |
||
| 346 | * @param bool $isNDR |
||
| 347 | * @param bool $isPermissionControlled |
||
| 348 | * @param bool $isReadReceipt |
||
| 349 | * @param bool $isSigned |
||
| 350 | * @param bool $isVoicemail |
||
| 351 | * @param \ArrayType\EwsArrayOfStringsType $itemClasses |
||
| 352 | * @param \ArrayType\EwsArrayOfStringsType $messageClassifications |
||
| 353 | * @param bool $notSentToMe |
||
| 354 | * @param bool $sentCcMe |
||
| 355 | * @param bool $sentOnlyToMe |
||
| 356 | * @param \ArrayType\EwsArrayOfEmailAddressesType $sentToAddresses |
||
| 357 | * @param bool $sentToMe |
||
| 358 | * @param bool $sentToOrCcMe |
||
| 359 | * @param string $sensitivity |
||
| 360 | * @param \StructType\EwsRulePredicateDateRangeType $withinDateRange |
||
| 361 | * @param \StructType\EwsRulePredicateSizeRangeType $withinSizeRange |
||
| 362 | */ |
||
| 363 | public function __construct(?\ArrayType\EwsArrayOfStringsType $categories = null, ?\ArrayType\EwsArrayOfStringsType $containsBodyStrings = null, ?\ArrayType\EwsArrayOfStringsType $containsHeaderStrings = null, ?\ArrayType\EwsArrayOfStringsType $containsRecipientStrings = null, ?\ArrayType\EwsArrayOfStringsType $containsSenderStrings = null, ?\ArrayType\EwsArrayOfStringsType $containsSubjectOrBodyStrings = null, ?\ArrayType\EwsArrayOfStringsType $containsSubjectStrings = null, ?string $flaggedForAction = null, ?\ArrayType\EwsArrayOfEmailAddressesType $fromAddresses = null, ?\ArrayType\EwsArrayOfStringsType $fromConnectedAccounts = null, ?bool $hasAttachments = null, ?string $importance = null, ?bool $isApprovalRequest = null, ?bool $isAutomaticForward = null, ?bool $isAutomaticReply = null, ?bool $isEncrypted = null, ?bool $isMeetingRequest = null, ?bool $isMeetingResponse = null, ?bool $isNDR = null, ?bool $isPermissionControlled = null, ?bool $isReadReceipt = null, ?bool $isSigned = null, ?bool $isVoicemail = null, ?\ArrayType\EwsArrayOfStringsType $itemClasses = null, ?\ArrayType\EwsArrayOfStringsType $messageClassifications = null, ?bool $notSentToMe = null, ?bool $sentCcMe = null, ?bool $sentOnlyToMe = null, ?\ArrayType\EwsArrayOfEmailAddressesType $sentToAddresses = null, ?bool $sentToMe = null, ?bool $sentToOrCcMe = null, ?string $sensitivity = null, ?\StructType\EwsRulePredicateDateRangeType $withinDateRange = null, ?\StructType\EwsRulePredicateSizeRangeType $withinSizeRange = null) |
||
| 364 | { |
||
| 365 | $this |
||
| 366 | ->setCategories($categories) |
||
| 367 | ->setContainsBodyStrings($containsBodyStrings) |
||
| 368 | ->setContainsHeaderStrings($containsHeaderStrings) |
||
| 369 | ->setContainsRecipientStrings($containsRecipientStrings) |
||
| 370 | ->setContainsSenderStrings($containsSenderStrings) |
||
| 371 | ->setContainsSubjectOrBodyStrings($containsSubjectOrBodyStrings) |
||
| 372 | ->setContainsSubjectStrings($containsSubjectStrings) |
||
| 373 | ->setFlaggedForAction($flaggedForAction) |
||
| 374 | ->setFromAddresses($fromAddresses) |
||
| 375 | ->setFromConnectedAccounts($fromConnectedAccounts) |
||
| 376 | ->setHasAttachments($hasAttachments) |
||
| 377 | ->setImportance($importance) |
||
| 378 | ->setIsApprovalRequest($isApprovalRequest) |
||
| 379 | ->setIsAutomaticForward($isAutomaticForward) |
||
| 380 | ->setIsAutomaticReply($isAutomaticReply) |
||
| 381 | ->setIsEncrypted($isEncrypted) |
||
| 382 | ->setIsMeetingRequest($isMeetingRequest) |
||
| 383 | ->setIsMeetingResponse($isMeetingResponse) |
||
| 384 | ->setIsNDR($isNDR) |
||
| 385 | ->setIsPermissionControlled($isPermissionControlled) |
||
| 386 | ->setIsReadReceipt($isReadReceipt) |
||
| 387 | ->setIsSigned($isSigned) |
||
| 388 | ->setIsVoicemail($isVoicemail) |
||
| 389 | ->setItemClasses($itemClasses) |
||
| 390 | ->setMessageClassifications($messageClassifications) |
||
| 391 | ->setNotSentToMe($notSentToMe) |
||
| 392 | ->setSentCcMe($sentCcMe) |
||
| 393 | ->setSentOnlyToMe($sentOnlyToMe) |
||
| 394 | ->setSentToAddresses($sentToAddresses) |
||
| 395 | ->setSentToMe($sentToMe) |
||
| 396 | ->setSentToOrCcMe($sentToOrCcMe) |
||
| 397 | ->setSensitivity($sensitivity) |
||
| 398 | ->setWithinDateRange($withinDateRange) |
||
| 399 | ->setWithinSizeRange($withinSizeRange); |
||
| 400 | } |
||
| 401 | /** |
||
| 402 | * Get Categories value |
||
| 403 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
| 404 | */ |
||
| 405 | public function getCategories(): ?\ArrayType\EwsArrayOfStringsType |
||
| 406 | { |
||
| 407 | return $this->Categories; |
||
| 408 | } |
||
| 409 | /** |
||
| 410 | * Set Categories value |
||
| 411 | * @param \ArrayType\EwsArrayOfStringsType $categories |
||
| 412 | * @return \StructType\EwsRulePredicatesType |
||
| 413 | */ |
||
| 414 | public function setCategories(?\ArrayType\EwsArrayOfStringsType $categories = null): self |
||
| 415 | { |
||
| 416 | $this->Categories = $categories; |
||
| 417 | |||
| 418 | return $this; |
||
| 419 | } |
||
| 420 | /** |
||
| 421 | * Get ContainsBodyStrings value |
||
| 422 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
| 423 | */ |
||
| 424 | public function getContainsBodyStrings(): ?\ArrayType\EwsArrayOfStringsType |
||
| 425 | { |
||
| 426 | return $this->ContainsBodyStrings; |
||
| 427 | } |
||
| 428 | /** |
||
| 429 | * Set ContainsBodyStrings value |
||
| 430 | * @param \ArrayType\EwsArrayOfStringsType $containsBodyStrings |
||
| 431 | * @return \StructType\EwsRulePredicatesType |
||
| 432 | */ |
||
| 433 | public function setContainsBodyStrings(?\ArrayType\EwsArrayOfStringsType $containsBodyStrings = null): self |
||
| 434 | { |
||
| 435 | $this->ContainsBodyStrings = $containsBodyStrings; |
||
| 436 | |||
| 437 | return $this; |
||
| 438 | } |
||
| 439 | /** |
||
| 440 | * Get ContainsHeaderStrings value |
||
| 441 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
| 442 | */ |
||
| 443 | public function getContainsHeaderStrings(): ?\ArrayType\EwsArrayOfStringsType |
||
| 444 | { |
||
| 445 | return $this->ContainsHeaderStrings; |
||
| 446 | } |
||
| 447 | /** |
||
| 448 | * Set ContainsHeaderStrings value |
||
| 449 | * @param \ArrayType\EwsArrayOfStringsType $containsHeaderStrings |
||
| 450 | * @return \StructType\EwsRulePredicatesType |
||
| 451 | */ |
||
| 452 | public function setContainsHeaderStrings(?\ArrayType\EwsArrayOfStringsType $containsHeaderStrings = null): self |
||
| 453 | { |
||
| 454 | $this->ContainsHeaderStrings = $containsHeaderStrings; |
||
| 455 | |||
| 456 | return $this; |
||
| 457 | } |
||
| 458 | /** |
||
| 459 | * Get ContainsRecipientStrings value |
||
| 460 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
| 461 | */ |
||
| 462 | public function getContainsRecipientStrings(): ?\ArrayType\EwsArrayOfStringsType |
||
| 463 | { |
||
| 464 | return $this->ContainsRecipientStrings; |
||
| 465 | } |
||
| 466 | /** |
||
| 467 | * Set ContainsRecipientStrings value |
||
| 468 | * @param \ArrayType\EwsArrayOfStringsType $containsRecipientStrings |
||
| 469 | * @return \StructType\EwsRulePredicatesType |
||
| 470 | */ |
||
| 471 | public function setContainsRecipientStrings(?\ArrayType\EwsArrayOfStringsType $containsRecipientStrings = null): self |
||
| 472 | { |
||
| 473 | $this->ContainsRecipientStrings = $containsRecipientStrings; |
||
| 474 | |||
| 475 | return $this; |
||
| 476 | } |
||
| 477 | /** |
||
| 478 | * Get ContainsSenderStrings value |
||
| 479 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
| 480 | */ |
||
| 481 | public function getContainsSenderStrings(): ?\ArrayType\EwsArrayOfStringsType |
||
| 482 | { |
||
| 483 | return $this->ContainsSenderStrings; |
||
| 484 | } |
||
| 485 | /** |
||
| 486 | * Set ContainsSenderStrings value |
||
| 487 | * @param \ArrayType\EwsArrayOfStringsType $containsSenderStrings |
||
| 488 | * @return \StructType\EwsRulePredicatesType |
||
| 489 | */ |
||
| 490 | public function setContainsSenderStrings(?\ArrayType\EwsArrayOfStringsType $containsSenderStrings = null): self |
||
| 491 | { |
||
| 492 | $this->ContainsSenderStrings = $containsSenderStrings; |
||
| 493 | |||
| 494 | return $this; |
||
| 495 | } |
||
| 496 | /** |
||
| 497 | * Get ContainsSubjectOrBodyStrings value |
||
| 498 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
| 499 | */ |
||
| 500 | public function getContainsSubjectOrBodyStrings(): ?\ArrayType\EwsArrayOfStringsType |
||
| 501 | { |
||
| 502 | return $this->ContainsSubjectOrBodyStrings; |
||
| 503 | } |
||
| 504 | /** |
||
| 505 | * Set ContainsSubjectOrBodyStrings value |
||
| 506 | * @param \ArrayType\EwsArrayOfStringsType $containsSubjectOrBodyStrings |
||
| 507 | * @return \StructType\EwsRulePredicatesType |
||
| 508 | */ |
||
| 509 | public function setContainsSubjectOrBodyStrings(?\ArrayType\EwsArrayOfStringsType $containsSubjectOrBodyStrings = null): self |
||
| 510 | { |
||
| 511 | $this->ContainsSubjectOrBodyStrings = $containsSubjectOrBodyStrings; |
||
| 512 | |||
| 513 | return $this; |
||
| 514 | } |
||
| 515 | /** |
||
| 516 | * Get ContainsSubjectStrings value |
||
| 517 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
| 518 | */ |
||
| 519 | public function getContainsSubjectStrings(): ?\ArrayType\EwsArrayOfStringsType |
||
| 520 | { |
||
| 521 | return $this->ContainsSubjectStrings; |
||
| 522 | } |
||
| 523 | /** |
||
| 524 | * Set ContainsSubjectStrings value |
||
| 525 | * @param \ArrayType\EwsArrayOfStringsType $containsSubjectStrings |
||
| 526 | * @return \StructType\EwsRulePredicatesType |
||
| 527 | */ |
||
| 528 | public function setContainsSubjectStrings(?\ArrayType\EwsArrayOfStringsType $containsSubjectStrings = null): self |
||
| 529 | { |
||
| 530 | $this->ContainsSubjectStrings = $containsSubjectStrings; |
||
| 531 | |||
| 532 | return $this; |
||
| 533 | } |
||
| 534 | /** |
||
| 535 | * Get FlaggedForAction value |
||
| 536 | * @return string|null |
||
| 537 | */ |
||
| 538 | public function getFlaggedForAction(): ?string |
||
| 539 | { |
||
| 540 | return $this->FlaggedForAction; |
||
| 541 | } |
||
| 542 | /** |
||
| 543 | * Set FlaggedForAction value |
||
| 544 | * @uses \EnumType\EwsFlaggedForActionType::valueIsValid() |
||
| 545 | * @uses \EnumType\EwsFlaggedForActionType::getValidValues() |
||
| 546 | * @throws InvalidArgumentException |
||
| 547 | * @param string $flaggedForAction |
||
| 548 | * @return \StructType\EwsRulePredicatesType |
||
| 549 | */ |
||
| 550 | public function setFlaggedForAction(?string $flaggedForAction = null): self |
||
| 559 | } |
||
| 560 | /** |
||
| 561 | * Get FromAddresses value |
||
| 562 | * @return \ArrayType\EwsArrayOfEmailAddressesType|null |
||
| 563 | */ |
||
| 564 | public function getFromAddresses(): ?\ArrayType\EwsArrayOfEmailAddressesType |
||
| 565 | { |
||
| 566 | return $this->FromAddresses; |
||
| 567 | } |
||
| 568 | /** |
||
| 569 | * Set FromAddresses value |
||
| 570 | * @param \ArrayType\EwsArrayOfEmailAddressesType $fromAddresses |
||
| 571 | * @return \StructType\EwsRulePredicatesType |
||
| 572 | */ |
||
| 573 | public function setFromAddresses(?\ArrayType\EwsArrayOfEmailAddressesType $fromAddresses = null): self |
||
| 574 | { |
||
| 575 | $this->FromAddresses = $fromAddresses; |
||
| 576 | |||
| 577 | return $this; |
||
| 578 | } |
||
| 579 | /** |
||
| 580 | * Get FromConnectedAccounts value |
||
| 581 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
| 582 | */ |
||
| 583 | public function getFromConnectedAccounts(): ?\ArrayType\EwsArrayOfStringsType |
||
| 584 | { |
||
| 585 | return $this->FromConnectedAccounts; |
||
| 586 | } |
||
| 587 | /** |
||
| 588 | * Set FromConnectedAccounts value |
||
| 589 | * @param \ArrayType\EwsArrayOfStringsType $fromConnectedAccounts |
||
| 590 | * @return \StructType\EwsRulePredicatesType |
||
| 591 | */ |
||
| 592 | public function setFromConnectedAccounts(?\ArrayType\EwsArrayOfStringsType $fromConnectedAccounts = null): self |
||
| 593 | { |
||
| 594 | $this->FromConnectedAccounts = $fromConnectedAccounts; |
||
| 595 | |||
| 596 | return $this; |
||
| 597 | } |
||
| 598 | /** |
||
| 599 | * Get HasAttachments value |
||
| 600 | * @return bool|null |
||
| 601 | */ |
||
| 602 | public function getHasAttachments(): ?bool |
||
| 603 | { |
||
| 604 | return $this->HasAttachments; |
||
| 605 | } |
||
| 606 | /** |
||
| 607 | * Set HasAttachments value |
||
| 608 | * @param bool $hasAttachments |
||
| 609 | * @return \StructType\EwsRulePredicatesType |
||
| 610 | */ |
||
| 611 | public function setHasAttachments(?bool $hasAttachments = null): self |
||
| 612 | { |
||
| 613 | // validation for constraint: boolean |
||
| 614 | if (!is_null($hasAttachments) && !is_bool($hasAttachments)) { |
||
| 615 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($hasAttachments, true), gettype($hasAttachments)), __LINE__); |
||
| 616 | } |
||
| 617 | $this->HasAttachments = $hasAttachments; |
||
| 618 | |||
| 619 | return $this; |
||
| 620 | } |
||
| 621 | /** |
||
| 622 | * Get Importance value |
||
| 623 | * @return string|null |
||
| 624 | */ |
||
| 625 | public function getImportance(): ?string |
||
| 626 | { |
||
| 627 | return $this->Importance; |
||
| 628 | } |
||
| 629 | /** |
||
| 630 | * Set Importance value |
||
| 631 | * @uses \EnumType\EwsImportanceChoicesType::valueIsValid() |
||
| 632 | * @uses \EnumType\EwsImportanceChoicesType::getValidValues() |
||
| 633 | * @throws InvalidArgumentException |
||
| 634 | * @param string $importance |
||
| 635 | * @return \StructType\EwsRulePredicatesType |
||
| 636 | */ |
||
| 637 | public function setImportance(?string $importance = null): self |
||
| 638 | { |
||
| 639 | // validation for constraint: enumeration |
||
| 640 | if (!\EnumType\EwsImportanceChoicesType::valueIsValid($importance)) { |
||
| 641 | 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__); |
||
| 642 | } |
||
| 643 | $this->Importance = $importance; |
||
| 644 | |||
| 645 | return $this; |
||
| 646 | } |
||
| 647 | /** |
||
| 648 | * Get IsApprovalRequest value |
||
| 649 | * @return bool|null |
||
| 650 | */ |
||
| 651 | public function getIsApprovalRequest(): ?bool |
||
| 652 | { |
||
| 653 | return $this->IsApprovalRequest; |
||
| 654 | } |
||
| 655 | /** |
||
| 656 | * Set IsApprovalRequest value |
||
| 657 | * @param bool $isApprovalRequest |
||
| 658 | * @return \StructType\EwsRulePredicatesType |
||
| 659 | */ |
||
| 660 | public function setIsApprovalRequest(?bool $isApprovalRequest = null): self |
||
| 661 | { |
||
| 662 | // validation for constraint: boolean |
||
| 663 | if (!is_null($isApprovalRequest) && !is_bool($isApprovalRequest)) { |
||
| 664 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isApprovalRequest, true), gettype($isApprovalRequest)), __LINE__); |
||
| 665 | } |
||
| 666 | $this->IsApprovalRequest = $isApprovalRequest; |
||
| 667 | |||
| 668 | return $this; |
||
| 669 | } |
||
| 670 | /** |
||
| 671 | * Get IsAutomaticForward value |
||
| 672 | * @return bool|null |
||
| 673 | */ |
||
| 674 | public function getIsAutomaticForward(): ?bool |
||
| 675 | { |
||
| 676 | return $this->IsAutomaticForward; |
||
| 677 | } |
||
| 678 | /** |
||
| 679 | * Set IsAutomaticForward value |
||
| 680 | * @param bool $isAutomaticForward |
||
| 681 | * @return \StructType\EwsRulePredicatesType |
||
| 682 | */ |
||
| 683 | public function setIsAutomaticForward(?bool $isAutomaticForward = null): self |
||
| 684 | { |
||
| 685 | // validation for constraint: boolean |
||
| 686 | if (!is_null($isAutomaticForward) && !is_bool($isAutomaticForward)) { |
||
| 687 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isAutomaticForward, true), gettype($isAutomaticForward)), __LINE__); |
||
| 688 | } |
||
| 689 | $this->IsAutomaticForward = $isAutomaticForward; |
||
| 690 | |||
| 691 | return $this; |
||
| 692 | } |
||
| 693 | /** |
||
| 694 | * Get IsAutomaticReply value |
||
| 695 | * @return bool|null |
||
| 696 | */ |
||
| 697 | public function getIsAutomaticReply(): ?bool |
||
| 698 | { |
||
| 699 | return $this->IsAutomaticReply; |
||
| 700 | } |
||
| 701 | /** |
||
| 702 | * Set IsAutomaticReply value |
||
| 703 | * @param bool $isAutomaticReply |
||
| 704 | * @return \StructType\EwsRulePredicatesType |
||
| 705 | */ |
||
| 706 | public function setIsAutomaticReply(?bool $isAutomaticReply = null): self |
||
| 707 | { |
||
| 708 | // validation for constraint: boolean |
||
| 709 | if (!is_null($isAutomaticReply) && !is_bool($isAutomaticReply)) { |
||
| 710 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isAutomaticReply, true), gettype($isAutomaticReply)), __LINE__); |
||
| 711 | } |
||
| 712 | $this->IsAutomaticReply = $isAutomaticReply; |
||
| 713 | |||
| 714 | return $this; |
||
| 715 | } |
||
| 716 | /** |
||
| 717 | * Get IsEncrypted value |
||
| 718 | * @return bool|null |
||
| 719 | */ |
||
| 720 | public function getIsEncrypted(): ?bool |
||
| 721 | { |
||
| 722 | return $this->IsEncrypted; |
||
| 723 | } |
||
| 724 | /** |
||
| 725 | * Set IsEncrypted value |
||
| 726 | * @param bool $isEncrypted |
||
| 727 | * @return \StructType\EwsRulePredicatesType |
||
| 728 | */ |
||
| 729 | public function setIsEncrypted(?bool $isEncrypted = null): self |
||
| 730 | { |
||
| 731 | // validation for constraint: boolean |
||
| 732 | if (!is_null($isEncrypted) && !is_bool($isEncrypted)) { |
||
| 733 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isEncrypted, true), gettype($isEncrypted)), __LINE__); |
||
| 734 | } |
||
| 735 | $this->IsEncrypted = $isEncrypted; |
||
| 736 | |||
| 737 | return $this; |
||
| 738 | } |
||
| 739 | /** |
||
| 740 | * Get IsMeetingRequest value |
||
| 741 | * @return bool|null |
||
| 742 | */ |
||
| 743 | public function getIsMeetingRequest(): ?bool |
||
| 744 | { |
||
| 745 | return $this->IsMeetingRequest; |
||
| 746 | } |
||
| 747 | /** |
||
| 748 | * Set IsMeetingRequest value |
||
| 749 | * @param bool $isMeetingRequest |
||
| 750 | * @return \StructType\EwsRulePredicatesType |
||
| 751 | */ |
||
| 752 | public function setIsMeetingRequest(?bool $isMeetingRequest = null): self |
||
| 753 | { |
||
| 754 | // validation for constraint: boolean |
||
| 755 | if (!is_null($isMeetingRequest) && !is_bool($isMeetingRequest)) { |
||
| 756 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isMeetingRequest, true), gettype($isMeetingRequest)), __LINE__); |
||
| 757 | } |
||
| 758 | $this->IsMeetingRequest = $isMeetingRequest; |
||
| 759 | |||
| 760 | return $this; |
||
| 761 | } |
||
| 762 | /** |
||
| 763 | * Get IsMeetingResponse value |
||
| 764 | * @return bool|null |
||
| 765 | */ |
||
| 766 | public function getIsMeetingResponse(): ?bool |
||
| 767 | { |
||
| 768 | return $this->IsMeetingResponse; |
||
| 769 | } |
||
| 770 | /** |
||
| 771 | * Set IsMeetingResponse value |
||
| 772 | * @param bool $isMeetingResponse |
||
| 773 | * @return \StructType\EwsRulePredicatesType |
||
| 774 | */ |
||
| 775 | public function setIsMeetingResponse(?bool $isMeetingResponse = null): self |
||
| 776 | { |
||
| 777 | // validation for constraint: boolean |
||
| 778 | if (!is_null($isMeetingResponse) && !is_bool($isMeetingResponse)) { |
||
| 779 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isMeetingResponse, true), gettype($isMeetingResponse)), __LINE__); |
||
| 780 | } |
||
| 781 | $this->IsMeetingResponse = $isMeetingResponse; |
||
| 782 | |||
| 783 | return $this; |
||
| 784 | } |
||
| 785 | /** |
||
| 786 | * Get IsNDR value |
||
| 787 | * @return bool|null |
||
| 788 | */ |
||
| 789 | public function getIsNDR(): ?bool |
||
| 790 | { |
||
| 791 | return $this->IsNDR; |
||
| 792 | } |
||
| 793 | /** |
||
| 794 | * Set IsNDR value |
||
| 795 | * @param bool $isNDR |
||
| 796 | * @return \StructType\EwsRulePredicatesType |
||
| 797 | */ |
||
| 798 | public function setIsNDR(?bool $isNDR = null): self |
||
| 799 | { |
||
| 800 | // validation for constraint: boolean |
||
| 801 | if (!is_null($isNDR) && !is_bool($isNDR)) { |
||
| 802 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isNDR, true), gettype($isNDR)), __LINE__); |
||
| 803 | } |
||
| 804 | $this->IsNDR = $isNDR; |
||
| 805 | |||
| 806 | return $this; |
||
| 807 | } |
||
| 808 | /** |
||
| 809 | * Get IsPermissionControlled value |
||
| 810 | * @return bool|null |
||
| 811 | */ |
||
| 812 | public function getIsPermissionControlled(): ?bool |
||
| 815 | } |
||
| 816 | /** |
||
| 817 | * Set IsPermissionControlled value |
||
| 818 | * @param bool $isPermissionControlled |
||
| 819 | * @return \StructType\EwsRulePredicatesType |
||
| 820 | */ |
||
| 821 | public function setIsPermissionControlled(?bool $isPermissionControlled = null): self |
||
| 822 | { |
||
| 823 | // validation for constraint: boolean |
||
| 824 | if (!is_null($isPermissionControlled) && !is_bool($isPermissionControlled)) { |
||
| 825 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isPermissionControlled, true), gettype($isPermissionControlled)), __LINE__); |
||
| 826 | } |
||
| 827 | $this->IsPermissionControlled = $isPermissionControlled; |
||
| 828 | |||
| 829 | return $this; |
||
| 830 | } |
||
| 831 | /** |
||
| 832 | * Get IsReadReceipt value |
||
| 833 | * @return bool|null |
||
| 834 | */ |
||
| 835 | public function getIsReadReceipt(): ?bool |
||
| 836 | { |
||
| 837 | return $this->IsReadReceipt; |
||
| 838 | } |
||
| 839 | /** |
||
| 840 | * Set IsReadReceipt value |
||
| 841 | * @param bool $isReadReceipt |
||
| 842 | * @return \StructType\EwsRulePredicatesType |
||
| 843 | */ |
||
| 844 | public function setIsReadReceipt(?bool $isReadReceipt = null): self |
||
| 845 | { |
||
| 846 | // validation for constraint: boolean |
||
| 847 | if (!is_null($isReadReceipt) && !is_bool($isReadReceipt)) { |
||
| 848 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isReadReceipt, true), gettype($isReadReceipt)), __LINE__); |
||
| 849 | } |
||
| 850 | $this->IsReadReceipt = $isReadReceipt; |
||
| 851 | |||
| 852 | return $this; |
||
| 853 | } |
||
| 854 | /** |
||
| 855 | * Get IsSigned value |
||
| 856 | * @return bool|null |
||
| 857 | */ |
||
| 858 | public function getIsSigned(): ?bool |
||
| 859 | { |
||
| 860 | return $this->IsSigned; |
||
| 861 | } |
||
| 862 | /** |
||
| 863 | * Set IsSigned value |
||
| 864 | * @param bool $isSigned |
||
| 865 | * @return \StructType\EwsRulePredicatesType |
||
| 866 | */ |
||
| 867 | public function setIsSigned(?bool $isSigned = null): self |
||
| 868 | { |
||
| 869 | // validation for constraint: boolean |
||
| 870 | if (!is_null($isSigned) && !is_bool($isSigned)) { |
||
| 871 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isSigned, true), gettype($isSigned)), __LINE__); |
||
| 872 | } |
||
| 873 | $this->IsSigned = $isSigned; |
||
| 874 | |||
| 875 | return $this; |
||
| 876 | } |
||
| 877 | /** |
||
| 878 | * Get IsVoicemail value |
||
| 879 | * @return bool|null |
||
| 880 | */ |
||
| 881 | public function getIsVoicemail(): ?bool |
||
| 882 | { |
||
| 883 | return $this->IsVoicemail; |
||
| 884 | } |
||
| 885 | /** |
||
| 886 | * Set IsVoicemail value |
||
| 887 | * @param bool $isVoicemail |
||
| 888 | * @return \StructType\EwsRulePredicatesType |
||
| 889 | */ |
||
| 890 | public function setIsVoicemail(?bool $isVoicemail = null): self |
||
| 891 | { |
||
| 892 | // validation for constraint: boolean |
||
| 893 | if (!is_null($isVoicemail) && !is_bool($isVoicemail)) { |
||
| 894 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isVoicemail, true), gettype($isVoicemail)), __LINE__); |
||
| 895 | } |
||
| 896 | $this->IsVoicemail = $isVoicemail; |
||
| 897 | |||
| 898 | return $this; |
||
| 899 | } |
||
| 900 | /** |
||
| 901 | * Get ItemClasses value |
||
| 902 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
| 903 | */ |
||
| 904 | public function getItemClasses(): ?\ArrayType\EwsArrayOfStringsType |
||
| 905 | { |
||
| 906 | return $this->ItemClasses; |
||
| 907 | } |
||
| 908 | /** |
||
| 909 | * Set ItemClasses value |
||
| 910 | * @param \ArrayType\EwsArrayOfStringsType $itemClasses |
||
| 911 | * @return \StructType\EwsRulePredicatesType |
||
| 912 | */ |
||
| 913 | public function setItemClasses(?\ArrayType\EwsArrayOfStringsType $itemClasses = null): self |
||
| 918 | } |
||
| 919 | /** |
||
| 920 | * Get MessageClassifications value |
||
| 921 | * @return \ArrayType\EwsArrayOfStringsType|null |
||
| 922 | */ |
||
| 923 | public function getMessageClassifications(): ?\ArrayType\EwsArrayOfStringsType |
||
| 924 | { |
||
| 925 | return $this->MessageClassifications; |
||
| 926 | } |
||
| 927 | /** |
||
| 928 | * Set MessageClassifications value |
||
| 929 | * @param \ArrayType\EwsArrayOfStringsType $messageClassifications |
||
| 930 | * @return \StructType\EwsRulePredicatesType |
||
| 931 | */ |
||
| 932 | public function setMessageClassifications(?\ArrayType\EwsArrayOfStringsType $messageClassifications = null): self |
||
| 933 | { |
||
| 934 | $this->MessageClassifications = $messageClassifications; |
||
| 935 | |||
| 936 | return $this; |
||
| 937 | } |
||
| 938 | /** |
||
| 939 | * Get NotSentToMe value |
||
| 940 | * @return bool|null |
||
| 941 | */ |
||
| 942 | public function getNotSentToMe(): ?bool |
||
| 943 | { |
||
| 944 | return $this->NotSentToMe; |
||
| 945 | } |
||
| 946 | /** |
||
| 947 | * Set NotSentToMe value |
||
| 948 | * @param bool $notSentToMe |
||
| 949 | * @return \StructType\EwsRulePredicatesType |
||
| 950 | */ |
||
| 951 | public function setNotSentToMe(?bool $notSentToMe = null): self |
||
| 952 | { |
||
| 953 | // validation for constraint: boolean |
||
| 954 | if (!is_null($notSentToMe) && !is_bool($notSentToMe)) { |
||
| 955 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($notSentToMe, true), gettype($notSentToMe)), __LINE__); |
||
| 956 | } |
||
| 957 | $this->NotSentToMe = $notSentToMe; |
||
| 958 | |||
| 959 | return $this; |
||
| 960 | } |
||
| 961 | /** |
||
| 962 | * Get SentCcMe value |
||
| 963 | * @return bool|null |
||
| 964 | */ |
||
| 965 | public function getSentCcMe(): ?bool |
||
| 968 | } |
||
| 969 | /** |
||
| 970 | * Set SentCcMe value |
||
| 971 | * @param bool $sentCcMe |
||
| 972 | * @return \StructType\EwsRulePredicatesType |
||
| 973 | */ |
||
| 974 | public function setSentCcMe(?bool $sentCcMe = null): self |
||
| 975 | { |
||
| 976 | // validation for constraint: boolean |
||
| 977 | if (!is_null($sentCcMe) && !is_bool($sentCcMe)) { |
||
| 978 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($sentCcMe, true), gettype($sentCcMe)), __LINE__); |
||
| 979 | } |
||
| 980 | $this->SentCcMe = $sentCcMe; |
||
| 981 | |||
| 982 | return $this; |
||
| 983 | } |
||
| 984 | /** |
||
| 985 | * Get SentOnlyToMe value |
||
| 986 | * @return bool|null |
||
| 987 | */ |
||
| 988 | public function getSentOnlyToMe(): ?bool |
||
| 989 | { |
||
| 990 | return $this->SentOnlyToMe; |
||
| 991 | } |
||
| 992 | /** |
||
| 993 | * Set SentOnlyToMe value |
||
| 994 | * @param bool $sentOnlyToMe |
||
| 995 | * @return \StructType\EwsRulePredicatesType |
||
| 996 | */ |
||
| 997 | public function setSentOnlyToMe(?bool $sentOnlyToMe = null): self |
||
| 998 | { |
||
| 999 | // validation for constraint: boolean |
||
| 1000 | if (!is_null($sentOnlyToMe) && !is_bool($sentOnlyToMe)) { |
||
| 1001 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($sentOnlyToMe, true), gettype($sentOnlyToMe)), __LINE__); |
||
| 1002 | } |
||
| 1003 | $this->SentOnlyToMe = $sentOnlyToMe; |
||
| 1004 | |||
| 1005 | return $this; |
||
| 1006 | } |
||
| 1007 | /** |
||
| 1008 | * Get SentToAddresses value |
||
| 1009 | * @return \ArrayType\EwsArrayOfEmailAddressesType|null |
||
| 1010 | */ |
||
| 1011 | public function getSentToAddresses(): ?\ArrayType\EwsArrayOfEmailAddressesType |
||
| 1012 | { |
||
| 1013 | return $this->SentToAddresses; |
||
| 1014 | } |
||
| 1015 | /** |
||
| 1016 | * Set SentToAddresses value |
||
| 1017 | * @param \ArrayType\EwsArrayOfEmailAddressesType $sentToAddresses |
||
| 1018 | * @return \StructType\EwsRulePredicatesType |
||
| 1019 | */ |
||
| 1020 | public function setSentToAddresses(?\ArrayType\EwsArrayOfEmailAddressesType $sentToAddresses = null): self |
||
| 1021 | { |
||
| 1022 | $this->SentToAddresses = $sentToAddresses; |
||
| 1023 | |||
| 1024 | return $this; |
||
| 1025 | } |
||
| 1026 | /** |
||
| 1027 | * Get SentToMe value |
||
| 1028 | * @return bool|null |
||
| 1029 | */ |
||
| 1030 | public function getSentToMe(): ?bool |
||
| 1033 | } |
||
| 1034 | /** |
||
| 1035 | * Set SentToMe value |
||
| 1036 | * @param bool $sentToMe |
||
| 1037 | * @return \StructType\EwsRulePredicatesType |
||
| 1038 | */ |
||
| 1039 | public function setSentToMe(?bool $sentToMe = null): self |
||
| 1040 | { |
||
| 1041 | // validation for constraint: boolean |
||
| 1042 | if (!is_null($sentToMe) && !is_bool($sentToMe)) { |
||
| 1043 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($sentToMe, true), gettype($sentToMe)), __LINE__); |
||
| 1044 | } |
||
| 1045 | $this->SentToMe = $sentToMe; |
||
| 1046 | |||
| 1047 | return $this; |
||
| 1048 | } |
||
| 1049 | /** |
||
| 1050 | * Get SentToOrCcMe value |
||
| 1051 | * @return bool|null |
||
| 1052 | */ |
||
| 1053 | public function getSentToOrCcMe(): ?bool |
||
| 1054 | { |
||
| 1055 | return $this->SentToOrCcMe; |
||
| 1056 | } |
||
| 1057 | /** |
||
| 1058 | * Set SentToOrCcMe value |
||
| 1059 | * @param bool $sentToOrCcMe |
||
| 1060 | * @return \StructType\EwsRulePredicatesType |
||
| 1061 | */ |
||
| 1062 | public function setSentToOrCcMe(?bool $sentToOrCcMe = null): self |
||
| 1063 | { |
||
| 1064 | // validation for constraint: boolean |
||
| 1065 | if (!is_null($sentToOrCcMe) && !is_bool($sentToOrCcMe)) { |
||
| 1066 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($sentToOrCcMe, true), gettype($sentToOrCcMe)), __LINE__); |
||
| 1067 | } |
||
| 1068 | $this->SentToOrCcMe = $sentToOrCcMe; |
||
| 1069 | |||
| 1070 | return $this; |
||
| 1071 | } |
||
| 1072 | /** |
||
| 1073 | * Get Sensitivity value |
||
| 1074 | * @return string|null |
||
| 1075 | */ |
||
| 1076 | public function getSensitivity(): ?string |
||
| 1077 | { |
||
| 1078 | return $this->Sensitivity; |
||
| 1079 | } |
||
| 1080 | /** |
||
| 1081 | * Set Sensitivity value |
||
| 1082 | * @uses \EnumType\EwsSensitivityChoicesType::valueIsValid() |
||
| 1083 | * @uses \EnumType\EwsSensitivityChoicesType::getValidValues() |
||
| 1084 | * @throws InvalidArgumentException |
||
| 1085 | * @param string $sensitivity |
||
| 1086 | * @return \StructType\EwsRulePredicatesType |
||
| 1087 | */ |
||
| 1088 | public function setSensitivity(?string $sensitivity = null): self |
||
| 1089 | { |
||
| 1090 | // validation for constraint: enumeration |
||
| 1091 | if (!\EnumType\EwsSensitivityChoicesType::valueIsValid($sensitivity)) { |
||
| 1092 | throw new InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \EnumType\EwsSensitivityChoicesType', is_array($sensitivity) ? implode(', ', $sensitivity) : var_export($sensitivity, true), implode(', ', \EnumType\EwsSensitivityChoicesType::getValidValues())), __LINE__); |
||
| 1093 | } |
||
| 1094 | $this->Sensitivity = $sensitivity; |
||
| 1095 | |||
| 1096 | return $this; |
||
| 1097 | } |
||
| 1098 | /** |
||
| 1099 | * Get WithinDateRange value |
||
| 1100 | * @return \StructType\EwsRulePredicateDateRangeType|null |
||
| 1101 | */ |
||
| 1102 | public function getWithinDateRange(): ?\StructType\EwsRulePredicateDateRangeType |
||
| 1105 | } |
||
| 1106 | /** |
||
| 1107 | * Set WithinDateRange value |
||
| 1108 | * @param \StructType\EwsRulePredicateDateRangeType $withinDateRange |
||
| 1109 | * @return \StructType\EwsRulePredicatesType |
||
| 1110 | */ |
||
| 1111 | public function setWithinDateRange(?\StructType\EwsRulePredicateDateRangeType $withinDateRange = null): self |
||
| 1112 | { |
||
| 1113 | $this->WithinDateRange = $withinDateRange; |
||
| 1114 | |||
| 1115 | return $this; |
||
| 1116 | } |
||
| 1117 | /** |
||
| 1118 | * Get WithinSizeRange value |
||
| 1119 | * @return \StructType\EwsRulePredicateSizeRangeType|null |
||
| 1120 | */ |
||
| 1121 | public function getWithinSizeRange(): ?\StructType\EwsRulePredicateSizeRangeType |
||
| 1124 | } |
||
| 1125 | /** |
||
| 1126 | * Set WithinSizeRange value |
||
| 1127 | * @param \StructType\EwsRulePredicateSizeRangeType $withinSizeRange |
||
| 1128 | * @return \StructType\EwsRulePredicatesType |
||
| 1129 | */ |
||
| 1130 | public function setWithinSizeRange(?\StructType\EwsRulePredicateSizeRangeType $withinSizeRange = null): self |
||
| 1135 | } |
||
| 1136 | } |
||
| 1137 |