@@ -172,6 +172,9 @@ |
||
| 172 | 172 | |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | + /** |
|
| 176 | + * @param integer $code |
|
| 177 | + */ |
|
| 175 | 178 | protected function sendReply($code, $message, $close = false) |
| 176 | 179 | { |
| 177 | 180 | $out = ''; |
@@ -25,18 +25,21 @@ discard block |
||
| 25 | 25 | /** |
| 26 | 26 | * This function will throw an exception since replacing headers is will mangle SMTP messages. |
| 27 | 27 | * @throws \Exception |
| 28 | + * @return \GuzzleHttp\Psr7\MessageTrait |
|
| 28 | 29 | */ |
| 29 | 30 | public function withHeader($name, $value); |
| 30 | 31 | |
| 31 | 32 | /** |
| 32 | 33 | * This function will throw an exception since removing headers is will mangle SMTP messages. |
| 33 | 34 | * @throws \Exception |
| 35 | + * @return \GuzzleHttp\Psr7\MessageTrait |
|
| 34 | 36 | */ |
| 35 | 37 | public function withoutHeader($name); |
| 36 | 38 | |
| 37 | 39 | /** |
| 38 | 40 | * This function will throw an exception since removing headers is will mangle SMTP messages. |
| 39 | 41 | * @throws \Exception |
| 42 | + * @return string |
|
| 40 | 43 | */ |
| 41 | 44 | public function getHeaderLine($name); |
| 42 | 45 | |
@@ -96,7 +99,6 @@ discard block |
||
| 96 | 99 | * new and/or updated header and value. |
| 97 | 100 | * |
| 98 | 101 | * @return self |
| 99 | - * @param array $recipients Array of email => name pairs. |
|
| 100 | 102 | * @throws \InvalidArgumentException for invalid email. |
| 101 | 103 | */ |
| 102 | 104 | public function withAddedRecipient($email, $name = null); |
@@ -11,6 +11,10 @@ |
||
| 11 | 11 | throw new \Exception('SMTP Message does not support replacing headers.'); |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param string $name |
|
| 16 | + * @param string $value |
|
| 17 | + */ |
|
| 14 | 18 | public function withAddedHeader($name, $value) |
| 15 | 19 | { |
| 16 | 20 | $new = clone $this; |
@@ -38,7 +38,6 @@ |
||
| 38 | 38 | * new and/or updated header and value. |
| 39 | 39 | * |
| 40 | 40 | * @return self |
| 41 | - * @param array $recipients Array of email => name pairs. |
|
| 42 | 41 | * @throws \InvalidArgumentException for invalid email. |
| 43 | 42 | */ |
| 44 | 43 | public function withAddedRecipient($email, $name = null); |