API Events OperationCompletedEvent - evansims/openfga-php GitHub Wiki
Event fired when a high-level operation completes. This event tracks the completion of business operations with success/failure information.
Table of Contents
OpenFGA\Events
public function getContext(): array<string, mixed>
array<
string,
mixed>
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 getException(): ?Throwable
Throwable
| null
public function getModelId(): ?string
string
| null
public function getOccurredAt(): DateTimeImmutable
Get when this event occurred.
DateTimeImmutable
— The timestamp when the event was created
public function getOperation(): string
string
public function getPayload(): array
Get the event payload data.
array
— The event data
public function getResult(): mixed
mixed
public function getStoreId(): ?string
string
| null
public function isPropagationStopped(): bool
Check if event propagation should be stopped.
bool
— True if propagation should be stopped
public function isSuccessful(): bool
bool
public function stopPropagation(): void
Stop event propagation to remaining listeners.
void