diff --git a/http-server/Message/Request.php b/http-server/Message/Request.php index 1cb9dba2..6a3f7e33 100644 --- a/http-server/Message/Request.php +++ b/http-server/Message/Request.php @@ -2,12 +2,10 @@ namespace Server\Message; -use Annotation\Inject; use BadMethodCallException; use JetBrains\PhpStorm\Pure; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\UriInterface; -use ReflectionException; /** diff --git a/http-server/Message/Uri.php b/http-server/Message/Uri.php index 9fd2f4a7..93061635 100644 --- a/http-server/Message/Uri.php +++ b/http-server/Message/Uri.php @@ -35,6 +35,9 @@ class Uri implements UriInterface private array $_explode = []; + private mixed $authority; + + /** * @return string[] */ @@ -58,11 +61,25 @@ class Uri implements UriInterface return $this->scheme; } - public function getAuthority() + + /** + * @return mixed + */ + public function getAuthority(): mixed { - // TODO: Implement getAuthority() method. + return $this->authority; } + + /** + * @param $authority + */ + public function setAuthority($authority) + { + $this->authority = $authority; + } + + public function getUserInfo() { // TODO: Implement getUserInfo() method.