Skip to content

Internals Event Interfaces IEvent

Stefan Crkvenjakov edited this page Oct 7, 2026 · 1 revision

event\interfaces\IEvent

Framework Internals · Subsystem overview · Developer guide

Source: awt_src/classes/event/interfaces/IEvent.php · Snapshot 8411f4287706.

The request-wide event dispatcher calls listeners synchronously in registration order and collects their arrays. Listener exceptions propagate.

IEvent

Declaration and architectural role

interface IEvent

Source description (behavioral corrections are recorded in Known discrepancies):

Interface IEvent

The IEvent interface defines the structure for event objects within the event-driven architecture. It specifies the methods that any event class must implement to be used with the event system.

Constants, enum cases, traits and properties

No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.

Method index

Method Signature
getName public function getName(): string
bundle public function bundle(): array

getName

Source line 22

public function getName(): string;

Retrieves the name of the event.

This method returns the unique name of the event, which can be used to identify the event when it is dispatched or listened to.

@return string The name of the event.

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

bundle

Source line 33

public function bundle(): array;

Returns an array of event data.

This method returns an associative array containing any relevant data associated with the event. This data can be used by listeners to process the event accordingly.

@return array An array of event-related data.

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

Clone this wiki locally