getName()
getName() : string
Returns the name of this event. This is usually used as the event identifier.
Represents the transport class of events across the system. It receives a name, subject and an optional payload. The name can be any string that uniquely identifies the event across the application, while the subject represents the object that the event applies to.
getData(string|null $key = null) : array|mixed|null
Accesses the event data/payload.
string|null | $key | The data payload element to return, or null to return all data. |
The data payload if $key is null, or the data value for the given $key. If the $key does not exist a null value is returned.