改名
This commit is contained in:
@@ -35,7 +35,8 @@ use Annotation\Attribute;
|
||||
|
||||
|
||||
/**
|
||||
* @param array $handler
|
||||
* @param mixed $class
|
||||
* @param mixed|null $method
|
||||
* @return array
|
||||
*/
|
||||
public function execute(mixed $class, mixed $method = null): array
|
||||
|
||||
@@ -29,9 +29,9 @@ use Snowflake\Snowflake;
|
||||
|
||||
|
||||
/**
|
||||
* @param array $handler
|
||||
* @param mixed $class
|
||||
* @param mixed|null $method
|
||||
* @return bool
|
||||
* @throws Exception
|
||||
*/
|
||||
public function execute(mixed $class, mixed $method = null): bool
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@ use Snowflake\Snowflake;
|
||||
* @param string|array $interceptor
|
||||
* @throws
|
||||
*/
|
||||
#[Pure] public function __construct(public string|array $interceptor)
|
||||
public function __construct(public string|array $interceptor)
|
||||
{
|
||||
if (is_string($this->interceptor)) {
|
||||
$this->interceptor = [$this->interceptor];
|
||||
@@ -40,7 +40,8 @@ use Snowflake\Snowflake;
|
||||
|
||||
|
||||
/**
|
||||
* @param array $handler
|
||||
* @param mixed $class
|
||||
* @param mixed|null $method
|
||||
* @return Interceptor
|
||||
*/
|
||||
public function execute(mixed $class, mixed $method = null): static
|
||||
|
||||
@@ -39,7 +39,8 @@ use Snowflake\Snowflake;
|
||||
|
||||
|
||||
/**
|
||||
* @param array $handler
|
||||
* @param mixed $class
|
||||
* @param mixed|null $method
|
||||
* @return Limits
|
||||
*/
|
||||
public function execute(mixed $class, mixed $method = null): static
|
||||
|
||||
@@ -40,7 +40,8 @@ use HttpServer\IInterface\Middleware as IMiddleware;
|
||||
|
||||
|
||||
/**
|
||||
* @param array $handler
|
||||
* @param mixed $class
|
||||
* @param mixed|null $method
|
||||
* @return Middleware
|
||||
*/
|
||||
public function execute(mixed $class, mixed $method = null): static
|
||||
|
||||
@@ -29,9 +29,9 @@ use Snowflake\Snowflake;
|
||||
|
||||
|
||||
/**
|
||||
* @param array $handler
|
||||
* @param mixed $class
|
||||
* @param mixed|null $method
|
||||
* @return Router
|
||||
* @throws ConfigException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function execute(mixed $class, mixed $method = null): Router
|
||||
|
||||
@@ -35,12 +35,12 @@ use Snowflake\Snowflake;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param array $handler
|
||||
* @return Router
|
||||
* @throws Exception
|
||||
*/
|
||||
/**
|
||||
* @param mixed $class
|
||||
* @param mixed|null $method
|
||||
* @return Router
|
||||
* @throws Exception
|
||||
*/
|
||||
public function execute(mixed $class, mixed $method = null): Router
|
||||
{
|
||||
// TODO: Implement setHandler() method.
|
||||
|
||||
Reference in New Issue
Block a user