API Models TypedWildcardInterface - evansims/openfga-php GitHub Wiki

Defines the contract for typed wildcard specifications. A typed wildcard represents "all users of a specific type" in authorization rules. Instead of listing individual users, you can grant permissions to all members of a user type (like "all employees" or "all customers"). Use this when you want to create broad permission grants that automatically apply to all users of a particular type without explicit enumeration.

Table of Contents


Namespace

OpenFGA\Models


Source

View source code


Implements


Related Classes


Methods

getType

public function getType(): string

Get the object type that this wildcard represents. This returns the type name for which the wildcard grants access to all users of that type. For example, "user" would represent all users, "group" would represent all groups, etc.

View source


Returns

string — The object type that this wildcard represents


jsonSerialize

public function jsonSerialize(): array

View source


Returns

array

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