Skip to content
docsv0.19.0

Authority

Whose authority the operation spends when it runs. The distinction that matters is `WriteAsUser`: an operation that acts in somebody's name produces effects the world will attribute to THEM. That is a different kind of risk from an operation that merely writes, and it is why authority is its own dimension instead of a shade of mutation.

Authority::weight()

public function weight(): int

How much scrutiny this level demands — higher wins when profiles are joined.

Authority::cases()

public static function cases(): array

Authority::from()

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

Parameters

Parameters of from()
NameTypeDescription
$valuestring|int

Authority::tryFrom()

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

Parameters

Parameters of tryFrom()
NameTypeDescription
$valuestring|int