Skip to content
docsv0.1.0

GovernanceRule

A rule derived from a decision that must be upheld in the system. Each rule is traceable to its originating decision.

GovernanceRule::__construct()

public function __construct(string $id, string $statement, string $fromDecision):

Parameters

Parameters of __construct()
NameTypeDescription
$idstringUnique identifier of the rule
$statementstringThe statement of the rule (what must be upheld)
$fromDecisionstringID of the decision that originates it

GovernanceRule::toArray()

public function toArray(): array

Serializes the rule to an array for storage or transmission.