<?phpnamespace App\Entity;use App\Repository\ArticlesRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=ArticlesRepository::class) */class Articles{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $Titre; /** * @ORM\Column(type="text", nullable=true) */ private $Description; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $Image; /** * @ORM\ManyToOne(targetEntity=Pages::class, inversedBy="articles") */ private $Pages; /** * @ORM\Column(type="datetime", nullable=true) */ private $Date; 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 getDescription(): ?string { return $this->Description; } public function setDescription(?string $Description): self { $this->Description = $Description; return $this; } public function getImage(): ?string { return $this->Image; } public function setImage(?string $Image): self { $this->Image = $Image; return $this; } public function getPages(): ?Pages { return $this->Pages; } public function setPages(?Pages $Pages): self { $this->Pages = $Pages; return $this; } public function getDate(): ?\DateTimeInterface { return $this->Date; } public function setDate(?\DateTimeInterface $Date): self { $this->Date = $Date; return $this; }}