|
@@ 503-512 (lines=10) @@
|
| 500 |
|
$location, |
| 501 |
|
$contactInformation |
| 502 |
|
)); |
| 503 |
|
} elseif ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RAA))) { |
| 504 |
|
$this->apply(new IdentityAccreditedAsRaaEvent( |
| 505 |
|
$this->id, |
| 506 |
|
$this->nameId, |
| 507 |
|
$this->institution, |
| 508 |
|
$role, |
| 509 |
|
$location, |
| 510 |
|
$contactInformation |
| 511 |
|
)); |
| 512 |
|
} else { |
| 513 |
|
throw new DomainException('An Identity can only be accredited with either the RA or RAA role'); |
| 514 |
|
} |
| 515 |
|
} |
|
@@ 554-556 (lines=3) @@
|
| 551 |
|
|
| 552 |
|
if ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RA))) { |
| 553 |
|
$this->apply(new AppointedAsRaEvent($this->id, $this->institution, $this->nameId)); |
| 554 |
|
} elseif ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RAA))) { |
| 555 |
|
$this->apply(new AppointedAsRaaEvent($this->id, $this->institution, $this->nameId)); |
| 556 |
|
} else { |
| 557 |
|
throw new DomainException('An Identity can only be appointed as either RA or RAA'); |
| 558 |
|
} |
| 559 |
|
} |