| @@ 452-461 (lines=10) @@ | ||
| 449 | * @return self |
|
| 450 | * @param string $commandText |
|
| 451 | */ |
|
| 452 | public function addToCommandText($commandText) |
|
| 453 | { |
|
| 454 | $msg = null; |
|
| 455 | if (!$this->isTCommandTextValid($commandText)) { |
|
| 456 | $msg = "All command text entries must be valid TCommandText"; |
|
| 457 | throw new \InvalidArgumentException($msg); |
|
| 458 | } |
|
| 459 | $this->commandText[] = $commandText; |
|
| 460 | return $this; |
|
| 461 | } |
|
| 462 | ||
| 463 | /** |
|
| 464 | * isset commandText |
|
| @@ 501-511 (lines=11) @@ | ||
| 498 | * @param string $commandText |
|
| 499 | * @return self |
|
| 500 | */ |
|
| 501 | public function setCommandText(array $commandText) |
|
| 502 | { |
|
| 503 | foreach ($commandText as $command) { |
|
| 504 | if (!$this->isTCommandTextValid($command)) { |
|
| 505 | $msg = "All command text entries must be valid TCommandText"; |
|
| 506 | throw new \InvalidArgumentException($msg); |
|
| 507 | } |
|
| 508 | } |
|
| 509 | $this->commandText = $commandText; |
|
| 510 | return $this; |
|
| 511 | } |
|
| 512 | ||
| 513 | public function isOK(&$msg = null) |
|
| 514 | { |
|