This commit is contained in:
2021-08-03 18:22:36 +08:00
parent 7e3ca6da9c
commit 432169fdea
+9 -9
View File
@@ -10,16 +10,16 @@ namespace Snowflake\Events;
class Struct
{
public string $event;
public string $event;
public \Closure $listener;
public array|\Closure $listener;
public int $priority;
public int $priority;
public function __construct(string $event, callable $listener, int $priority)
{
$this->event = $event;
$this->listener = $listener;
$this->priority = $priority;
}
public function __construct(string $event, callable $listener, int $priority)
{
$this->event = $event;
$this->listener = $listener;
$this->priority = $priority;
}
}