API Models BatchCheckSingleResultInterface - evansims/openfga-php GitHub Wiki
Represents the result of a single check within a batch check response. Each result contains whether the check was allowed and any error information if the check failed to complete successfully.
Table of Contents
OpenFGA\Models
ModelInterfaceJsonSerializable
- BatchCheckSingleResult (implementation)
public function getAllowed(): ?boolGet whether this check was allowed. Returns true if the user has the specified relationship with the object, false if they don't, or null if the check encountered an error.
bool | null
public function getError(): ?objectGet any error that occurred during this check. Returns error information if the check failed to complete successfully, or null if the check completed without errors.
object | null
public function jsonSerialize()