From: Tim Düsterhus Date: Mon, 30 May 2016 18:00:30 +0000 (+0200) Subject: Add Email::getBody() X-Git-Tag: 3.0.0_Beta_1~1564 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=421cb8bc9b537a9425b0ec00993fbadca371ce31;p=GitHub%2FWoltLab%2FWCF.git Add Email::getBody() --- 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. *