Files
kiri-event/Struct.php
T
2023-10-24 17:22:30 +08:00

32 lines
511 B
PHP

<?php
declare(strict_types=1);
namespace Kiri\Events;
/**
*
*/
class Struct
{
public string $event;
public array|\Closure|string $listener;
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;
$this->listener = $listener;
$this->priority = $priority;
}
}