Skip to content
docsv0.1.0

GatePassageStatus

Lifecycle status of a {@see \Milpa\Workflow\Entities\GatePassage}.

GatePassageStatus::label()

public function label(): string

Human-readable label for this status.

GatePassageStatus::isFinal()

public function isFinal(): bool

True when the passage is resolved (approved or rejected) and will not change again — {@see \Milpa\Workflow\Entities\GatePassage} is append-only, so a final status is permanent.

GatePassageStatus::cases()

public static function cases(): array

GatePassageStatus::from()

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

Parameters

Parameters of from()
NameTypeDescription
$valuestring|int

GatePassageStatus::tryFrom()

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

Parameters

Parameters of tryFrom()
NameTypeDescription
$valuestring|int