This commit is contained in:
2021-08-31 14:07:06 +08:00
parent e691cc0bc2
commit be34d78454
2 changed files with 19 additions and 4 deletions
-2
View File
@@ -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;
/**
+19 -2
View File
@@ -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.