Admin-Bereich "Newsletter-Listen" (Plan dev/_tickets/entwicklungsplan- newsletter-listen.md): Berater und Kunden nach Filtern zusammenstellen, als Liste speichern und wieder laden, Export als XLSX/CSV. Jeder Export wird protokolliert (newsletter_list_exports). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
21 lines
592 B
PHP
21 lines
592 B
PHP
<?php
|
|
|
|
namespace App\Services\Newsletter;
|
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
/**
|
|
* Ergebnis einer Listen-Berechnung: deduplizierte Zeilen plus Kennzahlen,
|
|
* die erklären, warum Datensätze weggefallen sind.
|
|
*/
|
|
final class NewsletterListResult
|
|
{
|
|
/**
|
|
* @param Collection<int, array<string, mixed>> $rows
|
|
* @param array{customers_raw:int, consultants_raw:int, invalid:int, duplicates:int, total:int, customers:int, consultants:int} $stats
|
|
*/
|
|
public function __construct(
|
|
public readonly Collection $rows,
|
|
public readonly array $stats,
|
|
) {}
|
|
}
|