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