Skip to content
docsv0.1.0

ApprovalPolicy

How many approvals a {@see \Milpa\Workflow\Entities\GatePassage} needs before a {@see \Milpa\Workflow\Entities\GateDefinition} is considered passed.

ApprovalPolicy::label()

public function label(): string

Human-readable label for this policy.

ApprovalPolicy::requiredApprovals()

public function requiredApprovals(): int

Number of distinct approvals this policy requires; 0 means the count is either dynamic (QUORUM) or determined by evidence submission alone (AUTO).

ApprovalPolicy::cases()

public static function cases(): array

ApprovalPolicy::from()

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

Parameters

Parameters of from()
NameTypeDescription
$valuestring|int

ApprovalPolicy::tryFrom()

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

Parameters

Parameters of tryFrom()
NameTypeDescription
$valuestring|int