src/Entity/Historique.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\HistoriqueRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use App\Entity\Image;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassHistoriqueRepository::class)]
  8. class Historique
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $titre null;
  16.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  17.     private ?\DateTimeInterface $annee null;
  18.     #[ORM\Column(typeTypes::TEXT)]
  19.     private ?string $description null;
  20.     #[ORM\ManyToOne(inversedBy'historiques')]
  21.     private ?Image $image null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getTitre(): ?string
  27.     {
  28.         return $this->titre;
  29.     }
  30.     public function setTitre(string $titre): self
  31.     {
  32.         $this->titre $titre;
  33.         return $this;
  34.     }
  35.     public function getAnnee(): ?\DateTimeInterface
  36.     {
  37.         return $this->annee;
  38.     }
  39.     public function setAnnee(\DateTimeInterface $annee): self
  40.     {
  41.         $this->annee $annee;
  42.         return $this;
  43.     }
  44.     public function getDescription(): ?string
  45.     {
  46.         return $this->description;
  47.     }
  48.     public function setDescription(string $description): self
  49.     {
  50.         $this->description $description;
  51.         return $this;
  52.     }
  53.     public function getImage(): ?Image
  54.     {
  55.         return $this->image;
  56.     }
  57.     public function setImage(?Image $image): self
  58.     {
  59.         $this->image $image;
  60.         return $this;
  61.     }
  62. }