| @@ 44-60 (lines=17) @@ | ||
| 41 | /** |
|
| 42 | * Handle an update the major info command. |
|
| 43 | */ |
|
| 44 | public function handleUpdateMajorInfo(UpdateMajorInfo $updateMajorInfo) |
|
| 45 | { |
|
| 46 | ||
| 47 | /** @var Event $event */ |
|
| 48 | $event = $this->offerRepository->load($updateMajorInfo->getItemId()); |
|
| 49 | ||
| 50 | $event->updateMajorInfo( |
|
| 51 | $updateMajorInfo->getTitle(), |
|
| 52 | $updateMajorInfo->getEventType(), |
|
| 53 | $updateMajorInfo->getLocation(), |
|
| 54 | $updateMajorInfo->getCalendar(), |
|
| 55 | $updateMajorInfo->getTheme() |
|
| 56 | ); |
|
| 57 | ||
| 58 | $this->offerRepository->save($event); |
|
| 59 | ||
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * @return string |
|
| @@ 229-245 (lines=17) @@ | ||
| 226 | /** |
|
| 227 | * Handle an update the major info command. |
|
| 228 | */ |
|
| 229 | public function handleUpdateMajorInfo(UpdateMajorInfo $updateMajorInfo) |
|
| 230 | { |
|
| 231 | ||
| 232 | /** @var Place $place */ |
|
| 233 | $place = $this->offerRepository->load($updateMajorInfo->getItemId()); |
|
| 234 | ||
| 235 | $place->updateMajorInfo( |
|
| 236 | $updateMajorInfo->getTitle(), |
|
| 237 | $updateMajorInfo->getEventType(), |
|
| 238 | $updateMajorInfo->getAddress(), |
|
| 239 | $updateMajorInfo->getCalendar(), |
|
| 240 | $updateMajorInfo->getTheme() |
|
| 241 | ); |
|
| 242 | ||
| 243 | $this->offerRepository->save($place); |
|
| 244 | ||
| 245 | } |
|
| 246 | } |
|
| 247 | ||