Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 991
Zeile 1... Zeile 1...
1
<?php
1
<?php
-
 
2
 
-
 
3
declare(strict_types=1);
-
 
4
 
2
namespace Psr\Http\Message;
5
namespace Psr\Http\Message;
Zeile 3... Zeile 6...
3
 
6
 
4
/**
7
/**
5
 * Value object representing a URI.
8
 * Value object representing a URI.
Zeile 186... Zeile 189...
186
     *
189
     *
187
     * @param string $scheme The scheme to use with the new instance.
190
     * @param string $scheme The scheme to use with the new instance.
188
     * @return static A new instance with the specified scheme.
191
     * @return static A new instance with the specified scheme.
189
     * @throws \InvalidArgumentException for invalid or unsupported schemes.
192
     * @throws \InvalidArgumentException for invalid or unsupported schemes.
190
     */
193
     */
191
    public function withScheme($scheme);
194
    public function withScheme(string $scheme);
Zeile 192... Zeile 195...
192
 
195
 
193
    /**
196
    /**
194
     * Return an instance with the specified user information.
197
     * Return an instance with the specified user information.
195
     *
198
     *
Zeile 202... Zeile 205...
202
     *
205
     *
203
     * @param string $user The user name to use for authority.
206
     * @param string $user The user name to use for authority.
204
     * @param null|string $password The password associated with $user.
207
     * @param null|string $password The password associated with $user.
205
     * @return static A new instance with the specified user information.
208
     * @return static A new instance with the specified user information.
206
     */
209
     */
207
    public function withUserInfo($user, $password = null);
210
    public function withUserInfo(string $user, ?string $password = null);
Zeile 208... Zeile 211...
208
 
211
 
209
    /**
212
    /**
210
     * Return an instance with the specified host.
213
     * Return an instance with the specified host.
211
     *
214
     *
Zeile 216... Zeile 219...
216
     *
219
     *
217
     * @param string $host The hostname to use with the new instance.
220
     * @param string $host The hostname to use with the new instance.
218
     * @return static A new instance with the specified host.
221
     * @return static A new instance with the specified host.
219
     * @throws \InvalidArgumentException for invalid hostnames.
222
     * @throws \InvalidArgumentException for invalid hostnames.
220
     */
223
     */
221
    public function withHost($host);
224
    public function withHost(string $host);
Zeile 222... Zeile 225...
222
 
225
 
223
    /**
226
    /**
224
     * Return an instance with the specified port.
227
     * Return an instance with the specified port.
225
     *
228
     *
Zeile 235... Zeile 238...
235
     * @param null|int $port The port to use with the new instance; a null value
238
     * @param null|int $port The port to use with the new instance; a null value
236
     *     removes the port information.
239
     *     removes the port information.
237
     * @return static A new instance with the specified port.
240
     * @return static A new instance with the specified port.
238
     * @throws \InvalidArgumentException for invalid ports.
241
     * @throws \InvalidArgumentException for invalid ports.
239
     */
242
     */
240
    public function withPort($port);
243
    public function withPort(?int $port);
Zeile 241... Zeile 244...
241
 
244
 
242
    /**
245
    /**
243
     * Return an instance with the specified path.
246
     * Return an instance with the specified path.
244
     *
247
     *
Zeile 259... Zeile 262...
259
     *
262
     *
260
     * @param string $path The path to use with the new instance.
263
     * @param string $path The path to use with the new instance.
261
     * @return static A new instance with the specified path.
264
     * @return static A new instance with the specified path.
262
     * @throws \InvalidArgumentException for invalid paths.
265
     * @throws \InvalidArgumentException for invalid paths.
263
     */
266
     */
264
    public function withPath($path);
267
    public function withPath(string $path);
Zeile 265... Zeile 268...
265
 
268
 
266
    /**
269
    /**
267
     * Return an instance with the specified query string.
270
     * Return an instance with the specified query string.
268
     *
271
     *
Zeile 276... Zeile 279...
276
     *
279
     *
277
     * @param string $query The query string to use with the new instance.
280
     * @param string $query The query string to use with the new instance.
278
     * @return static A new instance with the specified query string.
281
     * @return static A new instance with the specified query string.
279
     * @throws \InvalidArgumentException for invalid query strings.
282
     * @throws \InvalidArgumentException for invalid query strings.
280
     */
283
     */
281
    public function withQuery($query);
284
    public function withQuery(string $query);
Zeile 282... Zeile 285...
282
 
285
 
283
    /**
286
    /**
284
     * Return an instance with the specified URI fragment.
287
     * Return an instance with the specified URI fragment.
285
     *
288
     *
Zeile 292... Zeile 295...
292
     * An empty fragment value is equivalent to removing the fragment.
295
     * An empty fragment value is equivalent to removing the fragment.
293
     *
296
     *
294
     * @param string $fragment The fragment to use with the new instance.
297
     * @param string $fragment The fragment to use with the new instance.
295
     * @return static A new instance with the specified fragment.
298
     * @return static A new instance with the specified fragment.
296
     */
299
     */
297
    public function withFragment($fragment);
300
    public function withFragment(string $fragment);
Zeile 298... Zeile 301...
298
 
301
 
299
    /**
302
    /**
300
     * Return the string representation as a URI reference.
303
     * Return the string representation as a URI reference.
301
     *
304
     *