← All changes
|
includes/sdk/google/psr/http-message/src/RequestInterface.php
+7
-7
1.2.0
→
1.4.1
View file →
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -namespace Dudlewebs\WPMCS\Psr\Http\Message; | |
| 3 | +namespace Dudlewebs\WPMCS\GCP\Psr\Http\Message; | |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * Representation of an outgoing, client-side request. |
| 7 | 7 | * |
| @@ -38,9 +38,9 @@ | ||
| 38 | 38 | * provided, this method MUST return the string "/". |
| 39 | 39 | * |
| 40 | 40 | * @return string |
| 41 | 41 | */ |
| 42 | - public function getRequestTarget(): string; | |
| 42 | + public function getRequestTarget() : string; | |
| 43 | 43 | /** |
| 44 | 44 | * Return an instance with the specific request-target. |
| 45 | 45 | * |
| 46 | 46 | * If the request needs a non-origin-form request-target — e.g., for |
| @@ -56,15 +56,15 @@ | ||
| 56 | 56 | * request-target forms allowed in request messages) |
| 57 | 57 | * @param string $requestTarget |
| 58 | 58 | * @return static |
| 59 | 59 | */ |
| 60 | - public function withRequestTarget(string $requestTarget): RequestInterface; | |
| 60 | + public function withRequestTarget(string $requestTarget) : RequestInterface; | |
| 61 | 61 | /** |
| 62 | 62 | * Retrieves the HTTP method of the request. |
| 63 | 63 | * |
| 64 | 64 | * @return string Returns the request method. |
| 65 | 65 | */ |
| 66 | - public function getMethod(): string; | |
| 66 | + public function getMethod() : string; | |
| 67 | 67 | /** |
| 68 | 68 | * Return an instance with the provided HTTP method. |
| 69 | 69 | * |
| 70 | 70 | * While HTTP method names are typically all uppercase characters, HTTP |
| @@ -78,9 +78,9 @@ | ||
| 78 | 78 | * @param string $method Case-sensitive method. |
| 79 | 79 | * @return static |
| 80 | 80 | * @throws \InvalidArgumentException for invalid HTTP methods. |
| 81 | 81 | */ |
| 82 | - public function withMethod(string $method): RequestInterface; | |
| 82 | + public function withMethod(string $method) : RequestInterface; | |
| 83 | 83 | /** |
| 84 | 84 | * Retrieves the URI instance. |
| 85 | 85 | * |
| 86 | 86 | * This method MUST return a UriInterface instance. |
| @@ -88,9 +88,9 @@ | ||
| 88 | 88 | * @link http://tools.ietf.org/html/rfc3986#section-4.3 |
| 89 | 89 | * @return UriInterface Returns a UriInterface instance |
| 90 | 90 | * representing the URI of the request. |
| 91 | 91 | */ |
| 92 | - public function getUri(): UriInterface; | |
| 92 | + public function getUri() : UriInterface; | |
| 93 | 93 | /** |
| 94 | 94 | * Returns an instance with the provided URI. |
| 95 | 95 | * |
| 96 | 96 | * This method MUST update the Host header of the returned request by |
| @@ -119,6 +119,6 @@ | ||
| 119 | 119 | * @param UriInterface $uri New request URI to use. |
| 120 | 120 | * @param bool $preserveHost Preserve the original state of the Host header. |
| 121 | 121 | * @return static |
| 122 | 122 | */ |
| 123 | - public function withUri(UriInterface $uri, bool $preserveHost = \false): RequestInterface; | |
| 123 | + public function withUri(UriInterface $uri, bool $preserveHost = \false) : RequestInterface; | |
| 124 | 124 | } |