This commit is contained in:
2021-07-12 17:17:36 +08:00
parent f2083f1eaf
commit 857ec53870
20 changed files with 384 additions and 346 deletions
+3 -2
View File
@@ -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