aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/http/lib/RequestInterface.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-11-10 12:49:51 +0000
committerMario <mario@mariovavti.com>2019-11-10 14:10:03 +0100
commit580c3f4ffe9608d2beb56d418c68b3b112420e76 (patch)
tree82335d01179ac361d3f547a4b8e8c598d302e9f3 /vendor/sabre/http/lib/RequestInterface.php
parentd22766f458a8539a40a57f3946459a9be1f21cd6 (diff)
downloadvolse-hubzilla-580c3f4ffe9608d2beb56d418c68b3b112420e76.tar.gz
volse-hubzilla-580c3f4ffe9608d2beb56d418c68b3b112420e76.tar.bz2
volse-hubzilla-580c3f4ffe9608d2beb56d418c68b3b112420e76.zip
another bulk of composer updates
(cherry picked from commit 6685381fd8db507493c3d7c1793f8c05c681bbce)
Diffstat (limited to 'vendor/sabre/http/lib/RequestInterface.php')
-rw-r--r--vendor/sabre/http/lib/RequestInterface.php73
1 files changed, 20 insertions, 53 deletions
diff --git a/vendor/sabre/http/lib/RequestInterface.php b/vendor/sabre/http/lib/RequestInterface.php
index 63d9cbb51..83fa85bdc 100644
--- a/vendor/sabre/http/lib/RequestInterface.php
+++ b/vendor/sabre/http/lib/RequestInterface.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace Sabre\HTTP;
/**
@@ -9,59 +11,42 @@ namespace Sabre\HTTP;
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
-interface RequestInterface extends MessageInterface {
-
+interface RequestInterface extends MessageInterface
+{
/**
- * Returns the current HTTP method
- *
- * @return string
+ * Returns the current HTTP method.
*/
- function getMethod();
+ public function getMethod(): string;
/**
- * Sets the HTTP method
- *
- * @param string $method
- * @return void
+ * Sets the HTTP method.
*/
- function setMethod($method);
+ public function setMethod(string $method);
/**
* Returns the request url.
- *
- * @return string
*/
- function getUrl();
+ public function getUrl(): string;
/**
* Sets the request url.
- *
- * @param string $url
- * @return void
*/
- function setUrl($url);
+ public function setUrl(string $url);
/**
* Returns the absolute url.
- *
- * @return string
*/
- function getAbsoluteUrl();
+ public function getAbsoluteUrl(): string;
/**
* Sets the absolute url.
- *
- * @param string $url
- * @return void
*/
- function setAbsoluteUrl($url);
+ public function setAbsoluteUrl(string $url);
/**
* Returns the current base url.
- *
- * @return string
*/
- function getBaseUrl();
+ public function getBaseUrl(): string;
/**
* Sets a base url.
@@ -69,11 +54,8 @@ interface RequestInterface extends MessageInterface {
* This url is used for relative path calculations.
*
* The base url should default to /
- *
- * @param string $url
- * @return void
*/
- function setBaseUrl($url);
+ public function setBaseUrl(string $url);
/**
* Returns the relative path.
@@ -89,28 +71,22 @@ interface RequestInterface extends MessageInterface {
* ISO-8859-1, it will convert it to UTF-8.
*
* If the path is outside of the base url, a LogicException will be thrown.
- *
- * @return string
*/
- function getPath();
+ public function getPath(): string;
/**
* Returns the list of query parameters.
*
* This is equivalent to PHP's $_GET superglobal.
- *
- * @return array
*/
- function getQueryParameters();
+ public function getQueryParameters(): array;
/**
* Returns the POST data.
*
* This is equivalent to PHP's $_POST superglobal.
- *
- * @return array
*/
- function getPostData();
+ public function getPostData(): array;
/**
* Sets the post data.
@@ -119,29 +95,20 @@ interface RequestInterface extends MessageInterface {
*
* This would not have been needed, if POST data was accessible as
* php://input, but unfortunately we need to special case it.
- *
- * @param array $postData
- * @return void
*/
- function setPostData(array $postData);
+ public function setPostData(array $postData);
/**
* Returns an item from the _SERVER array.
*
* If the value does not exist in the array, null is returned.
*
- * @param string $valueName
* @return string|null
*/
- function getRawServerValue($valueName);
+ public function getRawServerValue(string $valueName);
/**
* Sets the _SERVER array.
- *
- * @param array $data
- * @return void
*/
- function setRawServerData(array $data);
-
-
+ public function setRawServerData(array $data);
}