| @@ 273-281 (lines=9) @@ | ||
| 270 | * @return self |
|
| 271 | * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TFunctionImportMappingType $functionImportMapping |
|
| 272 | */ |
|
| 273 | public function addToFunctionImportMapping(TFunctionImportMappingType $functionImportMapping) |
|
| 274 | { |
|
| 275 | $msg = null; |
|
| 276 | if (!$functionImportMapping->isOK($msg)) { |
|
| 277 | throw new \InvalidArgumentException($msg); |
|
| 278 | } |
|
| 279 | $this->functionImportMapping[] = $functionImportMapping; |
|
| 280 | return $this; |
|
| 281 | } |
|
| 282 | ||
| 283 | /** |
|
| 284 | * isset functionImportMapping |
|
| @@ 322-334 (lines=13) @@ | ||
| 319 | * $functionImportMapping |
|
| 320 | * @return self |
|
| 321 | */ |
|
| 322 | public function setFunctionImportMapping(array $functionImportMapping) |
|
| 323 | { |
|
| 324 | $msg = null; |
|
| 325 | if (!$this->isValidArrayOK( |
|
| 326 | $functionImportMapping, |
|
| 327 | '\AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TFunctionImportMappingType', |
|
| 328 | $msg |
|
| 329 | ) |
|
| 330 | ) { |
|
| 331 | throw new \InvalidArgumentException($msg); |
|
| 332 | } |
|
| 333 | $this->functionImportMapping = $functionImportMapping; |
|
| 334 | return $this; |
|
| 335 | } |
|
| 336 | ||
| 337 | public function isOK(&$msg = null) |
|