Skip to content
docsv0.1.0

GovernanceObservation

The observation resulting from crossing a governance plan against the available run evidence. Internal-use VO — does not carry `toArray()`.

GovernanceObservation::__construct()

public function __construct(Milpa\Governance\ObservationState $state, Milpa\Governance\GovernancePlan $plan, ?Milpa\Governance\GovernanceRun $run, ?string $reason):

Parameters

Parameters of __construct()
NameTypeDescription
$stateObservationStateState of the observation
$planGovernancePlanThe observed plan
$run?GovernanceRunThe relevant run, if any
$reason?stringReason, useful when `state` is STALE or INVALID