mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Rename EmailTemplate $message to $body to avoid collision with Resource::$message
This commit is contained in:
1 parent
9813afb2d7
commit
edcb0aa328
2 files changed
+5
-5
No files matched your search
@@ -3362,7 +3362,7 @@ class Appwrite extends Destination
|
||||
$existing = $templates[$key] ?? [];
|
||||
|
||||
$existing['subject'] = $resource->getSubject();
|
||||
$existing['message'] = $resource->getMessage();
|
||||
$existing['message'] = $resource->getBody();
|
||||
$existing['senderName'] = $resource->getSenderName();
|
||||
$existing['senderEmail'] = $resource->getSenderEmail();
|
||||
$existing['replyToEmail'] = $resource->getReplyToEmail();
|
||||
|
||||
@@ -17,7 +17,7 @@ class EmailTemplate extends Resource
|
||||
private readonly string $templateId,
|
||||
private readonly string $locale,
|
||||
private readonly string $subject,
|
||||
private readonly string $message,
|
||||
private readonly string $body,
|
||||
private readonly string $senderName = '',
|
||||
private readonly string $senderEmail = '',
|
||||
private readonly string $replyToEmail = '',
|
||||
@@ -60,7 +60,7 @@ class EmailTemplate extends Resource
|
||||
'templateId' => $this->templateId,
|
||||
'locale' => $this->locale,
|
||||
'subject' => $this->subject,
|
||||
'message' => $this->message,
|
||||
'message' => $this->body,
|
||||
'senderName' => $this->senderName,
|
||||
'senderEmail' => $this->senderEmail,
|
||||
'replyToEmail' => $this->replyToEmail,
|
||||
@@ -95,9 +95,9 @@ class EmailTemplate extends Resource
|
||||
return $this->subject;
|
||||
}
|
||||
|
||||
public function getMessage(): string
|
||||
public function getBody(): string
|
||||
{
|
||||
return $this->message;
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
public function getSenderName(): string
|
||||
|
||||
Reference in new issue
Block a user