Skip to content
docsv0.1.0

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

Parameters of __construct()
NameTypeDescription
$gatestringIdentifier of the governance gate (e.g.: "phpstan")
$outcomeGateOutcomeVerdict of the run
$boundTo?stringPipeline point where it ran (e.g.: "ci:quality:phpstan")
$producerRef?stringReference to the step/producer that emitted the verdict
$justification?stringJustification, required in practice for WAIVED

GateOutcomeRecord::toArray()

public function toArray(): array

Serializes the record to an array for storage or transmission.