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


Namespace

OpenFGA\Models


Source

View source code


Implements


Related Classes


Methods

getAllowed

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.

View source


Returns

bool | null


getError

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.

View source


Returns

object | null


jsonSerialize

public function jsonSerialize()
⚠️ **GitHub.com Fallback** ⚠️