<?php

namespace XcVm\Core\Events\Auth;

/**
 * Fired after a user session is terminated.
 *
 * @package XC_VM_Core_Events
 * @author  Divarion_D <https://github.com/Divarion-D>
 * @copyright 2025-2026 Vateron Media
 * @license AGPL-3.0 https://www.gnu.org/licenses/agpl-3.0.html
 */
final class UserLoggedOutEvent {
    /**
     * @param int    $userId      User that logged out.
     * @param string $username    Username that logged out.
     * @param float  $loggedOutAt Unix timestamp (with microseconds) of logout.
     */
    public function __construct(
        public readonly int    $userId,
        public readonly string $username,
        public readonly float  $loggedOutAt,
    ) {}
}
