Skip to content
docsv0.19.0

Mutation

What this operation changes, and for how long. `Unknown` is the default everywhere in this namespace and it is NOT a gap to be filled in later with something permissive. Under GOV-05 — «lo desconocido nunca reduce controles» — an unclassified operation carries the ceiling of its dimension, not the floor. The reason is the failure this house keeps measuring: a system that treats «I could not determine it» as «it is fine» has built a default that whoever needs to pass the gate will learn to produce.

Mutation::weight()

public function weight(): int

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

Mutation::cases()

public static function cases(): array

Mutation::from()

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

Parameters

Parameters of from()
NameTypeDescription
$valuestring|int

Mutation::tryFrom()

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

Parameters

Parameters of tryFrom()
NameTypeDescription
$valuestring|int