@@ -209,7 +209,6 @@ public static function clearDefaultTransport()
209
209
* Public constructor
210
210
*
211
211
* @param string $charset
212
- * @return void
213
212
*/
214
213
public function __construct ($ charset = null )
215
214
{
@@ -329,8 +328,10 @@ public function setEncodingOfHeaders($encoding)
329
328
/**
330
329
* Set the encoding of mail headers
331
330
*
332
- * @param string $encoding Zend_Mime::ENCODING_QUOTEDPRINTABLE or Zend_Mime::ENCODING_BASE64
331
+ * @param string $encoding Zend_Mime::ENCODING_QUOTEDPRINTABLE or
332
+ * Zend_Mime::ENCODING_BASE64
333
333
* @return Zend_Mail Provides fluent interface
334
+ * @throws Zend_Mail_Exception
334
335
*/
335
336
public function setHeaderEncoding ($ encoding )
336
337
{
@@ -378,7 +379,8 @@ public function setBodyText($txt, $charset = null, $encoding = Zend_Mime::ENCODI
378
379
/**
379
380
* Return text body Zend_Mime_Part or string
380
381
*
381
- * @param bool textOnly Whether to return just the body text content or the MIME part; defaults to false, the MIME part
382
+ * @param bool $textOnly Whether to return just the body text content or
383
+ * the MIME part; defaults to false, the MIME part
382
384
* @return false|Zend_Mime_Part|string
383
385
*/
384
386
public function getBodyText ($ textOnly = false )
@@ -562,7 +564,8 @@ protected function _addRecipientAndHeader($headerName, $email, $name)
562
564
}
563
565
564
566
/**
565
- * Adds To-header and recipient, $email can be an array, or a single string address
567
+ * Adds To-header and recipient, $email can be an array, or a single string
568
+ * address
566
569
*
567
570
* @param string|array $email
568
571
* @param string $name
@@ -583,7 +586,8 @@ public function addTo($email, $name='')
583
586
}
584
587
585
588
/**
586
- * Adds Cc-header and recipient, $email can be an array, or a single string address
589
+ * Adds Cc-header and recipient, $email can be an array, or a single string
590
+ * address
587
591
*
588
592
* @param string|array $email
589
593
* @param string $name
@@ -763,8 +767,8 @@ public function clearReplyTo()
763
767
/**
764
768
* Sets Default From-email and name of the message
765
769
*
766
- * @param string $email
767
- * @param string Optional $name
770
+ * @param string $email
771
+ * @param string $name optional
768
772
* @return void
769
773
*/
770
774
public static function setDefaultFrom ($ email , $ name = null )
@@ -796,6 +800,7 @@ public static function clearDefaultFrom()
796
800
* Sets From-name and -email based on the defaults
797
801
*
798
802
* @return Zend_Mail Provides fluent interface
803
+ * @throws Zend_Mail_Exception
799
804
*/
800
805
public function setFromToDefaultFrom () {
801
806
$ from = self ::getDefaultFrom ();
@@ -813,8 +818,8 @@ public function setFromToDefaultFrom() {
813
818
/**
814
819
* Sets Default ReplyTo-address and -name of the message
815
820
*
816
- * @param string $email
817
- * @param string Optional $name
821
+ * @param string $email
822
+ * @param string $name optional
818
823
* @return void
819
824
*/
820
825
public static function setDefaultReplyTo ($ email , $ name = null )
@@ -846,6 +851,7 @@ public static function clearDefaultReplyTo()
846
851
* Sets ReplyTo-name and -email based on the defaults
847
852
*
848
853
* @return Zend_Mail Provides fluent interface
854
+ * @throws Zend_Mail_Exception
849
855
*/
850
856
public function setReplyToFromDefault () {
851
857
$ replyTo = self ::getDefaultReplyTo ();
@@ -961,9 +967,10 @@ public function clearSubject()
961
967
/**
962
968
* Sets Date-header
963
969
*
964
- * @param timestamp |string|Zend_Date $date
970
+ * @param int |string|Zend_Date $date
965
971
* @return Zend_Mail Provides fluent interface
966
- * @throws Zend_Mail_Exception if called subsequent times or wrong date format.
972
+ * @throws Zend_Mail_Exception if called subsequent times or wrong date
973
+ * format.
967
974
*/
968
975
public function setDate ($ date = null )
969
976
{
@@ -1153,7 +1160,7 @@ public function addHeader($name, $value, $append = false)
1153
1160
/**
1154
1161
* Return mail headers
1155
1162
*
1156
- * @return void
1163
+ * @return array
1157
1164
*/
1158
1165
public function getHeaders ()
1159
1166
{
0 commit comments