| @@ 117-125 (lines=9) @@ | ||
| 114 | * @return self |
|
| 115 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TFunctionReturnTypeType $returnType |
|
| 116 | */ |
|
| 117 | public function addToReturnType(TFunctionReturnTypeType $returnType) |
|
| 118 | { |
|
| 119 | $msg = null; |
|
| 120 | if (!$returnType->isOK($msg)) { |
|
| 121 | throw new \InvalidArgumentException($msg); |
|
| 122 | } |
|
| 123 | $this->returnType[] = $returnType; |
|
| 124 | return $this; |
|
| 125 | } |
|
| 126 | ||
| 127 | /** |
|
| 128 | * isset returnType |
|
| @@ 165-177 (lines=13) @@ | ||
| 162 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TFunctionReturnTypeType[] $returnType |
|
| 163 | * @return self |
|
| 164 | */ |
|
| 165 | public function setReturnType(array $returnType) |
|
| 166 | { |
|
| 167 | $msg = null; |
|
| 168 | if (!$this->isValidArrayOK( |
|
| 169 | $returnType, |
|
| 170 | '\AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TFunctionReturnTypeType', |
|
| 171 | $msg |
|
| 172 | )) { |
|
| 173 | throw new \InvalidArgumentException($msg); |
|
| 174 | } |
|
| 175 | $this->returnType = $returnType; |
|
| 176 | return $this; |
|
| 177 | } |
|
| 178 | ||
| 179 | /** |
|
| 180 | * Gets as aggregate |
|
| @@ 83-91 (lines=9) @@ | ||
| 80 | * @return self |
|
| 81 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionImportReturnTypeType $returnType |
|
| 82 | */ |
|
| 83 | public function addToReturnType(TFunctionImportReturnTypeType $returnType) |
|
| 84 | { |
|
| 85 | $msg = null; |
|
| 86 | if (!$returnType->isOK($msg)) { |
|
| 87 | throw new \InvalidArgumentException($msg); |
|
| 88 | } |
|
| 89 | $this->returnType[] = $returnType; |
|
| 90 | return $this; |
|
| 91 | } |
|
| 92 | ||
| 93 | /** |
|
| 94 | * isset returnType |
|
| @@ 76-84 (lines=9) @@ | ||
| 73 | * @return self |
|
| 74 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionReturnTypeType $returnType |
|
| 75 | */ |
|
| 76 | public function addToReturnType(TFunctionReturnTypeType $returnType) |
|
| 77 | { |
|
| 78 | $msg = null; |
|
| 79 | if (!$returnType->isOK($msg)) { |
|
| 80 | throw new \InvalidArgumentException($msg); |
|
| 81 | } |
|
| 82 | $this->returnType[] = $returnType; |
|
| 83 | return $this; |
|
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * isset returnType |
|