| @@ 243-251 (lines=9) @@ | ||
| 240 | * @return self |
|
| 241 | * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TConditionType $condition |
|
| 242 | */ |
|
| 243 | public function addToCondition(TConditionType $condition) |
|
| 244 | { |
|
| 245 | $msg = null; |
|
| 246 | if (!$condition->isOK($msg)) { |
|
| 247 | throw new \InvalidArgumentException($msg); |
|
| 248 | } |
|
| 249 | $this->condition[] = $condition; |
|
| 250 | return $this; |
|
| 251 | } |
|
| 252 | ||
| 253 | /** |
|
| 254 | * isset condition |
|
| @@ 291-303 (lines=13) @@ | ||
| 288 | * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TConditionType[] $condition |
|
| 289 | * @return self |
|
| 290 | */ |
|
| 291 | public function setCondition(array $condition) |
|
| 292 | { |
|
| 293 | $msg = null; |
|
| 294 | if (!$this->isValidArrayOK( |
|
| 295 | $condition, |
|
| 296 | '\AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TConditionType', |
|
| 297 | $msg |
|
| 298 | )) { |
|
| 299 | throw new \InvalidArgumentException($msg); |
|
| 300 | } |
|
| 301 | $this->condition = $condition; |
|
| 302 | return $this; |
|
| 303 | } |
|
| 304 | ||
| 305 | /** |
|
| 306 | * Gets as modificationFunctionMapping |
|
| @@ 333-341 (lines=9) @@ | ||
| 330 | * @return self |
|
| 331 | * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TConditionType $condition |
|
| 332 | */ |
|
| 333 | public function addToCondition(TConditionType $condition) |
|
| 334 | { |
|
| 335 | $msg = null; |
|
| 336 | if (!$condition->isOK($msg)) { |
|
| 337 | throw new \InvalidArgumentException($msg); |
|
| 338 | } |
|
| 339 | $this->condition[] = $condition; |
|
| 340 | return $this; |
|
| 341 | } |
|
| 342 | ||
| 343 | /** |
|
| 344 | * isset condition |
|
| @@ 381-393 (lines=13) @@ | ||
| 378 | * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TConditionType[] $condition |
|
| 379 | * @return self |
|
| 380 | */ |
|
| 381 | public function setCondition(array $condition) |
|
| 382 | { |
|
| 383 | $msg = null; |
|
| 384 | if (!$this->isValidArrayOK( |
|
| 385 | $condition, |
|
| 386 | '\AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TConditionType', |
|
| 387 | $msg |
|
| 388 | )) { |
|
| 389 | throw new \InvalidArgumentException($msg); |
|
| 390 | } |
|
| 391 | $this->condition = $condition; |
|
| 392 | return $this; |
|
| 393 | } |
|
| 394 | ||
| 395 | public function isOK(&$msg = null) |
|
| 396 | { |
|
| @@ 234-242 (lines=9) @@ | ||
| 231 | * @return self |
|
| 232 | * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TConditionType $condition |
|
| 233 | */ |
|
| 234 | public function addToCondition(TConditionType $condition) |
|
| 235 | { |
|
| 236 | $msg = null; |
|
| 237 | if (!$condition->isOK($msg)) { |
|
| 238 | throw new \InvalidArgumentException($msg); |
|
| 239 | } |
|
| 240 | $this->condition[] = $condition; |
|
| 241 | return $this; |
|
| 242 | } |
|
| 243 | ||
| 244 | /** |
|
| 245 | * isset condition |
|
| @@ 282-294 (lines=13) @@ | ||
| 279 | * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TConditionType[] $condition |
|
| 280 | * @return self |
|
| 281 | */ |
|
| 282 | public function setCondition(array $condition) |
|
| 283 | { |
|
| 284 | $msg = null; |
|
| 285 | if (!$this->isValidArrayOK( |
|
| 286 | $condition, |
|
| 287 | '\AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TConditionType', |
|
| 288 | $msg |
|
| 289 | )) { |
|
| 290 | throw new \InvalidArgumentException($msg); |
|
| 291 | } |
|
| 292 | $this->condition = $condition; |
|
| 293 | return $this; |
|
| 294 | } |
|
| 295 | ||
| 296 | public function isOK(&$msg = null) |
|
| 297 | { |
|
| @@ 132-140 (lines=9) @@ | ||
| 129 | * @return self |
|
| 130 | * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TFunctionImportConditionType $condition |
|
| 131 | */ |
|
| 132 | public function addToCondition(TFunctionImportConditionType $condition) |
|
| 133 | { |
|
| 134 | $msg = null; |
|
| 135 | if (!$condition->isOK($msg)) { |
|
| 136 | throw new \InvalidArgumentException($msg); |
|
| 137 | } |
|
| 138 | $this->condition[] = $condition; |
|
| 139 | return $this; |
|
| 140 | } |
|
| 141 | ||
| 142 | /** |
|
| 143 | * isset condition |
|
| @@ 180-192 (lines=13) @@ | ||
| 177 | * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TFunctionImportConditionType[] $condition |
|
| 178 | * @return self |
|
| 179 | */ |
|
| 180 | public function setCondition(array $condition) |
|
| 181 | { |
|
| 182 | $msg = null; |
|
| 183 | if (!$this->isValidArrayOK( |
|
| 184 | $condition, |
|
| 185 | '\AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TFunctionImportConditionType', |
|
| 186 | $msg |
|
| 187 | )) { |
|
| 188 | throw new \InvalidArgumentException($msg); |
|
| 189 | } |
|
| 190 | $this->condition = $condition; |
|
| 191 | return $this; |
|
| 192 | } |
|
| 193 | ||
| 194 | public function isOK(&$msg = null) |
|
| 195 | { |
|