| 1: | <?php declare(strict_types=1); |
| 2: | |
| 3: | namespace Salient\PHPDoc\Tag; |
| 4: | |
| 5: | |
| 6: | |
| 7: | |
| 8: | class ErrorTag extends GenericTag |
| 9: | { |
| 10: | protected string $Message; |
| 11: | |
| 12: | |
| 13: | |
| 14: | |
| 15: | public function __construct( |
| 16: | string $tag, |
| 17: | string $message, |
| 18: | ?string $description = null, |
| 19: | ?string $class = null, |
| 20: | ?string $member = null |
| 21: | ) { |
| 22: | parent::__construct($tag, $description, $class, $member); |
| 23: | $this->Message = $this->filterString($message, 'message'); |
| 24: | } |
| 25: | |
| 26: | |
| 27: | |
| 28: | |
| 29: | public function getMessage(): string |
| 30: | { |
| 31: | return $this->Message; |
| 32: | } |
| 33: | } |
| 34: | |