API Models NodeUnionInterface - evansims/openfga-php GitHub Wiki

Represents a union operation between multiple nodes in a userset tree. A node union combines multiple authorization nodes where users from any of the constituent nodes are included in the result set. This implements the logical OR operation in authorization evaluation.

Table of Contents


Namespace

OpenFGA\Models


Source

View source code


Implements


Related Classes


Methods

getNodes

public function getNodes(): array<int, NodeInterface>

Get the collection of nodes that participate in this union. Returns all the nodes that are combined in this union operation. The union result includes users from any of these nodes.

View source


Returns

array&lt;int, [NodeInterface](NodeInterface)&gt; — The array of nodes in the union


jsonSerialize

public function jsonSerialize(): array

Serialize the node union to its JSON representation.

View source


Returns

array

⚠️ **GitHub.com Fallback** ⚠️