|
@@ 639-649 (lines=11) @@
|
| 636 |
|
$contactInformation, |
| 637 |
|
$institution |
| 638 |
|
)); |
| 639 |
|
} elseif ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RAA))) { |
| 640 |
|
$this->apply(new IdentityAccreditedAsRaaForInstitutionEvent( |
| 641 |
|
$this->id, |
| 642 |
|
$this->nameId, |
| 643 |
|
$this->institution, |
| 644 |
|
$role, |
| 645 |
|
$location, |
| 646 |
|
$contactInformation, |
| 647 |
|
$institution |
| 648 |
|
)); |
| 649 |
|
} else { |
| 650 |
|
throw new DomainException('An Identity can only be accredited with either the RA or RAA role'); |
| 651 |
|
} |
| 652 |
|
} |
|
@@ 704-706 (lines=3) @@
|
| 701 |
|
|
| 702 |
|
if ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RA))) { |
| 703 |
|
$this->apply(new AppointedAsRaForInstitutionEvent($this->id, $this->institution, $this->nameId, $institution)); |
| 704 |
|
} elseif ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RAA))) { |
| 705 |
|
$this->apply(new AppointedAsRaaForInstitutionEvent($this->id, $this->institution, $this->nameId, $institution)); |
| 706 |
|
} else { |
| 707 |
|
throw new DomainException('An Identity can only be appointed as either RA or RAA'); |
| 708 |
|
} |
| 709 |
|
} |