@@ -20,122 +20,122 @@ public function __construct(ServerRequestInterface $request, RouteFactory $route
20
20
$ this ->request = $ request ;
21
21
}
22
22
23
- public function getProtocolVersion ()
23
+ public function getProtocolVersion (): string
24
24
{
25
25
return $ this ->request ->getProtocolVersion ();
26
26
}
27
27
28
- public function withProtocolVersion ($ version )
28
+ public function withProtocolVersion ($ version ): \ Psr \ Http \ Message \ MessageInterface
29
29
{
30
30
return $ this ->request ->withProtocolVersion ($ version );
31
31
}
32
32
33
- public function getHeaders ()
33
+ public function getHeaders (): array
34
34
{
35
35
return $ this ->request ->getHeaders ();
36
36
}
37
37
38
- public function hasHeader ($ name )
38
+ public function hasHeader ($ name ): bool
39
39
{
40
40
return $ this ->request ->hasHeader ($ name );
41
41
}
42
42
43
- public function getHeader ($ name )
43
+ public function getHeader ($ name ): array
44
44
{
45
45
return $ this ->request ->getHeader ($ name );
46
46
}
47
47
48
- public function getHeaderLine ($ name )
48
+ public function getHeaderLine ($ name ): string
49
49
{
50
50
return $ this ->request ->getHeaderLine ($ name );
51
51
}
52
52
53
- public function withHeader ($ name , $ value )
53
+ public function withHeader ($ name , $ value ): \ Psr \ Http \ Message \ MessageInterface
54
54
{
55
55
return $ this ->request ->withHeader ($ name , $ value );
56
56
}
57
57
58
- public function withAddedHeader ($ name , $ value )
58
+ public function withAddedHeader ($ name , $ value ): \ Psr \ Http \ Message \ MessageInterface
59
59
{
60
60
return $ this ->request ->withAddedHeader ($ name , $ value );
61
61
}
62
62
63
- public function withoutHeader ($ name )
63
+ public function withoutHeader ($ name ): \ Psr \ Http \ Message \ MessageInterface
64
64
{
65
65
return $ this ->request ->withoutHeader ($ name );
66
66
}
67
67
68
- public function getBody ()
68
+ public function getBody (): StreamInterface
69
69
{
70
70
return $ this ->request ->getBody ();
71
71
}
72
72
73
- public function withBody (StreamInterface $ body )
73
+ public function withBody (StreamInterface $ body ): \ Psr \ Http \ Message \ MessageInterface
74
74
{
75
75
return $ this ->request ->withBody ($ body );
76
76
}
77
77
78
- public function getRequestTarget ()
78
+ public function getRequestTarget (): string
79
79
{
80
80
return $ this ->request ->getRequestTarget ();
81
81
}
82
82
83
- public function withRequestTarget ($ requestTarget )
83
+ public function withRequestTarget ($ requestTarget ): \ Psr \ Http \ Message \ RequestInterface
84
84
{
85
85
return $ this ->request ->withRequestTarget ($ requestTarget );
86
86
}
87
87
88
- public function getMethod ()
88
+ public function getMethod (): string
89
89
{
90
90
return $ this ->request ->getMethod ();
91
91
}
92
92
93
- public function withMethod ($ method )
93
+ public function withMethod ($ method ): \ Psr \ Http \ Message \ RequestInterface
94
94
{
95
95
return $ this ->request ->withMethod ($ method );
96
96
}
97
97
98
- public function getUri ()
98
+ public function getUri (): UriInterface
99
99
{
100
100
return $ this ->request ->getUri ();
101
101
}
102
102
103
- public function withUri (UriInterface $ uri , $ preserveHost = false )
103
+ public function withUri (UriInterface $ uri , $ preserveHost = false ): \ Psr \ Http \ Message \ RequestInterface
104
104
{
105
105
return $ this ->request ->withUri ($ uri , $ preserveHost );
106
106
}
107
107
108
- public function getServerParams ()
108
+ public function getServerParams (): array
109
109
{
110
110
return $ this ->request ->getServerParams ();
111
111
}
112
112
113
- public function getCookieParams ()
113
+ public function getCookieParams (): array
114
114
{
115
115
return $ this ->request ->getCookieParams ();
116
116
}
117
117
118
- public function withCookieParams (array $ cookies )
118
+ public function withCookieParams (array $ cookies ): ServerRequestInterface
119
119
{
120
120
return $ this ->request ->withCookieParams ($ cookies );
121
121
}
122
122
123
- public function getQueryParams ()
123
+ public function getQueryParams (): array
124
124
{
125
125
return $ this ->request ->getQueryParams ();
126
126
}
127
127
128
- public function withQueryParams (array $ query )
128
+ public function withQueryParams (array $ query ): ServerRequestInterface
129
129
{
130
130
return $ this ->request ->withQueryParams ($ query );
131
131
}
132
132
133
- public function getUploadedFiles ()
133
+ public function getUploadedFiles (): array
134
134
{
135
135
return $ this ->request ->getUploadedFiles ();
136
136
}
137
137
138
- public function withUploadedFiles (array $ uploadedFiles )
138
+ public function withUploadedFiles (array $ uploadedFiles ): ServerRequestInterface
139
139
{
140
140
return $ this ->request ->withUploadedFiles ($ uploadedFiles );
141
141
}
@@ -145,12 +145,12 @@ public function getParsedBody()
145
145
return $ this ->request ->getParsedBody ();
146
146
}
147
147
148
- public function withParsedBody ($ data )
148
+ public function withParsedBody ($ data ): ServerRequestInterface
149
149
{
150
150
return $ this ->request ->withParsedBody ($ data );
151
151
}
152
152
153
- public function getAttributes ()
153
+ public function getAttributes (): array
154
154
{
155
155
return $ this ->request ->getAttributes ();
156
156
}
@@ -160,12 +160,12 @@ public function getAttribute($name, $default = null)
160
160
return $ this ->request ->getAttribute ($ name , $ default );
161
161
}
162
162
163
- public function withAttribute ($ name , $ value )
163
+ public function withAttribute ($ name , $ value ): ServerRequestInterface
164
164
{
165
165
return $ this ->request ->withAttribute ($ name , $ value );
166
166
}
167
167
168
- public function withoutAttribute ($ name )
168
+ public function withoutAttribute ($ name ): ServerRequestInterface
169
169
{
170
170
return $ this ->request ->withoutAttribute ($ name );
171
171
}
0 commit comments