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