@@ 535-544 (lines=10) @@ | ||
532 | $location, |
|
533 | $contactInformation |
|
534 | )); |
|
535 | } elseif ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RAA))) { |
|
536 | $this->apply(new IdentityAccreditedAsRaaEvent( |
|
537 | $this->id, |
|
538 | $this->nameId, |
|
539 | $this->institution, |
|
540 | $role, |
|
541 | $location, |
|
542 | $contactInformation |
|
543 | )); |
|
544 | } else { |
|
545 | throw new DomainException('An Identity can only be accredited with either the RA or RAA role'); |
|
546 | } |
|
547 | } |
|
@@ 586-588 (lines=3) @@ | ||
583 | ||
584 | if ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RA))) { |
|
585 | $this->apply(new AppointedAsRaEvent($this->id, $this->institution, $this->nameId)); |
|
586 | } elseif ($role->equals(new RegistrationAuthorityRole(RegistrationAuthorityRole::ROLE_RAA))) { |
|
587 | $this->apply(new AppointedAsRaaEvent($this->id, $this->institution, $this->nameId)); |
|
588 | } else { |
|
589 | throw new DomainException('An Identity can only be appointed as either RA or RAA'); |
|
590 | } |
|
591 | } |