|
@@ 693-703 (lines=11) @@
|
| 690 |
|
$contactInformation, |
| 691 |
|
$institution |
| 692 |
|
)); |
| 693 |
|
} elseif ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RAA))) { |
| 694 |
|
$this->apply(new IdentityAccreditedAsRaaForInstitutionEvent( |
| 695 |
|
$this->id, |
| 696 |
|
$this->nameId, |
| 697 |
|
$this->institution, |
| 698 |
|
$role, |
| 699 |
|
$location, |
| 700 |
|
$contactInformation, |
| 701 |
|
$institution |
| 702 |
|
)); |
| 703 |
|
} else { |
| 704 |
|
throw new DomainException('An Identity can only be accredited with either the RA or RAA role'); |
| 705 |
|
} |
| 706 |
|
} |
|
@@ 758-760 (lines=3) @@
|
| 755 |
|
|
| 756 |
|
if ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RA))) { |
| 757 |
|
$this->apply(new AppointedAsRaForInstitutionEvent($this->id, $this->institution, $this->nameId, $institution)); |
| 758 |
|
} elseif ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RAA))) { |
| 759 |
|
$this->apply(new AppointedAsRaaForInstitutionEvent($this->id, $this->institution, $this->nameId, $institution)); |
| 760 |
|
} else { |
| 761 |
|
throw new DomainException('An Identity can only be appointed as either RA or RAA'); |
| 762 |
|
} |
| 763 |
|
} |