Event Emitter Interface.
Anything that accepts listeners and emits events should implement this interface.
Methods | ||
---|---|---|
public
|
on(string $eventName, callable $callBack, int $priority = 100)
|
# |
public
|
once(string $eventName, callable $callBack, int $priority = 100)
|
# |
public
|
emit(string $eventName, array $arguments = [], callable $continueCallBack = null): bool
|
# |
public
|
listeners(string $eventName): callable[]
|
# |
public
|
removeListener(string $eventName, callable $listener): bool
|
# |
public
|
removeAllListeners(string $eventName = null)
|
# |