@@ -29,12 +29,11 @@ public function getProtocolVersion(): string
2929 return $ this ->response ->getProtocolVersion ();
3030 }
3131
32- /**
33- * @return MessageInterface
34- */
3532 public function withProtocolVersion ($ version ): MessageInterface
3633 {
37- return $ this ->response ->withProtocolVersion ($ version );
34+ $ this ->response ->withProtocolVersion ($ version );
35+
36+ return $ this ;
3837 }
3938
4039 public function getHeaders (): array
@@ -57,61 +56,53 @@ public function getHeaderLine(string $name): string
5756 return $ this ->response ->getHeaderLine ($ name );
5857 }
5958
60- /**
61- * @return MessageInterface
62- */
6359 public function withHeader (string $ name , $ value ): MessageInterface
6460 {
65- return $ this ->response ->withHeader ($ name , $ value );
61+ $ this ->response ->withHeader ($ name , $ value );
62+
63+ return $ this ;
6664 }
6765
68- /**
69- * @return MessageInterface
70- */
7166 public function withAddedHeader (string $ name , $ value ): MessageInterface
7267 {
73- return $ this ->response ->withAddedHeader ($ name , $ value );
68+ $ this ->response ->withAddedHeader ($ name , $ value );
69+
70+ return $ this ;
7471 }
7572
76- /**
77- * @return MessageInterface
78- */
7973 public function withoutHeader (string $ name ): MessageInterface
8074 {
81- return $ this ->response ->withoutHeader ($ name );
75+ $ this ->response ->withoutHeader ($ name );
76+
77+ return $ this ;
8278 }
8379
84- /**
85- * @return StreamInterface
86- */
8780 public function getBody (): StreamInterface
8881 {
8982 return $ this ->response ->getBody ();
9083 }
9184
92- /**
93- * @return MessageInterface
94- */
9585 public function withBody (StreamInterface $ body ): MessageInterface
9686 {
97- return $ this ->response ->withBody ($ body );
87+ $ this ->response ->withBody ($ body );
88+
89+ return $ this ;
9890 }
9991
10092 public function getStatusCode (): int
10193 {
10294 return $ this ->response ->getStatusCode ();
10395 }
10496
105- /**
106- * @return ResponseInterface
107- */
10897 public function withStatus (int $ code , string $ reasonPhrase = '' ): ResponseInterface
10998 {
110- return $ this ->response ->withStatus ($ code , $ reasonPhrase );
99+ $ this ->response ->withStatus ($ code , $ reasonPhrase );
100+
101+ return $ this ;
111102 }
112103
113104 public function getReasonPhrase (): string
114105 {
115106 return $ this ->response ->getReasonPhrase ();
116107 }
117- }
108+ }
0 commit comments