Skip to content
docsv0.1.0

SelfApprovalException

Thrown when a {@see \Milpa\Workflow\Entities\GatePassage}'s requester and approver would be the same opaque principal (e.g. "member:42") — the anti-self-approval constraint (D9).

SelfApprovalException::__construct()

public function __construct(string $principal, string $gateCode):

Parameters

Parameters of __construct()
NameTypeDescription
$principalstring
$gateCodestring

SelfApprovalException::getPrincipal()

public function getPrincipal(): string

SelfApprovalException::getGateCode()

public function getGateCode(): string