aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/http/lib/RequestInterface.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-11-10 14:18:18 +0100
committerMario <mario@mariovavti.com>2019-11-10 14:18:18 +0100
commite1b923ab7d9070631b9bcf24fe1c42678f827169 (patch)
tree402fc0be56a0000701d969697ba1f271a66b8413 /vendor/sabre/http/lib/RequestInterface.php
parentbed9876d68ac72a27f3c05fa3ed5c4ccad39b72e (diff)
parent580c3f4ffe9608d2beb56d418c68b3b112420e76 (diff)
downloadvolse-hubzilla-e1b923ab7d9070631b9bcf24fe1c42678f827169.tar.gz
volse-hubzilla-e1b923ab7d9070631b9bcf24fe1c42678f827169.tar.bz2
volse-hubzilla-e1b923ab7d9070631b9bcf24fe1c42678f827169.zip
Merge branch 'cherry-pick-6685381f' into 'dev'
another bulk of composer updates See merge request hubzilla/core!1781
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);
}