src/Domain/Entity/StatisticLog.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 RevisionLog
  7.  *
  8.  * @package App\Domain\Entity
  9.  */
  10. class StatisticLog
  11. {
  12.     use Identifiable;
  13.     use Timestampable;
  14.     public const READ 'read';
  15.     public const READ_LIST 'read_list';
  16.     public const CLICK 'click';
  17.     public function __construct(
  18.         public string $action,
  19.         public string $entity,
  20.         public ?Person $author null,
  21.         public ?string $entityId null,
  22.         public ?string $data null,
  23.         public ?string $httpAgent null,
  24.     ) {}
  25. }