GovernanceGate
A governance gate: a checkpoint that validates conformance with a rule. It can be bound to a specific point in the pipeline (CI/CD, check-in, review).
GovernanceGate::__construct()
public function __construct(string $id, string $description, Milpa\Governance\EnforcementTier $tier, ?string $boundTo = null, ?Milpa\Governance\GateOutcome $outcome = null):Parameters
| Name | Type | Description |
|---|---|---|
| $id | string | Unique identifier of the gate |
| $description | string | Description of what this gate validates |
| $tier | EnforcementTier | Enforcement level |
| $boundTo | ?string | Point in the pipeline where it runs (e.g.: "ci:quality:phpstan") |
| $outcome | ?GateOutcome | Result of the last run (placeholder for forward-compat) |
GovernanceGate::toArray()
public function toArray(): arraySerializes the gate to an array for storage or transmission.