src/Domain/Entity/NotificationLog.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 NotificationLog
  11. {
  12.     use Identifiable;
  13.     use Timestampable;
  14.     public const NOTIFICATION 'notification';
  15.     public const NOTIFICATION_ERROR 'notification_error';
  16.     public function __construct(
  17.         public string $action,
  18.         public string $entity,
  19.         public ?Person $author null,
  20.         public ?string $entityId null,
  21.         public ?string $data null,
  22.         public ?string $httpAgent null,
  23.     ) {}
  24. }