@@ -104,6 +104,9 @@ |
||
| 104 | 104 | return $this->decode($body); |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | + /** |
|
| 108 | + * @param string $content |
|
| 109 | + */ |
|
| 107 | 110 | public function decode( $content ) { |
| 108 | 111 | return quoted_printable_decode($content); |
| 109 | 112 | } |
@@ -32,6 +32,9 @@ discard block |
||
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param boolean $clear |
|
| 37 | + */ |
|
| 35 | 38 | protected function flags( $flags, $clear ) { |
| 36 | 39 | $cb = [$this->imap(), $clear ? 'clearflag' : 'setflag']; |
| 37 | 40 | |
@@ -76,6 +79,9 @@ discard block |
||
| 76 | 79 | return $this->headers; |
| 77 | 80 | } |
| 78 | 81 | |
| 82 | + /** |
|
| 83 | + * @param string $name |
|
| 84 | + */ |
|
| 79 | 85 | public function header( $name ) { |
| 80 | 86 | $headers = $this->headers(); |
| 81 | 87 | return @$headers[ strtolower($name) ]; |
@@ -140,6 +146,9 @@ discard block |
||
| 140 | 146 | return $parts; |
| 141 | 147 | } |
| 142 | 148 | |
| 149 | + /** |
|
| 150 | + * @param integer $index |
|
| 151 | + */ |
|
| 143 | 152 | public function part( $index ) { |
| 144 | 153 | $parts = $this->parts(); |
| 145 | 154 | return @$parts[$index]; |