src/Domain/Entity/PaywallLog.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Domain\Entity;
  3. use App\Domain\Entity\Behavior\Identifiable;
  4. use Gedmo\Timestampable\Traits\Timestampable;
  5. /**
  6.  * Class PaywallLog
  7.  *
  8.  * @package App\Domain\Entity
  9.  */
  10. class PaywallLog
  11. {
  12.     use Identifiable;
  13.     use Timestampable;
  14.     public const PAYWALL_SHOW 'paywall_show';
  15.     public const PAYWALL_PAID 'paywall_paid';
  16.     public const PAYWALL_CONVERT 'paywall_convert';
  17.     public const PAYWALL_ERROR 'paywall_error';
  18.     public const PAYWALL_TRIAL_STARTED 'paywall_trial_started';
  19.     public function __construct(
  20.         public string $action,
  21.         public string $entity,
  22.         public ?Person $author null,
  23.         public ?string $entityId null,
  24.         public ?string $data null,
  25.         public ?string $httpAgent null,
  26.     ) {}
  27. }