<?php
namespace App\Domain\Entity;
use App\Domain\Entity\Behavior\Identifiable;
use Gedmo\Timestampable\Traits\Timestampable;
/**
* Class PaywallLog
*
* @package App\Domain\Entity
*/
class PaywallLog
{
use Identifiable;
use Timestampable;
public const PAYWALL_SHOW = 'paywall_show';
public const PAYWALL_PAID = 'paywall_paid';
public const PAYWALL_CONVERT = 'paywall_convert';
public const PAYWALL_ERROR = 'paywall_error';
public const PAYWALL_TRIAL_STARTED = 'paywall_trial_started';
public function __construct(
public string $action,
public string $entity,
public ?Person $author = null,
public ?string $entityId = null,
public ?string $data = null,
public ?string $httpAgent = null,
) {}
}