| @@ 220-236 (lines=17) @@ | ||
| 217 | /** |
|
| 218 | * Handle an update the major info command. |
|
| 219 | */ |
|
| 220 | public function handleUpdateMajorInfo(UpdateMajorInfo $updateMajorInfo) |
|
| 221 | { |
|
| 222 | ||
| 223 | /** @var Place $place */ |
|
| 224 | $place = $this->offerRepository->load($updateMajorInfo->getItemId()); |
|
| 225 | ||
| 226 | $place->updateMajorInfo( |
|
| 227 | $updateMajorInfo->getTitle(), |
|
| 228 | $updateMajorInfo->getEventType(), |
|
| 229 | $updateMajorInfo->getAddress(), |
|
| 230 | $updateMajorInfo->getCalendar(), |
|
| 231 | $updateMajorInfo->getTheme() |
|
| 232 | ); |
|
| 233 | ||
| 234 | $this->offerRepository->save($place); |
|
| 235 | ||
| 236 | } |
|
| 237 | } |
|
| 238 | ||
| @@ 45-61 (lines=17) @@ | ||
| 42 | * Handle an update the major info command. |
|
| 43 | * @param UpdateMajorInfo $updateMajorInfo |
|
| 44 | */ |
|
| 45 | public function handleUpdateMajorInfo(UpdateMajorInfo $updateMajorInfo) |
|
| 46 | { |
|
| 47 | ||
| 48 | /** @var Event $event */ |
|
| 49 | $event = $this->offerRepository->load($updateMajorInfo->getItemId()); |
|
| 50 | ||
| 51 | $event->updateMajorInfo( |
|
| 52 | $updateMajorInfo->getTitle(), |
|
| 53 | $updateMajorInfo->getEventType(), |
|
| 54 | $updateMajorInfo->getLocation(), |
|
| 55 | $updateMajorInfo->getCalendar(), |
|
| 56 | $updateMajorInfo->getTheme() |
|
| 57 | ); |
|
| 58 | ||
| 59 | $this->offerRepository->save($event); |
|
| 60 | ||
| 61 | } |
|
| 62 | ||
| 63 | /** |
|
| 64 | * @param UpdateAudience $updateAudience |
|