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
ModelInterface
JsonSerializable
- BatchCheckSingleResult (implementation)
public function getAllowed(): ?bool
Get 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(): ?object
Get 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()