diff --git a/src/Data/Drafts.php b/src/Data/Drafts.php index 8944653..f4e7a3e 100644 --- a/src/Data/Drafts.php +++ b/src/Data/Drafts.php @@ -18,6 +18,11 @@ class Drafts extends Type { + public static function exportDescription(): string + { + return 'All drafts created by the user.'; + } + public function export(ZipFile $zip): void { Draft::query() @@ -37,12 +42,22 @@ protected function sanitize(Draft $draft): array ]); } + public static function anonymizeDescription(): string + { + return self::deleteDescription(); + } + public function anonymize(): void { // In the case of drafts, it makes no sense to keep them after a user is anonymized. $this->delete(); } + public static function deleteDescription(): string + { + return 'Delete all drafts created by the user.'; + } + public function delete(): void { Draft::query()