<?php

declare(strict_types=1);

namespace App\Framework\Analytics\Events;

/**
 * Event für Business-Ereignisse (Conversions, Purchases, etc.)
 */
final readonly class BusinessEvent
{
    public function __construct(
        public string $event,
        public float $value = 0.0,
        public string $currency = 'EUR',
        public array $properties = [],
        public string $sessionId = '',
        public float $timestamp = -1
    ) {
        if ($this->timestamp === -1) {
            $this->timestamp = microtime(true);
        }
    }
}
