From 421cb8bc9b537a9425b0ec00993fbadca371ce31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 30 May 2016 20:00:30 +0200 Subject: [PATCH] Add Email::getBody() --- .../files/lib/system/email/Email.class.php | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/wcfsetup/install/files/lib/system/email/Email.class.php b/wcfsetup/install/files/lib/system/email/Email.class.php index 492fe40354..15f1f71dd2 100644 --- a/wcfsetup/install/files/lib/system/email/Email.class.php +++ b/wcfsetup/install/files/lib/system/email/Email.class.php @@ -350,15 +350,6 @@ class Email { $this->extraHeaders[] = [$header, EmailGrammar::encodeQuotedPrintableHeader($value)]; } - /** - * Sets the body of this email. - * - * @param AbstractMimePart $body - */ - public function setBody(AbstractMimePart $body) { - $this->body = $body; - } - /** * Returns an array of [ name, value ] tuples representing the email's headers. * Note: You must have set a Subject and at least one recipient, otherwise fetching the @@ -431,6 +422,24 @@ class Email { }, $this->getHeaders())); } + /** + * Sets the body of this email. + * + * @param AbstractMimePart $body + */ + public function setBody(AbstractMimePart $body) { + $this->body = $body; + } + + /** + * Returns the body of this email. + * + * @return AbstractMimePart + */ + public function getBody() { + return $this->body; + } + /** * Returns the email's body as a string. * -- 2.20.1