Index
E
- EventEmitter — Class in namespace CharlotteDunois\Events
- Our Event Emitter, equivalent to Node.js' Event Emitter.
- EventEmitterErrorTrait — Class in namespace CharlotteDunois\Events
- Our Event Emitter Error Trait. This one throws an exception if there is not an error event listener when an error event gets emitted.
- EventEmitterErrorTrait::emit() — Method in class EventEmitterErrorTrait
- Emits an event, catching all exceptions and emitting an error event for these exceptions.
- EventEmitterInterface — Class in namespace CharlotteDunois\Events
- The event emitter interface.
- EventEmitterInterface::emit() — Method in class EventEmitterInterface
- Emits an event, catching all exceptions and emitting an error event for these exceptions.
- EventEmitterTrait — Class in namespace CharlotteDunois\Events
- Our Event Emitter Trait.
- EventEmitterTrait::emit() — Method in class EventEmitterTrait
- Emits an event, catching all exceptions and emitting an error event for these exceptions.
L
- EventEmitterInterface::listeners() — Method in class EventEmitterInterface
- Get listeners for a specific events, or all listeners.
- $EventEmitterTrait#listeners — Property in class EventEmitterTrait
- EventEmitterTrait::listeners() — Method in class EventEmitterTrait
- Get listeners for a specific events, or all listeners.
O
- EventEmitterInterface::on() — Method in class EventEmitterInterface
- Attach a listener to an event.
- EventEmitterInterface::once() — Method in class EventEmitterInterface
- Attach a listener to an event, for exactly once.
- $EventEmitterTrait#onceListeners — Property in class EventEmitterTrait
- EventEmitterTrait::on() — Method in class EventEmitterTrait
- Attach a listener to an event.
- EventEmitterTrait::once() — Method in class EventEmitterTrait
- Attach a listener to an event, for exactly once.
R
- EventEmitterInterface::removeListener() — Method in class EventEmitterInterface
- Remove specified listener from an event.
- EventEmitterInterface::removeAllListeners() — Method in class EventEmitterInterface
- Remove all listeners from an event (or all listeners).
- EventEmitterTrait::removeListener() — Method in class EventEmitterTrait
- Remove specified listener from an event.
- EventEmitterTrait::removeAllListeners() — Method in class EventEmitterTrait
- Remove all listeners from an event (or all listeners).
U
- UnhandledErrorException — Class in namespace CharlotteDunois\Events
- Thrown when an error event gets emitted, but not handled (aka no listeners).