Skip to content
docsv0.9.0

PermissionSourceType

Where a granted permission came from. 2a emits only {@see self::Role} and {@see self::Scope}; {@see self::Policy} and {@see self::System} are reserved so a future policy/system grant needs no schema change.

PermissionSourceType::cases()

public static function cases(): array

PermissionSourceType::from()

public static function from(string|int $value): static

Parameters

Parameters of from()
NameTypeDescription
$valuestring|int

PermissionSourceType::tryFrom()

public static function tryFrom(string|int $value): ?static

Parameters

Parameters of tryFrom()
NameTypeDescription
$valuestring|int