|
@@ 626-636 (lines=11) @@
|
| 623 |
|
$contactInformation, |
| 624 |
|
$institution |
| 625 |
|
)); |
| 626 |
|
} elseif ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RAA))) { |
| 627 |
|
$this->apply(new IdentityAccreditedAsRaaForInstitutionEvent( |
| 628 |
|
$this->id, |
| 629 |
|
$this->nameId, |
| 630 |
|
$this->institution, |
| 631 |
|
$role, |
| 632 |
|
$location, |
| 633 |
|
$contactInformation, |
| 634 |
|
$institution |
| 635 |
|
)); |
| 636 |
|
} else { |
| 637 |
|
throw new DomainException('An Identity can only be accredited with either the RA or RAA role'); |
| 638 |
|
} |
| 639 |
|
} |
|
@@ 691-693 (lines=3) @@
|
| 688 |
|
|
| 689 |
|
if ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RA))) { |
| 690 |
|
$this->apply(new AppointedAsRaForInstitutionEvent($this->id, $this->institution, $this->nameId, $institution)); |
| 691 |
|
} elseif ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RAA))) { |
| 692 |
|
$this->apply(new AppointedAsRaaForInstitutionEvent($this->id, $this->institution, $this->nameId, $institution)); |
| 693 |
|
} else { |
| 694 |
|
throw new DomainException('An Identity can only be appointed as either RA or RAA'); |
| 695 |
|
} |
| 696 |
|
} |