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(): string
Get the unique identifier for this event.
string
— A unique identifier for the event instance
public function getEventType(): string
Get the name/type of this event.
string
— The event type identifier
public function getOccurredAt(): DateTimeImmutable
Get 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(): bool
Check if event propagation should be stopped.
bool
— True if propagation should be stopped
public function stopPropagation(): void
Stop event propagation to remaining listeners.
void