1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Ews\StructType; |
4
|
|
|
|
5
|
|
|
use \WsdlToPhp\PackageBase\AbstractStructBase; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* This class stands for ContainsExpressionType StructType |
9
|
|
|
* @package Ews |
10
|
|
|
* @subpackage Structs |
11
|
|
|
* @author WsdlToPhp <[email protected]> |
12
|
|
|
*/ |
13
|
|
|
class EwsContainsExpressionType extends EwsSearchExpressionType |
14
|
|
|
{ |
15
|
|
|
/** |
16
|
|
|
* The Constant |
17
|
|
|
* @var \Ews\StructType\EwsConstantValueType |
18
|
|
|
*/ |
19
|
|
|
public $Constant; |
20
|
|
|
/** |
21
|
|
|
* The FieldURI |
22
|
|
|
* @var \Ews\StructType\EwsPathToUnindexedFieldType |
23
|
|
|
*/ |
24
|
|
|
public $FieldURI; |
25
|
|
|
/** |
26
|
|
|
* The IndexedFieldURI |
27
|
|
|
* @var \Ews\StructType\EwsPathToIndexedFieldType |
28
|
|
|
*/ |
29
|
|
|
public $IndexedFieldURI; |
30
|
|
|
/** |
31
|
|
|
* The ExtendedFieldURI |
32
|
|
|
* @var \Ews\StructType\EwsPathToExtendedFieldType |
33
|
|
|
*/ |
34
|
|
|
public $ExtendedFieldURI; |
35
|
|
|
/** |
36
|
|
|
* The ContainmentMode |
37
|
|
|
* Meta informations extracted from the WSDL |
38
|
|
|
* - use: optional |
39
|
|
|
* @var string |
40
|
|
|
*/ |
41
|
|
|
public $ContainmentMode; |
42
|
|
|
/** |
43
|
|
|
* The ContainmentComparison |
44
|
|
|
* Meta informations extracted from the WSDL |
45
|
|
|
* - use: optional |
46
|
|
|
* @var string |
47
|
|
|
*/ |
48
|
|
|
public $ContainmentComparison; |
49
|
|
|
/** |
50
|
|
|
* Constructor method for ContainsExpressionType |
51
|
|
|
* @uses EwsContainsExpressionType::setConstant() |
52
|
|
|
* @uses EwsContainsExpressionType::setFieldURI() |
53
|
|
|
* @uses EwsContainsExpressionType::setIndexedFieldURI() |
54
|
|
|
* @uses EwsContainsExpressionType::setExtendedFieldURI() |
55
|
|
|
* @uses EwsContainsExpressionType::setContainmentMode() |
56
|
|
|
* @uses EwsContainsExpressionType::setContainmentComparison() |
57
|
|
|
* @param \Ews\StructType\EwsConstantValueType $constant |
58
|
|
|
* @param \Ews\StructType\EwsPathToUnindexedFieldType $fieldURI |
59
|
|
|
* @param \Ews\StructType\EwsPathToIndexedFieldType $indexedFieldURI |
60
|
|
|
* @param \Ews\StructType\EwsPathToExtendedFieldType $extendedFieldURI |
61
|
|
|
* @param string $containmentMode |
62
|
|
|
* @param string $containmentComparison |
63
|
|
|
*/ |
64
|
|
|
public function __construct(\Ews\StructType\EwsConstantValueType $constant = null, \Ews\StructType\EwsPathToUnindexedFieldType $fieldURI = null, \Ews\StructType\EwsPathToIndexedFieldType $indexedFieldURI = null, \Ews\StructType\EwsPathToExtendedFieldType $extendedFieldURI = null, $containmentMode = null, $containmentComparison = null) |
65
|
|
|
{ |
66
|
|
|
$this |
67
|
|
|
->setConstant($constant) |
68
|
|
|
->setFieldURI($fieldURI) |
69
|
|
|
->setIndexedFieldURI($indexedFieldURI) |
70
|
|
|
->setExtendedFieldURI($extendedFieldURI) |
71
|
|
|
->setContainmentMode($containmentMode) |
72
|
|
|
->setContainmentComparison($containmentComparison); |
73
|
|
|
} |
74
|
|
|
/** |
75
|
|
|
* Get Constant value |
76
|
|
|
* @return \Ews\StructType\EwsConstantValueType|null |
77
|
|
|
*/ |
78
|
|
|
public function getConstant() |
79
|
|
|
{ |
80
|
|
|
return $this->Constant; |
81
|
|
|
} |
82
|
|
|
/** |
83
|
|
|
* Set Constant value |
84
|
|
|
* @param \Ews\StructType\EwsConstantValueType $constant |
85
|
|
|
* @return \Ews\StructType\EwsContainsExpressionType |
86
|
|
|
*/ |
87
|
|
|
public function setConstant(\Ews\StructType\EwsConstantValueType $constant = null) |
88
|
|
|
{ |
89
|
|
|
$this->Constant = $constant; |
90
|
|
|
return $this; |
91
|
|
|
} |
92
|
|
|
/** |
93
|
|
|
* Get FieldURI value |
94
|
|
|
* @return \Ews\StructType\EwsPathToUnindexedFieldType|null |
95
|
|
|
*/ |
96
|
|
|
public function getFieldURI() |
97
|
|
|
{ |
98
|
|
|
return $this->FieldURI; |
99
|
|
|
} |
100
|
|
|
/** |
101
|
|
|
* Set FieldURI value |
102
|
|
|
* @param \Ews\StructType\EwsPathToUnindexedFieldType $fieldURI |
103
|
|
|
* @return \Ews\StructType\EwsContainsExpressionType |
104
|
|
|
*/ |
105
|
|
|
public function setFieldURI(\Ews\StructType\EwsPathToUnindexedFieldType $fieldURI = null) |
106
|
|
|
{ |
107
|
|
|
$this->FieldURI = $fieldURI; |
108
|
|
|
return $this; |
109
|
|
|
} |
110
|
|
|
/** |
111
|
|
|
* Get IndexedFieldURI value |
112
|
|
|
* @return \Ews\StructType\EwsPathToIndexedFieldType|null |
113
|
|
|
*/ |
114
|
|
|
public function getIndexedFieldURI() |
115
|
|
|
{ |
116
|
|
|
return $this->IndexedFieldURI; |
117
|
|
|
} |
118
|
|
|
/** |
119
|
|
|
* Set IndexedFieldURI value |
120
|
|
|
* @param \Ews\StructType\EwsPathToIndexedFieldType $indexedFieldURI |
121
|
|
|
* @return \Ews\StructType\EwsContainsExpressionType |
122
|
|
|
*/ |
123
|
|
|
public function setIndexedFieldURI(\Ews\StructType\EwsPathToIndexedFieldType $indexedFieldURI = null) |
124
|
|
|
{ |
125
|
|
|
$this->IndexedFieldURI = $indexedFieldURI; |
126
|
|
|
return $this; |
127
|
|
|
} |
128
|
|
|
/** |
129
|
|
|
* Get ExtendedFieldURI value |
130
|
|
|
* @return \Ews\StructType\EwsPathToExtendedFieldType|null |
131
|
|
|
*/ |
132
|
|
|
public function getExtendedFieldURI() |
133
|
|
|
{ |
134
|
|
|
return $this->ExtendedFieldURI; |
135
|
|
|
} |
136
|
|
|
/** |
137
|
|
|
* Set ExtendedFieldURI value |
138
|
|
|
* @param \Ews\StructType\EwsPathToExtendedFieldType $extendedFieldURI |
139
|
|
|
* @return \Ews\StructType\EwsContainsExpressionType |
140
|
|
|
*/ |
141
|
|
|
public function setExtendedFieldURI(\Ews\StructType\EwsPathToExtendedFieldType $extendedFieldURI = null) |
142
|
|
|
{ |
143
|
|
|
$this->ExtendedFieldURI = $extendedFieldURI; |
144
|
|
|
return $this; |
145
|
|
|
} |
146
|
|
|
/** |
147
|
|
|
* Get ContainmentMode value |
148
|
|
|
* @return string|null |
149
|
|
|
*/ |
150
|
|
|
public function getContainmentMode() |
151
|
|
|
{ |
152
|
|
|
return $this->ContainmentMode; |
153
|
|
|
} |
154
|
|
|
/** |
155
|
|
|
* Set ContainmentMode value |
156
|
|
|
* @uses \Ews\EnumType\EwsContainmentModeType::valueIsValid() |
157
|
|
|
* @uses \Ews\EnumType\EwsContainmentModeType::getValidValues() |
158
|
|
|
* @throws \InvalidArgumentException |
159
|
|
|
* @param string $containmentMode |
160
|
|
|
* @return \Ews\StructType\EwsContainsExpressionType |
161
|
|
|
*/ |
162
|
|
|
public function setContainmentMode($containmentMode = null) |
163
|
|
|
{ |
164
|
|
|
// validation for constraint: enumeration |
165
|
|
|
if (!\Ews\EnumType\EwsContainmentModeType::valueIsValid($containmentMode)) { |
166
|
|
|
throw new \InvalidArgumentException(sprintf('Value "%s" is invalid, please use one of: %s', $containmentMode, implode(', ', \Ews\EnumType\EwsContainmentModeType::getValidValues())), __LINE__); |
167
|
|
|
} |
168
|
|
|
$this->ContainmentMode = $containmentMode; |
169
|
|
|
return $this; |
170
|
|
|
} |
171
|
|
|
/** |
172
|
|
|
* Get ContainmentComparison value |
173
|
|
|
* @return string|null |
174
|
|
|
*/ |
175
|
|
|
public function getContainmentComparison() |
176
|
|
|
{ |
177
|
|
|
return $this->ContainmentComparison; |
178
|
|
|
} |
179
|
|
|
/** |
180
|
|
|
* Set ContainmentComparison value |
181
|
|
|
* @uses \Ews\EnumType\EwsContainmentComparisonType::valueIsValid() |
182
|
|
|
* @uses \Ews\EnumType\EwsContainmentComparisonType::getValidValues() |
183
|
|
|
* @throws \InvalidArgumentException |
184
|
|
|
* @param string $containmentComparison |
185
|
|
|
* @return \Ews\StructType\EwsContainsExpressionType |
186
|
|
|
*/ |
187
|
|
|
public function setContainmentComparison($containmentComparison = null) |
188
|
|
|
{ |
189
|
|
|
// validation for constraint: enumeration |
190
|
|
|
if (!\Ews\EnumType\EwsContainmentComparisonType::valueIsValid($containmentComparison)) { |
191
|
|
|
throw new \InvalidArgumentException(sprintf('Value "%s" is invalid, please use one of: %s', $containmentComparison, implode(', ', \Ews\EnumType\EwsContainmentComparisonType::getValidValues())), __LINE__); |
192
|
|
|
} |
193
|
|
|
$this->ContainmentComparison = $containmentComparison; |
194
|
|
|
return $this; |
195
|
|
|
} |
196
|
|
|
/** |
197
|
|
|
* Method called when an object has been exported with var_export() functions |
198
|
|
|
* It allows to return an object instantiated with the values |
199
|
|
|
* @see AbstractStructBase::__set_state() |
200
|
|
|
* @uses AbstractStructBase::__set_state() |
201
|
|
|
* @param array $array the exported values |
202
|
|
|
* @return \Ews\StructType\EwsContainsExpressionType |
203
|
|
|
*/ |
204
|
|
|
public static function __set_state(array $array) |
205
|
|
|
{ |
206
|
|
|
return parent::__set_state($array); |
207
|
|
|
} |
208
|
|
|
/** |
209
|
|
|
* Method returning the class name |
210
|
|
|
* @return string __CLASS__ |
211
|
|
|
*/ |
212
|
|
|
public function __toString() |
213
|
|
|
{ |
214
|
|
|
return __CLASS__; |
215
|
|
|
} |
216
|
|
|
} |
217
|
|
|
|