feat(mail) : DTO MailSyncReport + test unitaire
This commit is contained in:
24
src/Mail/Dto/MailSyncReport.php
Normal file
24
src/Mail/Dto/MailSyncReport.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Mail\Dto;
|
||||
|
||||
use DateTimeImmutable;
|
||||
|
||||
final readonly class MailSyncReport
|
||||
{
|
||||
/**
|
||||
* @param list<string> $errors
|
||||
*/
|
||||
public function __construct(
|
||||
public int $createdCount,
|
||||
public int $updatedCount,
|
||||
public int $deletedCount,
|
||||
public int $foldersScanned,
|
||||
public array $errors,
|
||||
public float $durationSeconds,
|
||||
public DateTimeImmutable $startedAt,
|
||||
public DateTimeImmutable $finishedAt,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user