<?php

declare(strict_types=1);

namespace App\Domain\Email\Events;

use App\Domain\Email\Models\EmailAccount;
use Illuminate\Foundation\Events\Dispatchable;

/**
 * Bir EmailAccount Dovecot/Maildir tarafında sonlandırıldı.
 *
 * $dataDeleted=true → Maildir tamamen silindi.
 * $dataDeleted=false → Hesap disabled ama Maildir 30 gün korunuyor.
 */
final class MailboxTerminated
{
    use Dispatchable;

    public function __construct(
        public readonly EmailAccount $account,
        public readonly bool $dataDeleted,
    ) {}
}
