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
OpenFGA\Models
ModelInterface
Stringable
JsonSerializable
- TypedWildcard (implementation)
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.
string
— The object type that this wildcard represents
public function jsonSerialize(): array
array