|
@@ 91-104 (lines=14) @@
|
| 88 |
|
$this->repository->save($institutionConfiguration); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
public function handleAddRaLocationCommand(AddRaLocationCommand $command) |
| 92 |
|
{ |
| 93 |
|
$institution = new Institution($command->institution); |
| 94 |
|
|
| 95 |
|
$institutionConfiguration = $this->loadInstitutionConfigurationFor($institution); |
| 96 |
|
$institutionConfiguration->addRaLocation( |
| 97 |
|
new RaLocationId($command->raLocationId), |
| 98 |
|
new RaLocationName($command->raLocationName), |
| 99 |
|
new Location($command->location), |
| 100 |
|
new ContactInformation($command->contactInformation) |
| 101 |
|
); |
| 102 |
|
|
| 103 |
|
$this->repository->save($institutionConfiguration); |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
public function handleChangeRaLocationCommand(ChangeRaLocationCommand $command) |
| 107 |
|
{ |
|
@@ 106-119 (lines=14) @@
|
| 103 |
|
$this->repository->save($institutionConfiguration); |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
public function handleChangeRaLocationCommand(ChangeRaLocationCommand $command) |
| 107 |
|
{ |
| 108 |
|
$institution = new Institution($command->institution); |
| 109 |
|
|
| 110 |
|
$institutionConfiguration = $this->loadInstitutionConfigurationFor($institution); |
| 111 |
|
$institutionConfiguration->changeRaLocation( |
| 112 |
|
new RaLocationId($command->raLocationId), |
| 113 |
|
new RaLocationName($command->raLocationName), |
| 114 |
|
new Location($command->location), |
| 115 |
|
new ContactInformation($command->contactInformation) |
| 116 |
|
); |
| 117 |
|
|
| 118 |
|
$this->repository->save($institutionConfiguration); |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
public function handleRemoveRaLocationCommand(RemoveRaLocationCommand $command) |
| 122 |
|
{ |