API Models UsersetTreeTupleToUsersetInterface - evansims/openfga-php GitHub Wiki
Defines a tuple-to-userset operation node in authorization evaluation trees. UsersetTreeTupleToUserset represents a node in the userset evaluation tree that resolves users through tuple-to-userset mappings. This enables complex authorization patterns where access is determined by following relationships from one object to usersets on related objects. Use this interface when working with authorization evaluation trees that contain tuple-to-userset operations, typically returned from expand operations.
Table of Contents
OpenFGA\Models
ModelInterface
JsonSerializable
- UsersetTreeTupleToUserset (implementation)
public function getComputed(): array<int, ComputedInterface>
Get the array of computed usersets for the tuple-to-userset operation. This returns a collection of computed userset references that define how to resolve the users from the tuple-to-userset mapping in the tree expansion.
array<
int, [
ComputedInterface](ComputedInterface)>
— Array of computed userset references
public function getTupleset(): string
Get the tupleset string identifying which tuples to use for computation. This string identifies the specific tupleset that should be used to resolve users through the tuple-to-userset operation during tree expansion.
string
— The tupleset identifier string
public function jsonSerialize(): array
array