|
@@ 576-586 (lines=11) @@
|
| 573 |
|
$contactInformation, |
| 574 |
|
$institution |
| 575 |
|
)); |
| 576 |
|
} elseif ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RAA))) { |
| 577 |
|
$this->apply(new IdentityAccreditedAsRaaForInstitutionEvent( |
| 578 |
|
$this->id, |
| 579 |
|
$this->nameId, |
| 580 |
|
$this->institution, |
| 581 |
|
$role, |
| 582 |
|
$location, |
| 583 |
|
$contactInformation, |
| 584 |
|
$institution |
| 585 |
|
)); |
| 586 |
|
} else { |
| 587 |
|
throw new DomainException('An Identity can only be accredited with either the RA or RAA role'); |
| 588 |
|
} |
| 589 |
|
} |
|
@@ 645-647 (lines=3) @@
|
| 642 |
|
if ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RA))) { |
| 643 |
|
$this->apply(new AppointedAsRaForInstitutionEvent($this->id, $this->institution, $this->nameId, |
| 644 |
|
$institution)); |
| 645 |
|
} elseif ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RAA))) { |
| 646 |
|
$this->apply(new AppointedAsRaaForInstitutionEvent($this->id, $this->institution, $this->nameId, |
| 647 |
|
$institution)); |
| 648 |
|
} else { |
| 649 |
|
throw new DomainException('An Identity can only be appointed as either RA or RAA'); |
| 650 |
|
} |