| @@ 180-192 (lines=13) @@ | ||
| 177 | } |
|
| 178 | } |
|
| 179 | ||
| 180 | private function applyEventWasLabelled( |
|
| 181 | EventWasLabelled $eventWasLabelled, |
|
| 182 | DomainMessage $domainMessage |
|
| 183 | ) { |
|
| 184 | $this->writeHistory( |
|
| 185 | $eventWasLabelled->getEventId(), |
|
| 186 | new Log( |
|
| 187 | $this->domainMessageDateToNativeDate($domainMessage->getRecordedOn()), |
|
| 188 | new String("Label '{$eventWasLabelled->getLabel()}' toegepast"), |
|
| 189 | $this->getAuthorFromMetadata($domainMessage->getMetadata()) |
|
| 190 | ) |
|
| 191 | ); |
|
| 192 | } |
|
| 193 | ||
| 194 | private function applyUnlabelled( |
|
| 195 | Unlabelled $unlabelled, |
|
| @@ 194-206 (lines=13) @@ | ||
| 191 | ); |
|
| 192 | } |
|
| 193 | ||
| 194 | private function applyUnlabelled( |
|
| 195 | Unlabelled $unlabelled, |
|
| 196 | DomainMessage $domainMessage |
|
| 197 | ) { |
|
| 198 | $this->writeHistory( |
|
| 199 | $unlabelled->getEventId(), |
|
| 200 | new Log( |
|
| 201 | $this->domainMessageDateToNativeDate($domainMessage->getRecordedOn()), |
|
| 202 | new String("Label '{$unlabelled->getLabel()}' verwijderd"), |
|
| 203 | $this->getAuthorFromMetadata($domainMessage->getMetadata()) |
|
| 204 | ) |
|
| 205 | ); |
|
| 206 | } |
|
| 207 | ||
| 208 | /** |
|
| 209 | * @param LabelsMerged $labelsMerged |
|
| @@ 244-256 (lines=13) @@ | ||
| 241 | ); |
|
| 242 | } |
|
| 243 | ||
| 244 | private function applyTitleTranslated( |
|
| 245 | TitleTranslated $titleTranslated, |
|
| 246 | DomainMessage $domainMessage |
|
| 247 | ) { |
|
| 248 | $this->writeHistory( |
|
| 249 | $titleTranslated->getEventId(), |
|
| 250 | new Log( |
|
| 251 | $this->domainMessageDateToNativeDate($domainMessage->getRecordedOn()), |
|
| 252 | new String("Titel vertaald ({$titleTranslated->getLanguage()})"), |
|
| 253 | $this->getAuthorFromMetadata($domainMessage->getMetadata()) |
|
| 254 | ) |
|
| 255 | ); |
|
| 256 | } |
|
| 257 | ||
| 258 | private function applyDescriptionTranslated( |
|
| 259 | DescriptionTranslated $descriptionTranslated, |
|
| @@ 258-272 (lines=15) @@ | ||
| 255 | ); |
|
| 256 | } |
|
| 257 | ||
| 258 | private function applyDescriptionTranslated( |
|
| 259 | DescriptionTranslated $descriptionTranslated, |
|
| 260 | DomainMessage $domainMessage |
|
| 261 | ) { |
|
| 262 | $this->writeHistory( |
|
| 263 | $descriptionTranslated->getEventId(), |
|
| 264 | new Log( |
|
| 265 | $this->domainMessageDateToNativeDate( |
|
| 266 | $domainMessage->getRecordedOn() |
|
| 267 | ), |
|
| 268 | new String("Beschrijving vertaald ({$descriptionTranslated->getLanguage()})"), |
|
| 269 | $this->getAuthorFromMetadata($domainMessage->getMetadata()) |
|
| 270 | ) |
|
| 271 | ); |
|
| 272 | } |
|
| 273 | ||
| 274 | private function applyTranslationApplied( |
|
| 275 | TranslationApplied $translationApplied, |
|