src/Domain/Entity/Log.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 Log
  7.  *
  8.  * @package App\Domain\Entity
  9.  */
  10. class Log
  11. {
  12.     use Identifiable;
  13.     use Timestampable;
  14.     public const CREATE 'create';
  15.     public const DELETE 'delete';
  16.     public const UPDATE 'update';
  17.     public const VALIDATE 'validate';
  18.     public const REQUEST_RESET_PASSWORD_ERROR 'request_reset_password_error';
  19.     public const STRIPE_ERROR 'stripe_error';
  20.     public const FIREBASE_EMAIL_NOT_FOUND 'firebase_email_not_found';
  21.     public const PICTURE_ACTION 'picture_action';
  22.     public const CLICK 'click';
  23.     public const REFERENT_SUGGESTION 'referent_suggestion';
  24.     public const CONTACT_PRO 'contact_pro';
  25.     /**
  26.      * @param string      $action
  27.      * @param string      $entity
  28.      * @param Person|null $author
  29.      * @param string|null $entityId
  30.      * @param string|null $data
  31.      * @param string|null $httpAgent
  32.      */
  33.     public function __construct(
  34.         public string $action,
  35.         public string $entity,
  36.         public ?Person $author null,
  37.         public ?string $entityId null,
  38.         public ?string $data null,
  39.         public ?string $httpAgent null,
  40.     ) {
  41.     }
  42.     public function getCreatedAt()
  43.     {
  44.         return $this->createdAt;
  45.     }
  46. }