@@ -29,12 +29,11 @@ public function getProtocolVersion(): string
29
29
return $ this ->response ->getProtocolVersion ();
30
30
}
31
31
32
- /**
33
- * @return MessageInterface
34
- */
35
32
public function withProtocolVersion ($ version ): MessageInterface
36
33
{
37
- return $ this ->response ->withProtocolVersion ($ version );
34
+ $ this ->response ->withProtocolVersion ($ version );
35
+
36
+ return $ this ;
38
37
}
39
38
40
39
public function getHeaders (): array
@@ -57,61 +56,53 @@ public function getHeaderLine(string $name): string
57
56
return $ this ->response ->getHeaderLine ($ name );
58
57
}
59
58
60
- /**
61
- * @return MessageInterface
62
- */
63
59
public function withHeader (string $ name , $ value ): MessageInterface
64
60
{
65
- return $ this ->response ->withHeader ($ name , $ value );
61
+ $ this ->response ->withHeader ($ name , $ value );
62
+
63
+ return $ this ;
66
64
}
67
65
68
- /**
69
- * @return MessageInterface
70
- */
71
66
public function withAddedHeader (string $ name , $ value ): MessageInterface
72
67
{
73
- return $ this ->response ->withAddedHeader ($ name , $ value );
68
+ $ this ->response ->withAddedHeader ($ name , $ value );
69
+
70
+ return $ this ;
74
71
}
75
72
76
- /**
77
- * @return MessageInterface
78
- */
79
73
public function withoutHeader (string $ name ): MessageInterface
80
74
{
81
- return $ this ->response ->withoutHeader ($ name );
75
+ $ this ->response ->withoutHeader ($ name );
76
+
77
+ return $ this ;
82
78
}
83
79
84
- /**
85
- * @return StreamInterface
86
- */
87
80
public function getBody (): StreamInterface
88
81
{
89
82
return $ this ->response ->getBody ();
90
83
}
91
84
92
- /**
93
- * @return MessageInterface
94
- */
95
85
public function withBody (StreamInterface $ body ): MessageInterface
96
86
{
97
- return $ this ->response ->withBody ($ body );
87
+ $ this ->response ->withBody ($ body );
88
+
89
+ return $ this ;
98
90
}
99
91
100
92
public function getStatusCode (): int
101
93
{
102
94
return $ this ->response ->getStatusCode ();
103
95
}
104
96
105
- /**
106
- * @return ResponseInterface
107
- */
108
97
public function withStatus (int $ code , string $ reasonPhrase = '' ): ResponseInterface
109
98
{
110
- return $ this ->response ->withStatus ($ code , $ reasonPhrase );
99
+ $ this ->response ->withStatus ($ code , $ reasonPhrase );
100
+
101
+ return $ this ;
111
102
}
112
103
113
104
public function getReasonPhrase (): string
114
105
{
115
106
return $ this ->response ->getReasonPhrase ();
116
107
}
117
- }
108
+ }
0 commit comments