Index

iEvent

MMO\core\interfaces · 1 symbol · generated 5 Oct 2026

interface

iEvent

iEvent.php:11

Any object being dispatched SHOULD implements at least this interface It is an Event regarding PSR14: Event dispatcher It MUST not return a value after being dispatched.

interface MMO\core\interfaces\iEvent
Namespace
MMO\core\interfaces

Index

AddListener($handler, $priority) abstract static
dispatch() abstract
GetListeners() abstract static
getOrigin() abstract
HasListener($handler) abstract static
RemoveListener($handler) abstract static
Send($args) abstract static

Methods7

AddListener($handler, $priority)

abstractstaticiEvent.php:12
abstract static function AddListener(callable $handler, int $priority = 0): void
$handlercallable
$priority = 0int
returnsvoid

GetListeners()

abstractstaticiEvent.php:14
abstract static function GetListeners(): array
returnsarray

RemoveListener($handler)

abstractstaticiEvent.php:13
abstract static function RemoveListener(callable $handler): bool
$handlercallable
returnsbool