src/MetadataV3/edm/Groups/TCommonPropertyAttributesTrait.php 1 location
|
@@ 213-222 (lines=10) @@
|
210 |
|
* @param string $maxLength |
211 |
|
* @return self |
212 |
|
*/ |
213 |
|
public function setMaxLength($maxLength) |
214 |
|
{ |
215 |
|
$msg = null; |
216 |
|
if (null != $maxLength && !$this->isTMaxLengthFacetValid($maxLength)) { |
217 |
|
$msg = "Max length must be a valid TMaxLengthFacet"; |
218 |
|
throw new \InvalidArgumentException($msg); |
219 |
|
} |
220 |
|
$this->maxLength = $maxLength; |
221 |
|
return $this; |
222 |
|
} |
223 |
|
|
224 |
|
/** |
225 |
|
* Gets as fixedLength |
src/MetadataV3/edm/Groups/TFacetAttributesTrait.php 1 location
|
@@ 128-137 (lines=10) @@
|
125 |
|
* @param string $maxLength |
126 |
|
* @return self |
127 |
|
*/ |
128 |
|
public function setMaxLength($maxLength) |
129 |
|
{ |
130 |
|
$msg = null; |
131 |
|
if (null != $maxLength && !$this->isTMaxLengthFacetValid($maxLength)) { |
132 |
|
$msg = "Max length must be a valid TMaxLengthFacet"; |
133 |
|
throw new \InvalidArgumentException($msg); |
134 |
|
} |
135 |
|
$this->maxLength = $maxLength; |
136 |
|
return $this; |
137 |
|
} |
138 |
|
|
139 |
|
/** |
140 |
|
* Gets as fixedLength |
src/MetadataV3/edm/Groups/TFunctionImportParameterAttributesTrait.php 1 location
|
@@ 150-159 (lines=10) @@
|
147 |
|
* @param string $maxLength |
148 |
|
* @return self |
149 |
|
*/ |
150 |
|
public function setMaxLength($maxLength) |
151 |
|
{ |
152 |
|
$msg = null; |
153 |
|
if (null != $maxLength && !$this->isTMaxLengthFacetValid($maxLength)) { |
154 |
|
$msg = "Max length must be a valid TMaxLengthFacet"; |
155 |
|
throw new \InvalidArgumentException($msg); |
156 |
|
} |
157 |
|
$this->maxLength = $maxLength; |
158 |
|
return $this; |
159 |
|
} |
160 |
|
|
161 |
|
/** |
162 |
|
* Gets as precision |
src/MetadataV3/edm/ssdl/TEntityPropertyType.php 1 location
|
@@ 205-213 (lines=9) @@
|
202 |
|
* @param string $maxLength |
203 |
|
* @return self |
204 |
|
*/ |
205 |
|
public function setMaxLength($maxLength) |
206 |
|
{ |
207 |
|
if (null != $maxLength && !(is_numeric($maxLength) && 0 < $maxLength)) { |
208 |
|
$msg = "Max length must be positive and numeric"; |
209 |
|
throw new \InvalidArgumentException($msg); |
210 |
|
} |
211 |
|
$this->maxLength = $maxLength; |
212 |
|
return $this; |
213 |
|
} |
214 |
|
|
215 |
|
/** |
216 |
|
* Gets as fixedLength |
src/MetadataV3/edm/ssdl/TPropertyType.php 1 location
|
@@ 200-209 (lines=10) @@
|
197 |
|
* @param string $maxLength |
198 |
|
* @return self |
199 |
|
*/ |
200 |
|
public function setMaxLength($maxLength) |
201 |
|
{ |
202 |
|
$msg = null; |
203 |
|
if (null != $maxLength && !(is_numeric($maxLength) && 0 <= $maxLength)) { |
204 |
|
$msg = "Max length must be numeric and non-negative"; |
205 |
|
throw new \InvalidArgumentException($msg); |
206 |
|
} |
207 |
|
$this->maxLength = $maxLength; |
208 |
|
return $this; |
209 |
|
} |
210 |
|
|
211 |
|
/** |
212 |
|
* Gets as fixedLength |