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; 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) public function __construct(string $event, array|\Closure|string $listener, int $priority)
{ {
$this->event = $event; $this->event = $event;
+4 -1
View File
@@ -6,7 +6,10 @@ class TestListener implements EventInterface
{ {
public function process() /**
* @return void
*/
public function process(): void
{ {
// TODO: Implement process() method. // TODO: Implement process() method.
} }