<?php

declare(strict_types=1);

namespace App\Framework\Database\Events\Examples;

/**
 * Example Domain Event - User Welcome Email
 */
final readonly class UserWelcomeEmailEvent
{
    public function __construct(
        public object $user,
        public string $email,
        public ?float $timestamp = null
    ) {
        $this->timestamp ??= microtime(true);
    }
}
