VerificationGrantedEvent
Dispatched when a verification resolves as satisfied (passed or waived). Dispatch payload shape: a verifier dispatching this through a {@see \Milpa\Interfaces\Event\MilpaEventDispatcherInterface} MUST use the event name `verification.granted` with a payload of exactly `['event' => VerificationGrantedEvent $event]` — the event OBJECT keyed under `'event'`, not a flattened array of the request/result fields. A listener reaches the request/result via `$payload['event']->getRequest()` / `$payload['event']->getResult()`.
VerificationGrantedEvent::__construct()
public function __construct(Milpa\ValueObjects\Verification\VerificationRequest $request, Milpa\ValueObjects\Verification\VerificationResult $result):Parameters
| Name | Type | Description |
|---|---|---|
| $request | Milpa\ValueObjects\Verification\VerificationRequest | |
| $result | Milpa\ValueObjects\Verification\VerificationResult |
VerificationGrantedEvent::getRequest()
public function getRequest(): Milpa\ValueObjects\Verification\VerificationRequestVerificationGrantedEvent::getResult()
public function getResult(): Milpa\ValueObjects\Verification\VerificationResultVerificationGrantedEvent::getRequestId()
public function getRequestId(): ?stringCorrelation id (#7) of the originating request, if one was assigned. Distinguishes concurrent verifications that share the same `subject`.