Defines a dispatcher for events.
public
dispatch(object $event): object
Provide all relevant listeners with an event to process.