<?php

declare(strict_types=1);

namespace App\Framework\Database\Events\Examples;

/**
 * Example Domain Event - User Registration Analytics
 */
final readonly class UserRegistrationAnalyticsEvent
{
    public function __construct(
        public object $user,
        public string $source,
        public string $channel,
        public ?float $timestamp = null
    ) {
        $this->timestamp ??= microtime(true);
    }
}
