@@ -36,13 +36,14 @@ discard block |
||
36 | 36 | return $parts; |
37 | 37 | } |
38 | 38 | |
39 | - /** @return IMAPMessagePart */ |
|
39 | + /** @param integer $index |
|
40 | +/** @return IMAPMessagePart */ |
|
40 | 41 | public function part( $index ) { |
41 | 42 | $parts = $this->parts(); |
42 | 43 | return @$parts[$index]; |
43 | 44 | } |
44 | 45 | |
45 | - /** @return array */ |
|
46 | + /** @return string */ |
|
46 | 47 | public function parameters() { |
47 | 48 | if ( $this->parameters === null ) { |
48 | 49 | $this->parameters = []; |
@@ -61,14 +62,15 @@ discard block |
||
61 | 62 | return $this->parameters; |
62 | 63 | } |
63 | 64 | |
64 | - /** @return mixed */ |
|
65 | + /** @param string $name |
|
66 | +/** @return mixed */ |
|
65 | 67 | public function parameter( $name ) { |
66 | 68 | $parameters = $this->parameters(); |
67 | 69 | $structure = $this->structure(); |
68 | 70 | return @$parameters[ strtolower($name) ] ?: @$structure->$name; |
69 | 71 | } |
70 | 72 | |
71 | - /** @return string[][] */ |
|
73 | + /** @return string */ |
|
72 | 74 | public function headers() { |
73 | 75 | if ( $this->headers === null ) { |
74 | 76 | $header = $this->headerString(); |
@@ -89,7 +91,8 @@ discard block |
||
89 | 91 | return $this->headers; |
90 | 92 | } |
91 | 93 | |
92 | - /** @return string|string[] */ |
|
94 | + /** @param string $name |
|
95 | +/** @return string|string[] */ |
|
93 | 96 | public function header( $name ) { |
94 | 97 | $headers = $this->headers(); |
95 | 98 | $header = $headers[strtolower($name)] ?? [null]; |
@@ -115,7 +118,9 @@ discard block |
||
115 | 118 | } |
116 | 119 | } |
117 | 120 | |
118 | - /** @return string */ |
|
121 | + /** @param string[] $subtypes |
|
122 | +/** @return string |
|
123 | +* @param boolean $recursive */ |
|
119 | 124 | public function subtypeContent( $subtypes, $recursive ) { |
120 | 125 | if ( $part = $this->subtypePart($subtypes, $recursive) ) { |
121 | 126 | return $part->content(); |