aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/http/lib/ResponseDecorator.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/ResponseDecorator.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/ResponseDecorator.php')
-rw-r--r--vendor/sabre/http/lib/ResponseDecorator.php42
1 files changed, 16 insertions, 26 deletions
diff --git a/vendor/sabre/http/lib/ResponseDecorator.php b/vendor/sabre/http/lib/ResponseDecorator.php
index db3a67507..289dba5cc 100644
--- a/vendor/sabre/http/lib/ResponseDecorator.php
+++ b/vendor/sabre/http/lib/ResponseDecorator.php
@@ -1,9 +1,11 @@
<?php
+declare(strict_types=1);
+
namespace Sabre\HTTP;
/**
- * Response Decorator
+ * Response Decorator.
*
* This helper class allows you to easily create decorators for the Response
* object.
@@ -12,45 +14,36 @@ namespace Sabre\HTTP;
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
-class ResponseDecorator implements ResponseInterface {
-
+class ResponseDecorator implements ResponseInterface
+{
use MessageDecoratorTrait;
/**
* Constructor.
- *
- * @param ResponseInterface $inner
*/
- function __construct(ResponseInterface $inner) {
-
+ public function __construct(ResponseInterface $inner)
+ {
$this->inner = $inner;
-
}
/**
* Returns the current HTTP status code.
- *
- * @return int
*/
- function getStatus() {
-
+ public function getStatus(): int
+ {
return $this->inner->getStatus();
-
}
-
/**
* Returns the human-readable status string.
*
* In the case of a 200, this may for example be 'OK'.
- *
- * @return string
*/
- function getStatusText() {
-
+ public function getStatusText(): string
+ {
return $this->inner->getStatusText();
-
}
+
/**
* Sets the HTTP status code.
*
@@ -61,12 +54,10 @@ class ResponseDecorator implements ResponseInterface {
* added.
*
* @param string|int $status
- * @return void
*/
- function setStatus($status) {
-
+ public function setStatus($status)
+ {
$this->inner->setStatus($status);
-
}
/**
@@ -76,9 +67,8 @@ class ResponseDecorator implements ResponseInterface {
*
* @return string
*/
- function __toString() {
-
+ public function __toString(): string
+ {
return $this->inner->__toString();
-
}
}