This commit is contained in:
2023-10-24 17:22:30 +08:00
parent 34bae8fc44
commit 4ec09dcafd
2 changed files with 10 additions and 1 deletions
+6
View File
@@ -16,6 +16,12 @@ class Struct
public int $priority;
/**
* @param string $event
* @param array|\Closure|string $listener
* @param int $priority
*/
public function __construct(string $event, array|\Closure|string $listener, int $priority)
{
$this->event = $event;