src/MetadataV3/edm/Groups/TFunctionImportParameterAttributesTrait.php 1 location
|
@@ 126-129 (lines=4) @@
|
| 123 |
|
public function setMode($mode) |
| 124 |
|
{ |
| 125 |
|
$msg = null; |
| 126 |
|
if (null != $mode && !$this->isTParameterModeValid($mode)) { |
| 127 |
|
$msg = "Mode must be a valid TParameterMode"; |
| 128 |
|
throw new \InvalidArgumentException($msg); |
| 129 |
|
} |
| 130 |
|
$this->mode = $mode; |
| 131 |
|
return $this; |
| 132 |
|
} |
src/MetadataV3/edm/ssdl/TParameterType.php 1 location
|
@@ 139-142 (lines=4) @@
|
| 136 |
|
$msg = "Mode cannot be empty"; |
| 137 |
|
throw new \InvalidArgumentException($msg); |
| 138 |
|
} |
| 139 |
|
if (null != $mode && !$this->isTParameterModeValid($mode)) { |
| 140 |
|
$msg = "Mode must be a valid TParameterMode"; |
| 141 |
|
throw new \InvalidArgumentException($msg); |
| 142 |
|
} |
| 143 |
|
$this->mode = $mode; |
| 144 |
|
return $this; |
| 145 |
|
} |