Skip to content
docsv0.12.0

StepPresence

How live a step is for this call — the distinction the whole inspector exists to make. `Dormant` and `Skipped` both produce no effect and mean opposite things: dormant is a rule that exists and cannot fire given what is already known, skipped is a subsystem that was never wired. Collapsing them into "off" is how a missing rate limiter reads as a rate limiter with nothing to do. `Conditional` is the honest answer when only runtime data can settle it.

StepPresence::cases()

public static function cases(): array

StepPresence::from()

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

Parameters

Parameters of from()
NameTypeDescription
$valuestring|int

StepPresence::tryFrom()

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

Parameters

Parameters of tryFrom()
NameTypeDescription
$valuestring|int