src/Domain/Entity/RevisionLog.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 RevisionLog
  11. {
  12.     use Identifiable;
  13.     use Timestampable;
  14.     public const CREATE 'create';
  15.     public const DELETE 'delete';
  16.     public const TRANSFER_COMMENT 'transfer_comment';
  17.     public const TRANSFER_PICTURE 'transfer_picture';
  18.     public const UPDATE 'update';
  19.     public const VALIDATE 'validate';
  20.     public const SELECT 'select';
  21.     public const REFUSE 'refuse_ownership_request';
  22.     public const ACCEPT 'accept_ownership_request';
  23.     public function __construct(
  24.         public string $action,
  25.         public string $entity,
  26.         public ?Person $author null,
  27.         public ?string $entityId null,
  28.         public ?string $data null,
  29.         public ?string $httpAgent null,
  30.     ) {}
  31. }