EventFactory
Instantiates event objects
Table of Contents
Methods
| event() | Creates a new instance of an Event |
| listener() | Creates a new instance of an event Listener |
| observer() | Creates a new instance of an event Observer |
Methods
event()
Creates a new instance of an Event
public
event(string $name[, array<string|int, mixed> $params = null ]) : Event
Parameters
- $name : string
-
The name of the event
- $params : array<string|int, mixed> = null
-
An array of parameters to be held by this event (optional)
Return values
Eventlistener()
Creates a new instance of an event Listener
public
listener() : Listener
Return values
Listenerobserver()
Creates a new instance of an event Observer
public
observer() : Observer