src/Entity/Event.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EventRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=EventRepository::class)
  7.  */
  8. class Event
  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)
  18.      */
  19.     private $title;
  20.      /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $titre;
  24.    
  25.     /**
  26.      * @ORM\Column(type="string", length=255)
  27.      */
  28.     private $image;
  29.     /**
  30.      * @ORM\Column(type="date")
  31.      */
  32.     private $startDate;
  33.     /**
  34.      * @ORM\Column(type="date", nullable=true)
  35.      */
  36.     private $endDate;
  37.     /**
  38.      * @ORM\Column(type="string", length=255)
  39.      */
  40.     private $location;
  41.     /**
  42.      * @ORM\Column(type="string", length=255)
  43.      */
  44.     private $locationEn;
  45.     /**
  46.      * @ORM\Column(type="text", nullable=true)
  47.      */
  48.     private $content;
  49.     /**
  50.      * @ORM\Column(type="text", nullable=true)
  51.      */
  52.     private $contentEn;
  53.     /**
  54.      * @ORM\Column(type="string", length=255)
  55.      */
  56.     private $categorie;
  57.     // /**
  58.     //  * @ORM\Column(type="string", length=255)
  59.     //  */
  60.     // private $language;
  61.     /**
  62.      * @ORM\Column(type="string", length=255, nullable=true)
  63.      */
  64.     private $pdf;
  65.     /**
  66.      * @ORM\Column(type="string", length=255, nullable=true)
  67.      */
  68.     private $lien;
  69.     /**
  70.      * @ORM\Column(type="boolean")
  71.      */
  72.     private $inscription;
  73.     public function getId(): ?int
  74.     {
  75.         return $this->id;
  76.     }
  77.     public function getTitle(): ?string
  78.     {
  79.         return $this->title;
  80.     }
  81.     public function setTitle(string $title): self
  82.     {
  83.         $this->title = $title;
  84.         return $this;
  85.     }
  86.     public function getTitre(): ?string
  87.     {
  88.         return $this->titre;
  89.     }
  90.     public function setTitre(string $titre): self
  91.     {
  92.         $this->titre = $titre;
  93.         return $this;
  94.     }
  95.     
  96.     public function getImage(): ?string
  97.     {
  98.         return $this->image;
  99.     }
  100.     public function setImage(?string $image): self
  101.     {
  102.         $this->image = $image;
  103.         return $this;
  104.     }
  105.     public function getStartDate(): ?\DateTimeInterface
  106.     {
  107.         return $this->startDate;
  108.     }
  109.     public function setStartDate(\DateTimeInterface $startDate): self
  110.     {
  111.         $this->startDate = $startDate;
  112.         return $this;
  113.     }
  114.     public function getEndDate(): ?\DateTimeInterface
  115.     {
  116.         return $this->endDate;
  117.     }
  118.     public function setEndDate(?\DateTimeInterface $endDate): self
  119.     {
  120.         $this->endDate = $endDate;
  121.         return $this;
  122.     }
  123.     public function getLocation(): ?string
  124.     {
  125.         return $this->location;
  126.     }
  127.     public function setLocation(?string $location): self
  128.     {
  129.         $this->location = $location;
  130.         return $this;
  131.     }
  132.     public function getLocationEn(): ?string
  133.     {
  134.         return $this->locationEn;
  135.     }
  136.     public function setLocationEn(?string $locationEn): self
  137.     {
  138.         $this->locationEn = $locationEn;
  139.         return $this;
  140.     }
  141.     public function getContent(): ?string
  142.     {
  143.         return $this->content;
  144.     }
  145.     public function setContent(?string $content): self
  146.     {
  147.         $this->content = $content;
  148.         return $this;
  149.     }
  150.     public function getContentEn(): ?string
  151.     {
  152.         return $this->contentEn;
  153.     }
  154.     public function setContentEn(?string $contentEn): self
  155.     {
  156.         $this->contentEn = $contentEn;
  157.         return $this;
  158.     }
  159.     public function getCategorie(): ?string
  160.     {
  161.         return $this->categorie;
  162.     }
  163.     public function setCategorie(string $categorie): self
  164.     {
  165.         $this->categorie = $categorie;
  166.         return $this;
  167.     }
  168.     // public function getLanguage(): ?string
  169.     // {
  170.     //     return $this->language;
  171.     // }
  172.     // public function setLanguage(string $language): self
  173.     // {
  174.     //     $this->language = $language;
  175.     //     return $this;
  176.     // }
  177.     public function getPdf(): ?string
  178.     {
  179.         return $this->pdf;
  180.     }
  181.     public function setPdf(?string $pdf): self
  182.     {
  183.         $this->pdf = $pdf;
  184.         return $this;
  185.     }
  186.     public function getLien(): ?string
  187.     {
  188.         return $this->lien;
  189.     }
  190.     public function setLien(?string $lien): self
  191.     {
  192.         $this->lien = $lien;
  193.         return $this;
  194.     }
  195.     public function isInscription(): ?bool
  196.     {
  197.         return $this->inscription;
  198.     }
  199.     public function setInscription(bool $inscription): self
  200.     {
  201.         $this->inscription = $inscription;
  202.         return $this;
  203.     }
  204.     public function __toString()
  205.     {
  206.         return $this->getTitle();
  207.     }
  208. }