@@ -125,16 +125,25 @@ public function __construct(
125125 $ this ->protocol = $ version ;
126126 }
127127
128+ /**
129+ * @return int
130+ */
128131 public function getStatusCode ()
129132 {
130133 return $ this ->statusCode ;
131134 }
132135
136+ /**
137+ * @return string
138+ */
133139 public function getReasonPhrase ()
134140 {
135141 return $ this ->reasonPhrase ;
136142 }
137143
144+ /**
145+ * @return static
146+ */
138147 public function withStatus ($ code , $ reasonPhrase = '' )
139148 {
140149 $ new = clone $ this ;
@@ -147,11 +156,17 @@ public function withStatus($code, $reasonPhrase = '')
147156 return $ new ;
148157 }
149158
159+ /**
160+ * @return string
161+ */
150162 public function getProtocolVersion ()
151163 {
152164 return $ this ->protocol ;
153165 }
154166
167+ /**
168+ * @return static
169+ */
155170 public function withProtocolVersion ($ version )
156171 {
157172 if ($ this ->protocol === $ version ) {
@@ -164,16 +179,25 @@ public function withProtocolVersion($version)
164179 return $ new ;
165180 }
166181
182+ /**
183+ * @return array
184+ */
167185 public function getHeaders ()
168186 {
169187 return $ this ->headers ;
170188 }
171189
190+ /**
191+ * @return bool
192+ */
172193 public function hasHeader ($ header )
173194 {
174195 return isset ($ this ->headerNames [strtolower ($ header )]);
175196 }
176197
198+ /**
199+ * @return array
200+ */
177201 public function getHeader ($ header )
178202 {
179203 $ header = strtolower ($ header );
@@ -187,11 +211,17 @@ public function getHeader($header)
187211 return $ this ->headers [$ header ];
188212 }
189213
214+ /**
215+ * @return string
216+ */
190217 public function getHeaderLine ($ header )
191218 {
192219 return implode (', ' , $ this ->getHeader ($ header ));
193220 }
194221
222+ /**
223+ * @return static
224+ */
195225 public function withHeader ($ header , $ value )
196226 {
197227 if (!is_array ($ value )) {
@@ -211,6 +241,9 @@ public function withHeader($header, $value)
211241 return $ new ;
212242 }
213243
244+ /**
245+ * @return static
246+ */
214247 public function withAddedHeader ($ header , $ value )
215248 {
216249 if (!is_array ($ value )) {
@@ -232,6 +265,9 @@ public function withAddedHeader($header, $value)
232265 return $ new ;
233266 }
234267
268+ /**
269+ * @return static
270+ */
235271 public function withoutHeader ($ header )
236272 {
237273 $ normalized = strtolower ($ header );
@@ -248,6 +284,9 @@ public function withoutHeader($header)
248284 return $ new ;
249285 }
250286
287+ /**
288+ * @return \StreamInterface
289+ */
251290 public function getBody ()
252291 {
253292 if (!$ this ->stream ) {
@@ -257,6 +296,9 @@ public function getBody()
257296 return $ this ->stream ;
258297 }
259298
299+ /**
300+ * @return static
301+ */
260302 public function withBody (StreamInterface $ body )
261303 {
262304 if ($ body === $ this ->stream ) {
0 commit comments