Add Email::getBody()
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 30 May 2016 18:00:30 +0000 (20:00 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 30 May 2016 18:00:30 +0000 (20:00 +0200)
wcfsetup/install/files/lib/system/email/Email.class.php

index 492fe40354eadb89b5ce2758bc6ca4a83dacb094..15f1f71dd2cee0cedf4bb399a09e5798554b815e 100644 (file)
@@ -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.
         *