<?phpnamespace App\Entity;use App\Repository\HistoriqueRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: HistoriqueRepository::class)]class Historique{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column] private ?\DateTimeImmutable $createdAt = null; #[ORM\ManyToOne(inversedBy: 'historiques')] private ?User $user = null; #[ORM\Column(length: 255, nullable: true)] private ?string $auteur = null; #[ORM\Column(length: 255, nullable: true)] private ?string $action = null; #[ORM\Column(length: 255, nullable: true)] private ?string $profil = null; #[ORM\ManyToOne(inversedBy: 'historiques')] private ?JobCard $jobcard = null; public function getId(): ?int { return $this->id; } public function __construct() { $this->createdAt = new \DateTimeImmutable(); } 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 getAuteur(): ?string { return $this->auteur; } public function setAuteur(?string $auteur): static { $this->auteur = $auteur; return $this; } public function getAction(): ?string { return $this->action; } public function setAction(?string $action): static { $this->action = $action; return $this; } public function getProfil(): ?string { return $this->profil; } public function setProfil(?string $profil): static { $this->profil = $profil; return $this; } public function getJobcard(): ?JobCard { return $this->jobcard; } public function setJobcard(?JobCard $jobcard): static { $this->jobcard = $jobcard; return $this; }}