<?php

declare(strict_types=1);

namespace App\Administration\Application\Command\RequestPasswordReset;

use App\Shared\Domain\Tenant\TenantId;

/**
 * Command to request a password reset.
 *
 * This command is dispatched when a user submits the "forgot password" form.
 * The handler will generate a reset token and trigger the email sending.
 *
 * Security: The handler always returns success, even if the email doesn't exist,
 * to prevent email enumeration attacks.
 */
final readonly class RequestPasswordResetCommand
{
    public function __construct(
        public string $email,
        public TenantId $tenantId,
    ) {
    }
}
