| @@ 206-219 (lines=14) @@ | ||
| 203 | return $this->eventId; |
|
| 204 | } |
|
| 205 | ||
| 206 | protected function applyEventCreated(EventCreated $eventCreated) |
|
| 207 | { |
|
| 208 | $this->eventId = $eventCreated->getEventId(); |
|
| 209 | $this->titles[$eventCreated->getMainLanguage()->getCode()] = $eventCreated->getTitle(); |
|
| 210 | $this->calendar = $eventCreated->getCalendar(); |
|
| 211 | $this->audience = new Audience(AudienceType::EVERYONE()); |
|
| 212 | $this->contactPoint = new ContactPoint(); |
|
| 213 | $this->bookingInfo = new BookingInfo(); |
|
| 214 | $this->typeId = $eventCreated->getEventType()->getId(); |
|
| 215 | $this->themeId = $eventCreated->getTheme() ? $eventCreated->getTheme()->getId() : null; |
|
| 216 | $this->locationId = $eventCreated->getLocation(); |
|
| 217 | $this->mainLanguage = $eventCreated->getMainLanguage(); |
|
| 218 | $this->workflowStatus = WorkflowStatus::DRAFT(); |
|
| 219 | } |
|
| 220 | ||
| 221 | /** |
|
| 222 | * @param EventCopied $eventCopied |
|
| @@ 135-147 (lines=13) @@ | ||
| 132 | return $place; |
|
| 133 | } |
|
| 134 | ||
| 135 | protected function applyPlaceCreated(PlaceCreated $placeCreated): void |
|
| 136 | { |
|
| 137 | $this->mainLanguage = $placeCreated->getMainLanguage(); |
|
| 138 | $this->titles[$this->mainLanguage->getCode()] = $placeCreated->getTitle(); |
|
| 139 | $this->calendar = $placeCreated->getCalendar(); |
|
| 140 | $this->contactPoint = new ContactPoint(); |
|
| 141 | $this->bookingInfo = new BookingInfo(); |
|
| 142 | $this->typeId = $placeCreated->getEventType()->getId(); |
|
| 143 | $this->themeId = $placeCreated->getTheme() ? $placeCreated->getTheme()->getId() : null; |
|
| 144 | $this->addresses[$this->mainLanguage->getCode()] = $placeCreated->getAddress(); |
|
| 145 | $this->placeId = $placeCreated->getPlaceId(); |
|
| 146 | $this->workflowStatus = WorkflowStatus::DRAFT(); |
|
| 147 | } |
|
| 148 | ||
| 149 | public function updateMajorInfo( |
|
| 150 | Title $title, |
|