|
@@ 43-55 (lines=13) @@
|
| 40 |
|
$this->repository = $repository; |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
protected function applyVettedSecondFactorRevokedEvent( |
| 44 |
|
VettedSecondFactorRevokedEvent $event, |
| 45 |
|
DomainMessage $domainMessage |
| 46 |
|
) { |
| 47 |
|
$revocation = new SecondFactorRevocation(); |
| 48 |
|
$revocation->id = (string) Uuid::uuid4(); |
| 49 |
|
$revocation->institution = $event->identityInstitution; |
| 50 |
|
$revocation->secondFactorType = $event->secondFactorType->getSecondFactorType(); |
| 51 |
|
$revocation->revokedBy = 'self'; |
| 52 |
|
$revocation->recordedOn = new DateTime(new CoreDateTime($domainMessage->getRecordedOn()->toString())); |
| 53 |
|
|
| 54 |
|
$this->repository->save($revocation); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
protected function applyCompliedWithVettedSecondFactorRevocationEvent( |
| 58 |
|
CompliedWithVettedSecondFactorRevocationEvent $event, |
|
@@ 57-69 (lines=13) @@
|
| 54 |
|
$this->repository->save($revocation); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
protected function applyCompliedWithVettedSecondFactorRevocationEvent( |
| 58 |
|
CompliedWithVettedSecondFactorRevocationEvent $event, |
| 59 |
|
DomainMessage $domainMessage |
| 60 |
|
) { |
| 61 |
|
$revocation = new SecondFactorRevocation(); |
| 62 |
|
$revocation->id = (string) Uuid::uuid4(); |
| 63 |
|
$revocation->institution = $event->identityInstitution; |
| 64 |
|
$revocation->secondFactorType = $event->secondFactorType->getSecondFactorType(); |
| 65 |
|
$revocation->revokedBy = 'ra'; |
| 66 |
|
$revocation->recordedOn = new DateTime(new CoreDateTime($domainMessage->getRecordedOn()->toString())); |
| 67 |
|
|
| 68 |
|
$this->repository->save($revocation); |
| 69 |
|
} |
| 70 |
|
} |
| 71 |
|
|