diff options
author | Joas Schilling <coding@schilljs.com> | 2019-07-26 18:10:36 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-07-30 10:34:47 +0300 |
commit | 25aae9f512c8ce291834166a438d220b1e7d62cc (patch) | |
tree | 7d503f498c289ee604fa05962a9d9fa420f110b0 /lib/Model | |
parent | 1005aaab4932c4f32f85d7ad9bca6e30cba80293 (diff) |
Make sure we don't change the comments object as that will update the database
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Model')
-rw-r--r-- | lib/Model/Message.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Model/Message.php b/lib/Model/Message.php index acb3848d9..a7e1f3ea5 100644 --- a/lib/Model/Message.php +++ b/lib/Model/Message.php @@ -52,6 +52,9 @@ class Message { /** @var string */ protected $message = ''; + /** @var string */ + protected $rawMessage = ''; + /** @var array */ protected $parameters = []; @@ -106,9 +109,10 @@ class Message { return $this->visible; } - public function setMessage(string $message, array $parameters): void { + public function setMessage(string $message, array $parameters, string $rawMessage = ''): void { $this->message = $message; $this->parameters = $parameters; + $this->rawMessage = $rawMessage; } public function getMessage(): string { @@ -119,6 +123,10 @@ class Message { return $this->parameters; } + public function getMessageRaw(): string { + return $this->rawMessage; + } + public function setMessageType(string $type): void { $this->type = $type; } |