<?phpnamespace App\Entity;use App\Repository\ActionLogRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ActionLogRepository::class)]class ActionLog{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255)] private ?string $actions = null; #[ORM\Column(length: 255)] private ?string $entite = null; #[ORM\Column] private ?int $entiteId = null; #[ORM\Column] private ?\DateTimeImmutable $createdAt = null; #[ORM\ManyToOne(inversedBy: 'actionLogs')] #[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')] private ?User $user = null; #[ORM\Column(length: 255, nullable: true)] private ?string $motife = null; public function __construct(){ $this->createdAt= new \DateTimeImmutable(); } public function getId(): ?int { return $this->id; } public function getActions(): ?string { return $this->actions; } public function setActions(string $actions): static { $this->actions = $actions; return $this; } public function getEntite(): ?string { return $this->entite; } public function setEntite(string $entite): static { $this->entite = $entite; return $this; } public function getEntiteId(): ?int { return $this->entiteId; } public function setEntiteId(int $entiteId): static { $this->entiteId = $entiteId; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->createdAt; } public function setCreatedAt(\DateTimeImmutable $createdAt): static { $this->createdAt = $createdAt; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): static { $this->user = $user; return $this; } public function getMotife(): ?string { return $this->motife; } public function setMotife(?string $motife): static { $this->motife = $motife; return $this; }}