Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 991 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 991 Revision 1464
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile -...
2
 
-
 
3
declare(strict_types=1);
-
 
4
 
2
 
Zeile 5... Zeile 3...
5
namespace Psr\Http\Message;
3
namespace Psr\Http\Message;
6
 
4
 
7
/**
5
/**
Zeile 51... Zeile 49...
51
     * typically derived from PHP's $_SERVER superglobal. The data IS NOT
49
     * typically derived from PHP's $_SERVER superglobal. The data IS NOT
52
     * REQUIRED to originate from $_SERVER.
50
     * REQUIRED to originate from $_SERVER.
53
     *
51
     *
54
     * @return array
52
     * @return array
55
     */
53
     */
56
    public function getServerParams();
54
    public function getServerParams(): array;
Zeile 57... Zeile 55...
57
 
55
 
58
    /**
56
    /**
59
     * Retrieve cookies.
57
     * Retrieve cookies.
60
     *
58
     *
Zeile 63... Zeile 61...
63
     * The data MUST be compatible with the structure of the $_COOKIE
61
     * The data MUST be compatible with the structure of the $_COOKIE
64
     * superglobal.
62
     * superglobal.
65
     *
63
     *
66
     * @return array
64
     * @return array
67
     */
65
     */
68
    public function getCookieParams();
66
    public function getCookieParams(): array;
Zeile 69... Zeile 67...
69
 
67
 
70
    /**
68
    /**
71
     * Return an instance with the specified cookies.
69
     * Return an instance with the specified cookies.
72
     *
70
     *
Zeile 82... Zeile 80...
82
     * updated cookie values.
80
     * updated cookie values.
83
     *
81
     *
84
     * @param array $cookies Array of key/value pairs representing cookies.
82
     * @param array $cookies Array of key/value pairs representing cookies.
85
     * @return static
83
     * @return static
86
     */
84
     */
87
    public function withCookieParams(array $cookies);
85
    public function withCookieParams(array $cookies): ServerRequestInterface;
Zeile 88... Zeile 86...
88
 
86
 
89
    /**
87
    /**
90
     * Retrieve query string arguments.
88
     * Retrieve query string arguments.
91
     *
89
     *
Zeile 96... Zeile 94...
96
     * values, you may need to parse the query string from `getUri()->getQuery()`
94
     * values, you may need to parse the query string from `getUri()->getQuery()`
97
     * or from the `QUERY_STRING` server param.
95
     * or from the `QUERY_STRING` server param.
98
     *
96
     *
99
     * @return array
97
     * @return array
100
     */
98
     */
101
    public function getQueryParams();
99
    public function getQueryParams(): array;
Zeile 102... Zeile 100...
102
 
100
 
103
    /**
101
    /**
104
     * Return an instance with the specified query string arguments.
102
     * Return an instance with the specified query string arguments.
105
     *
103
     *
Zeile 120... Zeile 118...
120
     *
118
     *
121
     * @param array $query Array of query string arguments, typically from
119
     * @param array $query Array of query string arguments, typically from
122
     *     $_GET.
120
     *     $_GET.
123
     * @return static
121
     * @return static
124
     */
122
     */
125
    public function withQueryParams(array $query);
123
    public function withQueryParams(array $query): ServerRequestInterface;
Zeile 126... Zeile 124...
126
 
124
 
127
    /**
125
    /**
128
     * Retrieve normalized file upload data.
126
     * Retrieve normalized file upload data.
129
     *
127
     *
Zeile 134... Zeile 132...
134
     * instantiation, or MAY be injected via withUploadedFiles().
132
     * instantiation, or MAY be injected via withUploadedFiles().
135
     *
133
     *
136
     * @return array An array tree of UploadedFileInterface instances; an empty
134
     * @return array An array tree of UploadedFileInterface instances; an empty
137
     *     array MUST be returned if no data is present.
135
     *     array MUST be returned if no data is present.
138
     */
136
     */
139
    public function getUploadedFiles();
137
    public function getUploadedFiles(): array;
Zeile 140... Zeile 138...
140
 
138
 
141
    /**
139
    /**
142
     * Create a new instance with the specified uploaded files.
140
     * Create a new instance with the specified uploaded files.
143
     *
141
     *
Zeile 147... Zeile 145...
147
     *
145
     *
148
     * @param array $uploadedFiles An array tree of UploadedFileInterface instances.
146
     * @param array $uploadedFiles An array tree of UploadedFileInterface instances.
149
     * @return static
147
     * @return static
150
     * @throws \InvalidArgumentException if an invalid structure is provided.
148
     * @throws \InvalidArgumentException if an invalid structure is provided.
151
     */
149
     */
152
    public function withUploadedFiles(array $uploadedFiles);
150
    public function withUploadedFiles(array $uploadedFiles): ServerRequestInterface;
Zeile 153... Zeile 151...
153
 
151
 
154
    /**
152
    /**
155
     * Retrieve any parameters provided in the request body.
153
     * Retrieve any parameters provided in the request body.
156
     *
154
     *
Zeile 194... Zeile 192...
194
     *     typically be in an array or object.
192
     *     typically be in an array or object.
195
     * @return static
193
     * @return static
196
     * @throws \InvalidArgumentException if an unsupported argument type is
194
     * @throws \InvalidArgumentException if an unsupported argument type is
197
     *     provided.
195
     *     provided.
198
     */
196
     */
199
    public function withParsedBody($data);
197
    public function withParsedBody($data): ServerRequestInterface;
Zeile 200... Zeile 198...
200
 
198
 
201
    /**
199
    /**
202
     * Retrieve attributes derived from the request.
200
     * Retrieve attributes derived from the request.
203
     *
201
     *
Zeile 207... Zeile 205...
207
     * deserializing non-form-encoded message bodies; etc. Attributes
205
     * deserializing non-form-encoded message bodies; etc. Attributes
208
     * will be application and request specific, and CAN be mutable.
206
     * will be application and request specific, and CAN be mutable.
209
     *
207
     *
210
     * @return array Attributes derived from the request.
208
     * @return array Attributes derived from the request.
211
     */
209
     */
212
    public function getAttributes();
210
    public function getAttributes(): array;
Zeile 213... Zeile 211...
213
 
211
 
214
    /**
212
    /**
215
     * Retrieve a single derived request attribute.
213
     * Retrieve a single derived request attribute.
216
     *
214
     *
Zeile 241... Zeile 239...
241
     * @see getAttributes()
239
     * @see getAttributes()
242
     * @param string $name The attribute name.
240
     * @param string $name The attribute name.
243
     * @param mixed $value The value of the attribute.
241
     * @param mixed $value The value of the attribute.
244
     * @return static
242
     * @return static
245
     */
243
     */
246
    public function withAttribute(string $name, $value);
244
    public function withAttribute(string $name, $value): ServerRequestInterface;
Zeile 247... Zeile 245...
247
 
245
 
248
    /**
246
    /**
249
     * Return an instance that removes the specified derived request attribute.
247
     * Return an instance that removes the specified derived request attribute.
250
     *
248
     *
Zeile 257... Zeile 255...
257
     *
255
     *
258
     * @see getAttributes()
256
     * @see getAttributes()
259
     * @param string $name The attribute name.
257
     * @param string $name The attribute name.
260
     * @return static
258
     * @return static
261
     */
259
     */
262
    public function withoutAttribute(string $name);
260
    public function withoutAttribute(string $name): ServerRequestInterface;
263
}
261
}