| @@ 379-388 (lines=10) @@ | ||
| 376 | * @param string $enum |
|
| 377 | * @return self |
|
| 378 | */ |
|
| 379 | public function setEnum($enum) |
|
| 380 | { |
|
| 381 | $msg = null; |
|
| 382 | if (null != $enum && !$this->isTQualifiedNameValid($enum)) { |
|
| 383 | $msg = "Enum must be a valid TQualifiedName"; |
|
| 384 | throw new \InvalidArgumentException($msg); |
|
| 385 | } |
|
| 386 | $this->enum = $enum; |
|
| 387 | return $this; |
|
| 388 | } |
|
| 389 | ||
| 390 | /** |
|
| 391 | * Gets as path |
|
| @@ 406-415 (lines=10) @@ | ||
| 403 | * @param string $path |
|
| 404 | * @return self |
|
| 405 | */ |
|
| 406 | public function setPath($path) |
|
| 407 | { |
|
| 408 | $msg = null; |
|
| 409 | if (null != $path && !$this->isTQualifiedNameValid($path)) { |
|
| 410 | $msg = "Path must be a valid TQualifiedName"; |
|
| 411 | throw new \InvalidArgumentException($msg); |
|
| 412 | } |
|
| 413 | $this->path = $path; |
|
| 414 | return $this; |
|
| 415 | } |
|
| 416 | ||
| 417 | /** |
|
| 418 | * Gets as if |
|
| @@ 327-336 (lines=10) @@ | ||
| 324 | * @param string $enum |
|
| 325 | * @return self |
|
| 326 | */ |
|
| 327 | public function setEnum($enum) |
|
| 328 | { |
|
| 329 | $msg = null; |
|
| 330 | if (null != $enum && !$this->isTQualifiedNameValid($enum)) { |
|
| 331 | $msg = "Enum must be a valid TQualifiedName"; |
|
| 332 | throw new \InvalidArgumentException($msg); |
|
| 333 | } |
|
| 334 | $this->enum = $enum; |
|
| 335 | return $this; |
|
| 336 | } |
|
| 337 | ||
| 338 | /** |
|
| 339 | * Gets as path |
|
| @@ 354-363 (lines=10) @@ | ||
| 351 | * @param string $path |
|
| 352 | * @return self |
|
| 353 | */ |
|
| 354 | public function setPath($path) |
|
| 355 | { |
|
| 356 | $msg = null; |
|
| 357 | if (null != $path && !$this->isTQualifiedNameValid($path)) { |
|
| 358 | $msg = "Path must be a valid TQualifiedName"; |
|
| 359 | throw new \InvalidArgumentException($msg); |
|
| 360 | } |
|
| 361 | $this->path = $path; |
|
| 362 | return $this; |
|
| 363 | } |
|
| 364 | ||
| 365 | public function isGInlineExpressionsValid(&$msg = null) |
|
| 366 | { |
|
| @@ 40-49 (lines=10) @@ | ||
| 37 | * @param string $baseType |
|
| 38 | * @return self |
|
| 39 | */ |
|
| 40 | public function setBaseType($baseType) |
|
| 41 | { |
|
| 42 | $msg = null; |
|
| 43 | if (null != $baseType && !$this->isTQualifiedNameValid($baseType)) { |
|
| 44 | $msg = "Base type must be a valid TQualifiedName"; |
|
| 45 | throw new \InvalidArgumentException($msg); |
|
| 46 | } |
|
| 47 | $this->baseType = $baseType; |
|
| 48 | return $this; |
|
| 49 | } |
|
| 50 | ||
| 51 | /** |
|
| 52 | * Gets as abstract |
|