summaryrefslogtreecommitdiff
path: root/matrix-specification/Request.php
diff options
context:
space:
mode:
Diffstat (limited to 'matrix-specification/Request.php')
-rw-r--r--matrix-specification/Request.php15
1 files changed, 2 insertions, 13 deletions
diff --git a/matrix-specification/Request.php b/matrix-specification/Request.php
index c9f315f..c8a13d6 100644
--- a/matrix-specification/Request.php
+++ b/matrix-specification/Request.php
@@ -3,24 +3,13 @@
namespace Matrix;
use Matrix\Enums\ApiPathVersion;
-use Psr\Http\Message\RequestInterface;
-abstract class Request implements RequestInterface, \JsonSerializable
+abstract class Request extends Message
{
- abstract public function getUri(string $serverName, ApiPathVersion $version): string;
+ abstract public function getUri(string $scheme, string $serverName, ApiPathVersion $version): string;
/**
* @return array<string, string>
*/
abstract public function getQueryParameters(): array;
-
- /**
- * @return array<string, string>
- */
- abstract public function getBody(): array;
-
- public function jsonSerialize(): array
- {
- return $this->getBody();
- }
}