feat: cli command to anonymize local database

This commit is contained in:
Björn Fromme committed 2026-06-17 10:32:02 +02:00
1 parent 66d0f511df
commit 80569e0977
7 files changed
+786

No files matched your search

+14
View File
@@ -164,6 +164,20 @@ class BookingEditDraft
return $this;
}
/**
* Replaces the form data without touching timestamps.
*
* Used by anonymization tooling that must not alter audit dates.
*
* @param array<string, mixed> $formData
*/
public function replaceFormData(array $formData): static
{
$this->formData = $formData;
return $this;
}
public function getCreatedAt(): \DateTimeImmutable
{
return $this->createdAt;