Skip to content
docsv0.19.0

Externality

Who, outside this process, finds out — and can no longer be made to forget. This is the dimension `mutating: bool` could never carry, and the one that decides whether a mistake stays inside the house. Writing a local file and sending an email are both «mutations»; only one of them arrives at somebody else's inbox.

Externality::weight()

public function weight(): int

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

Externality::cases()

public static function cases(): array

Externality::from()

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

Parameters

Parameters of from()
NameTypeDescription
$valuestring|int

Externality::tryFrom()

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

Parameters

Parameters of tryFrom()
NameTypeDescription
$valuestring|int