src/Entity/Historique.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\HistoriqueRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassHistoriqueRepository::class)]
  7. class Historique
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column]
  14.     private ?\DateTimeImmutable $createdAt null;
  15.     #[ORM\ManyToOne(inversedBy'historiques')]
  16.     private ?User $user null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $auteur null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $action null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $profil null;
  23.     #[ORM\ManyToOne(inversedBy'historiques')]
  24.     private ?JobCard $jobcard null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function __construct()
  30.     {
  31.         $this->createdAt = new \DateTimeImmutable();
  32.     }
  33.     public function getCreatedAt(): ?\DateTimeImmutable
  34.     {
  35.         return $this->createdAt;
  36.     }
  37.     public function setCreatedAt(\DateTimeImmutable $createdAt): static
  38.     {
  39.         $this->createdAt $createdAt;
  40.         return $this;
  41.     }
  42.     public function getUser(): ?User
  43.     {
  44.         return $this->user;
  45.     }
  46.     public function setUser(?User $user): static
  47.     {
  48.         $this->user $user;
  49.         return $this;
  50.     }
  51.     public function getAuteur(): ?string
  52.     {
  53.         return $this->auteur;
  54.     }
  55.     public function setAuteur(?string $auteur): static
  56.     {
  57.         $this->auteur $auteur;
  58.         return $this;
  59.     }
  60.     public function getAction(): ?string
  61.     {
  62.         return $this->action;
  63.     }
  64.     public function setAction(?string $action): static
  65.     {
  66.         $this->action $action;
  67.         return $this;
  68.     }
  69.     public function getProfil(): ?string
  70.     {
  71.         return $this->profil;
  72.     }
  73.     public function setProfil(?string $profil): static
  74.     {
  75.         $this->profil $profil;
  76.         return $this;
  77.     }
  78.     public function getJobcard(): ?JobCard
  79.     {
  80.         return $this->jobcard;
  81.     }
  82.     public function setJobcard(?JobCard $jobcard): static
  83.     {
  84.         $this->jobcard $jobcard;
  85.         return $this;
  86.     }
  87. }