API Events EventInterface - evansims/openfga-php GitHub Wiki
Base interface for all domain events. Events represent something significant that happened in the domain. They are immutable value objects that capture the facts about what occurred.
Table of Contents
OpenFGA\Events
public function getEventId(): stringGet the unique identifier for this event.
string — A unique identifier for the event instance
public function getEventType(): stringGet the name/type of this event.
string — The event type identifier
public function getOccurredAt(): DateTimeImmutableGet when this event occurred.
DateTimeImmutable — The timestamp when the event was created
public function getPayload(): array<string, mixed>Get the event payload data.
array<string, mixed> — The event data
public function isPropagationStopped(): boolCheck if event propagation should be stopped.
bool — True if propagation should be stopped
public function stopPropagation(): voidStop event propagation to remaining listeners.
void