src/Entity/Historique.php line 11
<?phpnamespace App\Entity;use App\Repository\HistoriqueRepository;use Doctrine\DBAL\Types\Types;use App\Entity\Image;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(length: 255)]private ?string $titre = null;#[ORM\Column(type: Types::DATE_MUTABLE)]private ?\DateTimeInterface $annee = null;#[ORM\Column(type: Types::TEXT)]private ?string $description = null;#[ORM\ManyToOne(inversedBy: 'historiques')]private ?Image $image = null;public function getId(): ?int{return $this->id;}public function getTitre(): ?string{return $this->titre;}public function setTitre(string $titre): self{$this->titre = $titre;return $this;}public function getAnnee(): ?\DateTimeInterface{return $this->annee;}public function setAnnee(\DateTimeInterface $annee): self{$this->annee = $annee;return $this;}public function getDescription(): ?string{return $this->description;}public function setDescription(string $description): self{$this->description = $description;return $this;}public function getImage(): ?Image{return $this->image;}public function setImage(?Image $image): self{$this->image = $image;return $this;}}