| @@ 506-528 (lines=23) @@ | ||
| 503 | * @return bool |
|
| 504 | * @since 8.2.0 |
|
| 505 | */ |
|
| 506 | public function isValidParsed() { |
|
| 507 | if ($this->getRichSubject() !== '' || !empty($this->getRichSubjectParameters())) { |
|
| 508 | try { |
|
| 509 | $this->richValidator->validate($this->getRichSubject(), $this->getRichSubjectParameters()); |
|
| 510 | } catch (InvalidObjectExeption $e) { |
|
| 511 | return false; |
|
| 512 | } |
|
| 513 | } |
|
| 514 | ||
| 515 | if ($this->getRichMessage() !== '' || !empty($this->getRichMessageParameters())) { |
|
| 516 | try { |
|
| 517 | $this->richValidator->validate($this->getRichMessage(), $this->getRichMessageParameters()); |
|
| 518 | } catch (InvalidObjectExeption $e) { |
|
| 519 | return false; |
|
| 520 | } |
|
| 521 | } |
|
| 522 | ||
| 523 | return |
|
| 524 | $this->isValidCommon() |
|
| 525 | && |
|
| 526 | $this->getParsedSubject() !== '' |
|
| 527 | ; |
|
| 528 | } |
|
| 529 | ||
| 530 | /** |
|
| 531 | * @return bool |
|
| @@ 545-567 (lines=23) @@ | ||
| 542 | * @return bool |
|
| 543 | * @since 8.2.0 |
|
| 544 | */ |
|
| 545 | public function isValidParsed() { |
|
| 546 | if ($this->getRichSubject() !== '' || !empty($this->getRichSubjectParameters())) { |
|
| 547 | try { |
|
| 548 | $this->richValidator->validate($this->getRichSubject(), $this->getRichSubjectParameters()); |
|
| 549 | } catch (InvalidObjectExeption $e) { |
|
| 550 | return false; |
|
| 551 | } |
|
| 552 | } |
|
| 553 | ||
| 554 | if ($this->getRichMessage() !== '' || !empty($this->getRichMessageParameters())) { |
|
| 555 | try { |
|
| 556 | $this->richValidator->validate($this->getRichMessage(), $this->getRichMessageParameters()); |
|
| 557 | } catch (InvalidObjectExeption $e) { |
|
| 558 | return false; |
|
| 559 | } |
|
| 560 | } |
|
| 561 | ||
| 562 | return |
|
| 563 | $this->isValidCommon() |
|
| 564 | && |
|
| 565 | $this->getParsedSubject() !== '' |
|
| 566 | ; |
|
| 567 | } |
|
| 568 | ||
| 569 | /** |
|
| 570 | * @return bool |
|