GateOutcomeRecord
The evidence record of a gate within a governance run: which gate, which verdict, where it was bound in the pipeline, and who produced it.
GateOutcomeRecord::__construct()
public function __construct(string $gate, Milpa\Governance\GateOutcome $outcome, ?string $boundTo, ?string $producerRef, ?string $justification = null):Parameters
| Name | Type | Description |
|---|---|---|
| $gate | string | Identifier of the governance gate (e.g.: "phpstan") |
| $outcome | GateOutcome | Verdict of the run |
| $boundTo | ?string | Pipeline point where it ran (e.g.: "ci:quality:phpstan") |
| $producerRef | ?string | Reference to the step/producer that emitted the verdict |
| $justification | ?string | Justification, required in practice for WAIVED |
GateOutcomeRecord::toArray()
public function toArray(): arraySerializes the record to an array for storage or transmission.