Skip to content
docsv0.8.0

VerificationRejectedEvent

Dispatched when a verification resolves as not satisfied (failed). Dispatch payload shape: a verifier dispatching this through a {@see \Milpa\Interfaces\Event\MilpaEventDispatcherInterface} MUST use the event name `verification.rejected` with a payload of exactly `['event' => VerificationRejectedEvent $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()`.

VerificationRejectedEvent::__construct()

public function __construct(Milpa\ValueObjects\Verification\VerificationRequest $request, Milpa\ValueObjects\Verification\VerificationResult $result):

Parameters

Parameters of __construct()
NameTypeDescription
$requestMilpa\ValueObjects\Verification\VerificationRequest
$resultMilpa\ValueObjects\Verification\VerificationResult

VerificationRejectedEvent::getRequest()

public function getRequest(): Milpa\ValueObjects\Verification\VerificationRequest

VerificationRejectedEvent::getResult()

public function getResult(): Milpa\ValueObjects\Verification\VerificationResult

VerificationRejectedEvent::getRequestId()

public function getRequestId(): ?string

Correlation id (#7) of the originating request, if one was assigned. Distinguishes concurrent verifications that share the same `subject`.