src/MetadataV3/edm/ssdl/TFunctionType.php 2 locations
|
@@ 384-392 (lines=9) @@
|
| 381 |
|
* @return self |
| 382 |
|
* @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TParameterType $parameter |
| 383 |
|
*/ |
| 384 |
|
public function addToParameter(TParameterType $parameter) |
| 385 |
|
{ |
| 386 |
|
$msg = null; |
| 387 |
|
if (!$parameter->isOK($msg)) { |
| 388 |
|
throw new \InvalidArgumentException($msg); |
| 389 |
|
} |
| 390 |
|
$this->parameter[] = $parameter; |
| 391 |
|
return $this; |
| 392 |
|
} |
| 393 |
|
|
| 394 |
|
/** |
| 395 |
|
* isset parameter |
|
@@ 432-444 (lines=13) @@
|
| 429 |
|
* @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TParameterType[] $parameter |
| 430 |
|
* @return self |
| 431 |
|
*/ |
| 432 |
|
public function setParameter(array $parameter) |
| 433 |
|
{ |
| 434 |
|
$msg = null; |
| 435 |
|
if (!$this->isValidArrayOK( |
| 436 |
|
$parameter, |
| 437 |
|
'\AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TParameterType', |
| 438 |
|
$msg |
| 439 |
|
)) { |
| 440 |
|
throw new \InvalidArgumentException($msg); |
| 441 |
|
} |
| 442 |
|
$this->parameter = $parameter; |
| 443 |
|
return $this; |
| 444 |
|
} |
| 445 |
|
|
| 446 |
|
/** |
| 447 |
|
* Adds as commandText |
src/MetadataV3/edm/EntityContainer/FunctionImportAnonymousType.php 1 location
|
@@ 60-68 (lines=9) @@
|
| 57 |
|
* @return self |
| 58 |
|
* @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionImportParameterType $parameter |
| 59 |
|
*/ |
| 60 |
|
public function addToParameter(TFunctionImportParameterType $parameter) |
| 61 |
|
{ |
| 62 |
|
$msg = null; |
| 63 |
|
if (!$parameter->isOK($msg)) { |
| 64 |
|
throw new \InvalidArgumentException($msg); |
| 65 |
|
} |
| 66 |
|
$this->parameter[] = $parameter; |
| 67 |
|
return $this; |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
/** |
| 71 |
|
* isset parameter |
src/MetadataV3/edm/TAnonymousFunctionExpressionType/ParametersAnonymousType.php 1 location
|
@@ 26-34 (lines=9) @@
|
| 23 |
|
* @return self |
| 24 |
|
* @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionParameterType $parameter |
| 25 |
|
*/ |
| 26 |
|
public function addToParameter(TFunctionParameterType $parameter) |
| 27 |
|
{ |
| 28 |
|
$msg = null; |
| 29 |
|
if (!$parameter->isOK($msg)) { |
| 30 |
|
throw new \InvalidArgumentException($msg); |
| 31 |
|
} |
| 32 |
|
$this->parameter[] = $parameter; |
| 33 |
|
return $this; |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
/** |
| 37 |
|
* isset parameter |
src/MetadataV3/edm/TEntityTypeType.php 1 location
|
@@ 186-197 (lines=12) @@
|
| 183 |
|
* @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TPropertyRefType[] $key |
| 184 |
|
* @return self |
| 185 |
|
*/ |
| 186 |
|
public function setKey(array $key) |
| 187 |
|
{ |
| 188 |
|
if (!$this->isValidArrayOK( |
| 189 |
|
$key, |
| 190 |
|
'\AlgoWeb\ODataMetadata\MetadataV3\edm\TPropertyRefType', |
| 191 |
|
$msg |
| 192 |
|
)) { |
| 193 |
|
throw new \InvalidArgumentException($msg); |
| 194 |
|
} |
| 195 |
|
$this->key = $key; |
| 196 |
|
return $this; |
| 197 |
|
} |
| 198 |
|
|
| 199 |
|
/** |
| 200 |
|
* Adds as property |