| @@ 259-267 (lines=9) @@ | ||
| 256 | * @return self |
|
| 257 | * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TFunctionImportMappingType $functionImportMapping |
|
| 258 | */ |
|
| 259 | public function addToFunctionImportMapping(TFunctionImportMappingType $functionImportMapping) |
|
| 260 | { |
|
| 261 | $msg = null; |
|
| 262 | if (!$functionImportMapping->isOK($msg)) { |
|
| 263 | throw new \InvalidArgumentException($msg); |
|
| 264 | } |
|
| 265 | $this->functionImportMapping[] = $functionImportMapping; |
|
| 266 | return $this; |
|
| 267 | } |
|
| 268 | ||
| 269 | /** |
|
| 270 | * isset functionImportMapping |
|
| @@ 308-320 (lines=13) @@ | ||
| 305 | * $functionImportMapping |
|
| 306 | * @return self |
|
| 307 | */ |
|
| 308 | public function setFunctionImportMapping(array $functionImportMapping) |
|
| 309 | { |
|
| 310 | $msg = null; |
|
| 311 | if (!$this->isValidArrayOK( |
|
| 312 | $functionImportMapping, |
|
| 313 | '\AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TFunctionImportMappingType', |
|
| 314 | $msg |
|
| 315 | )) { |
|
| 316 | throw new \InvalidArgumentException($msg); |
|
| 317 | } |
|
| 318 | $this->functionImportMapping = $functionImportMapping; |
|
| 319 | return $this; |
|
| 320 | } |
|
| 321 | ||
| 322 | public function isOK(&$msg = null) |
|
| 323 | { |
|