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

+15
View File
@@ -65,6 +65,11 @@ class NewsletterConsent
return $this->email;
}
public function setEmail(string $email): void
{
$this->email = mb_strtolower(trim($email));
}
public function getMailjetListId(): int
{
return $this->mailjetListId;
@@ -90,6 +95,16 @@ class NewsletterConsent
return $this->lastName;
}
public function getCreatedAt(): \DateTimeImmutable
{
return $this->createdAt;
}
public function getUpdatedAt(): \DateTimeImmutable
{
return $this->updatedAt;
}
public function isConfirmed(): bool
{
return null !== $this->confirmedAt && null === $this->revokedAt;