改名
This commit is contained in:
@@ -2,12 +2,10 @@
|
|||||||
|
|
||||||
namespace Server\Message;
|
namespace Server\Message;
|
||||||
|
|
||||||
use Annotation\Inject;
|
|
||||||
use BadMethodCallException;
|
use BadMethodCallException;
|
||||||
use JetBrains\PhpStorm\Pure;
|
use JetBrains\PhpStorm\Pure;
|
||||||
use Psr\Http\Message\RequestInterface;
|
use Psr\Http\Message\RequestInterface;
|
||||||
use Psr\Http\Message\UriInterface;
|
use Psr\Http\Message\UriInterface;
|
||||||
use ReflectionException;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ class Uri implements UriInterface
|
|||||||
private array $_explode = [];
|
private array $_explode = [];
|
||||||
|
|
||||||
|
|
||||||
|
private mixed $authority;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string[]
|
* @return string[]
|
||||||
*/
|
*/
|
||||||
@@ -58,11 +61,25 @@ class Uri implements UriInterface
|
|||||||
return $this->scheme;
|
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()
|
public function getUserInfo()
|
||||||
{
|
{
|
||||||
// TODO: Implement getUserInfo() method.
|
// TODO: Implement getUserInfo() method.
|
||||||
|
|||||||
Reference in New Issue
Block a user