@@ 42-50 (lines=9) @@ | ||
39 | * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TComplexPropertyType $complexProperty |
|
40 | * @return self |
|
41 | */ |
|
42 | public function setComplexProperty(TComplexPropertyType $complexProperty) |
|
43 | { |
|
44 | $msg = null; |
|
45 | if (!$complexProperty->isOK($msg)) { |
|
46 | throw new \InvalidArgumentException($msg); |
|
47 | } |
|
48 | $this->complexProperty = $complexProperty; |
|
49 | return $this; |
|
50 | } |
|
51 | ||
52 | /** |
|
53 | * Gets as scalarProperty |
@@ 205-213 (lines=9) @@ | ||
202 | * @return self |
|
203 | * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TComplexPropertyType $complexProperty |
|
204 | */ |
|
205 | public function addToComplexProperty(TComplexPropertyType $complexProperty) |
|
206 | { |
|
207 | $msg = null; |
|
208 | if (!$complexProperty->isOK($msg)) { |
|
209 | throw new \InvalidArgumentException($msg); |
|
210 | } |
|
211 | $this->complexProperty[] = $complexProperty; |
|
212 | return $this; |
|
213 | } |
|
214 | ||
215 | /** |
|
216 | * isset complexProperty |
|
@@ 253-265 (lines=13) @@ | ||
250 | * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TComplexPropertyType[] $complexProperty |
|
251 | * @return self |
|
252 | */ |
|
253 | public function setComplexProperty(array $complexProperty) |
|
254 | { |
|
255 | $msg = null; |
|
256 | if (!$this->isValidArrayOK( |
|
257 | $complexProperty, |
|
258 | '\AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TComplexPropertyType', |
|
259 | $msg |
|
260 | )) { |
|
261 | throw new \InvalidArgumentException($msg); |
|
262 | } |
|
263 | $this->complexProperty = $complexProperty; |
|
264 | return $this; |
|
265 | } |
|
266 | ||
267 | /** |
|
268 | * Adds as complexTypeMapping |
@@ 166-174 (lines=9) @@ | ||
163 | * @return self |
|
164 | * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TComplexPropertyType $complexProperty |
|
165 | */ |
|
166 | public function addToComplexProperty(TComplexPropertyType $complexProperty) |
|
167 | { |
|
168 | $msg = null; |
|
169 | if (!$complexProperty->isOK($msg)) { |
|
170 | throw new \InvalidArgumentException($msg); |
|
171 | } |
|
172 | $this->complexProperty[] = $complexProperty; |
|
173 | return $this; |
|
174 | } |
|
175 | ||
176 | /** |
|
177 | * isset complexProperty |
|
@@ 214-226 (lines=13) @@ | ||
211 | * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TComplexPropertyType[] $complexProperty |
|
212 | * @return self |
|
213 | */ |
|
214 | public function setComplexProperty(array $complexProperty) |
|
215 | { |
|
216 | $msg = null; |
|
217 | if (!$this->isValidArrayOK( |
|
218 | $complexProperty, |
|
219 | '\AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TComplexPropertyType', |
|
220 | $msg |
|
221 | )) { |
|
222 | throw new \InvalidArgumentException($msg); |
|
223 | } |
|
224 | $this->complexProperty = $complexProperty; |
|
225 | return $this; |
|
226 | } |
|
227 | ||
228 | /** |
|
229 | * Adds as condition |