src/Entity/Articles.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ArticlesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ArticlesRepository::class)
  7.  */
  8. class Articles
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private $Titre;
  20.     /**
  21.      * @ORM\Column(type="text", nullable=true)
  22.      */
  23.     private $Description;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $Image;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=Pages::class, inversedBy="articles")
  30.      */
  31.     private $Pages;
  32.     /**
  33.      * @ORM\Column(type="datetime", nullable=true)
  34.      */
  35.     private $Date;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getTitre(): ?string
  41.     {
  42.         return $this->Titre;
  43.     }
  44.     public function setTitre(?string $Titre): self
  45.     {
  46.         $this->Titre $Titre;
  47.         return $this;
  48.     }
  49.     public function getDescription(): ?string
  50.     {
  51.         return $this->Description;
  52.     }
  53.     public function setDescription(?string $Description): self
  54.     {
  55.         $this->Description $Description;
  56.         return $this;
  57.     }
  58.     public function getImage(): ?string
  59.     {
  60.         return $this->Image;
  61.     }
  62.     public function setImage(?string $Image): self
  63.     {
  64.         $this->Image $Image;
  65.         return $this;
  66.     }
  67.     public function getPages(): ?Pages
  68.     {
  69.         return $this->Pages;
  70.     }
  71.     public function setPages(?Pages $Pages): self
  72.     {
  73.         $this->Pages $Pages;
  74.         return $this;
  75.     }
  76.     public function getDate(): ?\DateTimeInterface
  77.     {
  78.         return $this->Date;
  79.     }
  80.     public function setDate(?\DateTimeInterface $Date): self
  81.     {
  82.         $this->Date $Date;
  83.         return $this;
  84.     }
  85. }