<?php
declare(strict_types=1);
namespace App\Messenger\Analytics;
final class PostHogCaptureMessage
{
/**
* @param array<string, mixed> $properties
* @param array<string, mixed>|null $identifyProperties
*/
public function __construct(
private readonly string $event,
private readonly string $distinctId,
private readonly array $properties = [],
private readonly ?array $identifyProperties = null,
private readonly ?string $sessionId = null,
) {
}
public function getEvent(): string
{
return $this->event;
}
public function getDistinctId(): string
{
return $this->distinctId;
}
/**
* @return array<string, mixed>
*/
public function getProperties(): array
{
return $this->properties;
}
/**
* @return array<string, mixed>|null
*/
public function getIdentifyProperties(): ?array
{
return $this->identifyProperties;
}
public function getSessionId(): ?string
{
return $this->sessionId;
}
}