class Manager

Properties

static array $events

Methods

static Event
getEvent(string $event_name)

Retrieves an existing event or creates a new one if it doesn't exist.

Details

at line 17
static Event getEvent(string $event_name)

Retrieves an existing event or creates a new one if it doesn't exist.

Parameters

string $event_name

The name of the event to retrieve or create. The name will be processed by remove_spaces.

Return Value

Event

The event instance associated with the given name.