@@ 179-187 (lines=9) @@ | ||
176 | * @param string $defaultValue |
|
177 | * @return self |
|
178 | */ |
|
179 | public function setDefaultValue($defaultValue) |
|
180 | { |
|
181 | if (null != $defaultValue && !$this->isStringNotNullOrEmpty($defaultValue)) { |
|
182 | $msg = "Default value cannot be empty"; |
|
183 | throw new \InvalidArgumentException($msg); |
|
184 | } |
|
185 | $this->defaultValue = $defaultValue; |
|
186 | return $this; |
|
187 | } |
|
188 | ||
189 | /** |
|
190 | * Gets as maxLength |
|
@@ 327-335 (lines=9) @@ | ||
324 | * @param string $collation |
|
325 | * @return self |
|
326 | */ |
|
327 | public function setCollation($collation) |
|
328 | { |
|
329 | if (null != $collation && !$this->isStringNotNullOrEmpty($collation)) { |
|
330 | $msg = "Collation cannot be empty"; |
|
331 | throw new \InvalidArgumentException($msg); |
|
332 | } |
|
333 | $this->collation = $collation; |
|
334 | return $this; |
|
335 | } |
|
336 | ||
337 | /** |
|
338 | * Gets as sRID |
|
@@ 353-361 (lines=9) @@ | ||
350 | * @param string $sRID |
|
351 | * @return self |
|
352 | */ |
|
353 | public function setSRID($sRID) |
|
354 | { |
|
355 | if (null != $sRID && !$this->isStringNotNullOrEmpty($sRID)) { |
|
356 | $msg = "SRID cannot be empty"; |
|
357 | throw new \InvalidArgumentException($msg); |
|
358 | } |
|
359 | $this->sRID = $sRID; |
|
360 | return $this; |
|
361 | } |
|
362 | ||
363 | /** |
|
364 | * Gets as storeGeneratedPattern |
@@ 74-83 (lines=10) @@ | ||
71 | * @param string $name |
|
72 | * @return self |
|
73 | */ |
|
74 | public function setName($name) |
|
75 | { |
|
76 | $msg = null; |
|
77 | if (!$this->isStringNotNullOrEmpty($name)) { |
|
78 | $msg = "Name cannot be null or empty"; |
|
79 | throw new \InvalidArgumentException($msg); |
|
80 | } |
|
81 | $this->name = $name; |
|
82 | return $this; |
|
83 | } |
|
84 | ||
85 | /** |
|
86 | * Gets as type |
|
@@ 229-238 (lines=10) @@ | ||
226 | * @param string $sRID |
|
227 | * @return self |
|
228 | */ |
|
229 | public function setSRID($sRID) |
|
230 | { |
|
231 | $msg = null; |
|
232 | if (null != $sRID && !$this->isStringNotNullOrEmpty($sRID)) { |
|
233 | $msg = "SRID cannot be empty"; |
|
234 | throw new \InvalidArgumentException($msg); |
|
235 | } |
|
236 | $this->sRID = $sRID; |
|
237 | return $this; |
|
238 | } |
|
239 | ||
240 | /** |
|
241 | * Gets as documentation |
@@ 173-182 (lines=10) @@ | ||
170 | * @param string $defaultValue |
|
171 | * @return self |
|
172 | */ |
|
173 | public function setDefaultValue($defaultValue) |
|
174 | { |
|
175 | $msg = null; |
|
176 | if (null != $defaultValue && !$this->isStringNotNullOrEmpty($defaultValue)) { |
|
177 | $msg = "Default value cannot be empty"; |
|
178 | throw new \InvalidArgumentException($msg); |
|
179 | } |
|
180 | $this->defaultValue = $defaultValue; |
|
181 | return $this; |
|
182 | } |
|
183 | ||
184 | /** |
|
185 | * Gets as maxLength |
|
@@ 325-334 (lines=10) @@ | ||
322 | * @param string $collation |
|
323 | * @return self |
|
324 | */ |
|
325 | public function setCollation($collation) |
|
326 | { |
|
327 | $msg = null; |
|
328 | if (null != $collation && !$this->isStringNotNullOrEmpty($collation)) { |
|
329 | $msg = "Collation value cannot be empty"; |
|
330 | throw new \InvalidArgumentException($msg); |
|
331 | } |
|
332 | $this->collation = $collation; |
|
333 | return $this; |
|
334 | } |
|
335 | ||
336 | /** |
|
337 | * Gets as sRID |
|
@@ 352-361 (lines=10) @@ | ||
349 | * @param string $sRID |
|
350 | * @return self |
|
351 | */ |
|
352 | public function setSRID($sRID) |
|
353 | { |
|
354 | $msg = null; |
|
355 | if (null != $sRID && !$this->isStringNotNullOrEmpty($sRID)) { |
|
356 | $msg = "SRID value cannot be empty"; |
|
357 | throw new \InvalidArgumentException($msg); |
|
358 | } |
|
359 | $this->sRID = $sRID; |
|
360 | return $this; |
|
361 | } |
|
362 | ||
363 | public function isOK(&$msg = null) |
|
364 | { |