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
Zeile -... Zeile 2...
-
 
2
 
-
 
3
declare(strict_types=1);
2
 
4
 
Zeile 3... Zeile 5...
3
namespace Psr\Http\Message;
5
namespace Psr\Http\Message;
4
 
6
 
5
/**
7
/**
Zeile 53... Zeile 55...
53
     * immutability of the message, and MUST return an instance that has the
55
     * immutability of the message, and MUST return an instance that has the
54
     * changed request target.
56
     * changed request target.
55
     *
57
     *
56
     * @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various
58
     * @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various
57
     *     request-target forms allowed in request messages)
59
     *     request-target forms allowed in request messages)
58
     * @param mixed $requestTarget
60
     * @param string $requestTarget
59
     * @return static
61
     * @return static
60
     */
62
     */
61
    public function withRequestTarget($requestTarget);
63
    public function withRequestTarget(string $requestTarget);
Zeile 62... Zeile 64...
62
 
64
 
63
    /**
65
    /**
64
     * Retrieves the HTTP method of the request.
66
     * Retrieves the HTTP method of the request.
65
     *
67
     *
Zeile 80... Zeile 82...
80
     *
82
     *
81
     * @param string $method Case-sensitive method.
83
     * @param string $method Case-sensitive method.
82
     * @return static
84
     * @return static
83
     * @throws \InvalidArgumentException for invalid HTTP methods.
85
     * @throws \InvalidArgumentException for invalid HTTP methods.
84
     */
86
     */
85
    public function withMethod($method);
87
    public function withMethod(string $method);
Zeile 86... Zeile 88...
86
 
88
 
87
    /**
89
    /**
88
     * Retrieves the URI instance.
90
     * Retrieves the URI instance.
89
     *
91
     *
Zeile 123... Zeile 125...
123
     * @link http://tools.ietf.org/html/rfc3986#section-4.3
125
     * @link http://tools.ietf.org/html/rfc3986#section-4.3
124
     * @param UriInterface $uri New request URI to use.
126
     * @param UriInterface $uri New request URI to use.
125
     * @param bool $preserveHost Preserve the original state of the Host header.
127
     * @param bool $preserveHost Preserve the original state of the Host header.
126
     * @return static
128
     * @return static
127
     */
129
     */
128
    public function withUri(UriInterface $uri, $preserveHost = false);
130
    public function withUri(UriInterface $uri, bool $preserveHost = false);
129
}
131
}