Skip to content
docsv0.1.0

GateOutcome

Verdict of a governance gate after a real run. Mirrors the shape of `Milpa\Enums\VerificationStatus` (tri-state passed/failed/waived, plus pending for asynchronous verifications not yet resolved) — without importing it: this leaf is php-only and does not depend on `milpa/core`.

GateOutcome::isSatisfied()

public function isSatisfied(): bool

Whether the verdict releases the gate. PASSED and WAIVED satisfy it; FAILED and PENDING do not.

GateOutcome::isFinal()

public function isFinal(): bool

Whether the verdict is terminal (anything but PENDING).

GateOutcome::cases()

public static function cases(): array

GateOutcome::from()

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

Parameters

Parameters of from()
NameTypeDescription
$valuestring|int

GateOutcome::tryFrom()

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

Parameters

Parameters of tryFrom()
NameTypeDescription
$valuestring|int