src/Entity/ActionLog.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ActionLogRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassActionLogRepository::class)]
  6. class ActionLog
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $actions null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $entite null;
  16.     #[ORM\Column]
  17.     private ?int $entiteId null;
  18.     #[ORM\Column]
  19.     private ?\DateTimeImmutable $createdAt null;
  20.     #[ORM\ManyToOne(inversedBy'actionLogs')]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private ?User $user null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $motife null;
  25.     public function __construct(){
  26.         $this->createdAt= new \DateTimeImmutable();
  27.     }
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getActions(): ?string
  33.     {
  34.         return $this->actions;
  35.     }
  36.     public function setActions(string $actions): static
  37.     {
  38.         $this->actions $actions;
  39.         return $this;
  40.     }
  41.     public function getEntite(): ?string
  42.     {
  43.         return $this->entite;
  44.     }
  45.     public function setEntite(string $entite): static
  46.     {
  47.         $this->entite $entite;
  48.         return $this;
  49.     }
  50.     public function getEntiteId(): ?int
  51.     {
  52.         return $this->entiteId;
  53.     }
  54.     public function setEntiteId(int $entiteId): static
  55.     {
  56.         $this->entiteId $entiteId;
  57.         return $this;
  58.     }
  59.     public function getCreatedAt(): ?\DateTimeImmutable
  60.     {
  61.         return $this->createdAt;
  62.     }
  63.     public function setCreatedAt(\DateTimeImmutable $createdAt): static
  64.     {
  65.         $this->createdAt $createdAt;
  66.         return $this;
  67.     }
  68.     public function getUser(): ?User
  69.     {
  70.         return $this->user;
  71.     }
  72.     public function setUser(?User $user): static
  73.     {
  74.         $this->user $user;
  75.         return $this;
  76.     }
  77.     public function getMotife(): ?string
  78.     {
  79.         return $this->motife;
  80.     }
  81.     public function setMotife(?string $motife): static
  82.     {
  83.         $this->motife $motife;
  84.         return $this;
  85.     }
  86. }