|
@@ 586-595 (lines=10) @@
|
| 583 |
|
$location, |
| 584 |
|
$contactInformation |
| 585 |
|
)); |
| 586 |
|
} elseif ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RAA))) { |
| 587 |
|
$this->apply(new IdentityAccreditedAsRaaEvent( |
| 588 |
|
$this->id, |
| 589 |
|
$this->nameId, |
| 590 |
|
$this->institution, |
| 591 |
|
$role, |
| 592 |
|
$location, |
| 593 |
|
$contactInformation |
| 594 |
|
)); |
| 595 |
|
} else { |
| 596 |
|
throw new DomainException('An Identity can only be accredited with either the RA or RAA role'); |
| 597 |
|
} |
| 598 |
|
} |
|
@@ 637-639 (lines=3) @@
|
| 634 |
|
|
| 635 |
|
if ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RA))) { |
| 636 |
|
$this->apply(new AppointedAsRaEvent($this->id, $this->institution, $this->nameId)); |
| 637 |
|
} elseif ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RAA))) { |
| 638 |
|
$this->apply(new AppointedAsRaaEvent($this->id, $this->institution, $this->nameId)); |
| 639 |
|
} else { |
| 640 |
|
throw new DomainException('An Identity can only be appointed as either RA or RAA'); |
| 641 |
|
} |
| 642 |
|
} |