Index

tStoppableEvent

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

trait

tStoppableEvent

tStoppableEvent.php:14

Trait implementing PSR-14's StoppableEventInterface: lets an event listener (in a chain run by tEvent's dispatch()) stop the remaining listeners from being called, by calling stopPropagation() on the event instance.

trait MMO\core\classes\tStoppableEvent
Namespace
MMO\core\classes
class UserCreated implements \Psr\EventDispatcher\StoppableEventInterface { use tEvent, tStoppableEvent; } UserCreated::AddListener(function (UserCreated $e) {$e->stopPropagation();}, 0); UserCreated::AddListener(function (UserCreated $e) {echo 'never runs';}, 10); // skipped: propagation was stopped

Index

stopped
isPropagationStopped()
stopPropagation()Prevent any remaining listener in the current dispatch chain from being called.
__clone()A cloned event starts fresh: propagation is never considered stopped on the clone, even if it was on the original instance.

Properties1

stopped

protected $stopped = false

Methods3

stopPropagation()

tStoppableEvent.php:29

Prevent any remaining listener in the current dispatch chain from being called.

function stopPropagation()
returns

__clone()

tStoppableEvent.php:38

A cloned event starts fresh: propagation is never considered stopped on the clone, even if it was on the original instance.

function __clone()
returns