| @@ 234-250 (lines=17) @@ | ||
| 231 | * Handle an update the major info command. |
|
| 232 | * @param UpdateMajorInfo $updateMajorInfo |
|
| 233 | */ |
|
| 234 | public function handleUpdateMajorInfo(UpdateMajorInfo $updateMajorInfo) |
|
| 235 | { |
|
| 236 | ||
| 237 | /** @var Place $place */ |
|
| 238 | $place = $this->offerRepository->load($updateMajorInfo->getItemId()); |
|
| 239 | ||
| 240 | $place->updateMajorInfo( |
|
| 241 | $updateMajorInfo->getTitle(), |
|
| 242 | $updateMajorInfo->getEventType(), |
|
| 243 | $updateMajorInfo->getAddress(), |
|
| 244 | $updateMajorInfo->getCalendar(), |
|
| 245 | $updateMajorInfo->getTheme() |
|
| 246 | ); |
|
| 247 | ||
| 248 | $this->offerRepository->save($place); |
|
| 249 | ||
| 250 | } |
|
| 251 | } |
|
| 252 | ||
| @@ 46-62 (lines=17) @@ | ||
| 43 | * Handle an update the major info command. |
|
| 44 | * @param UpdateMajorInfo $updateMajorInfo |
|
| 45 | */ |
|
| 46 | public function handleUpdateMajorInfo(UpdateMajorInfo $updateMajorInfo) |
|
| 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 UpdateLocation $updateLocation |
|
| 65 | */ |
|