Skip to content
docsv0.2.0

RequirementLevel

How strongly the graph depends on a capability. A missing `Required` capability blocks boot; a missing `Suggested` one degrades to a warning (a fallback path); an `Optional` one is purely additive. This is the resolution-level classification the engine reasons in — the canonical `requires` / `suggests` records themselves live in milpa/core.

RequirementLevel::cases()

public static function cases(): array

RequirementLevel::from()

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

Parameters

Parameters of from()
NameTypeDescription
$valuestring|int

RequirementLevel::tryFrom()

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

Parameters

Parameters of tryFrom()
NameTypeDescription
$valuestring|int