src/Entity/UserLog.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UserLogRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassUserLogRepository::class), ORM\Table(name'user_activity_log')]
  7. class UserLog
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column]
  14.     private ?int $user_id null;
  15.     #[ORM\Column]
  16.     private ?int $hospital_id null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $action null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $file_path null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  22.     private ?\DateTimeInterface $created_date null;
  23.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  24.     private ?\DateTimeInterface $updated_at null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getUserId(): ?int
  30.     {
  31.         return $this->user_id;
  32.     }
  33.     public function setUserId(int $user_id): self
  34.     {
  35.         $this->user_id $user_id;
  36.         return $this;
  37.     }
  38.     public function getHospitalId(): ?int
  39.     {
  40.         return $this->hospital_id;
  41.     }
  42.     public function setHospitalId(int $hospital_id): self
  43.     {
  44.         $this->hospital_id $hospital_id;
  45.         return $this;
  46.     }
  47.     public function getAction(): ?string
  48.     {
  49.         return $this->action;
  50.     }
  51.     public function setAction(string $action): self
  52.     {
  53.         $this->action $action;
  54.         return $this;
  55.     }
  56.     public function getFilePath(): ?string
  57.     {
  58.         return $this->file_path;
  59.     }
  60.     public function setFilePath(string $file_path): self
  61.     {
  62.         $this->file_path $file_path;
  63.         return $this;
  64.     }
  65.     public function getCreatedDate(): ?\DateTimeInterface
  66.     {
  67.         return $this->created_date;
  68.     }
  69.     public function setCreatedDate(\DateTimeInterface $created_date): self
  70.     {
  71.         $this->created_date $created_date;
  72.         return $this;
  73.     }
  74.     public function getUpdatedAt(): ?\DateTimeInterface
  75.     {
  76.         return $this->updated_at;
  77.     }
  78.     public function setUpdatedAt(?\DateTimeInterface $updated_at): self
  79.     {
  80.         $this->updated_at $updated_at;
  81.         return $this;
  82.     }
  83. }