$this->id, 'reason' => $this->reason, 'reasonLabel' => $this->reason?->getLabel(), 'details' => $this->details, 'status' => $this->status, 'statusLabel' => $this->status?->getLabel(), 'reportableType' => $this->reportableType(), 'reportableId' => $this->reportable_id, 'moderationCaseId' => $this->moderation_case_id, 'createdAt' => $this->created_at, ]; } private function reportableType(): string { return match ($this->reportable_type) { MealPosts::class => 'meal_post', PostReviews::class => 'post_review', User::class => 'user', default => 'unknown', }; } }