src/Entity/Event.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EventRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=EventRepository::class)
  9.  */
  10. class Event
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255, nullable=true)
  20.      */
  21.     private $titre;
  22.     /**
  23.      * @ORM\Column(type="text", nullable=true)
  24.      */
  25.     private $description;
  26.     /**
  27.      * @ORM\Column(type="boolean", nullable=true)
  28.      */
  29.     private $isDeleted;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $budget;
  34.     /**
  35.      * @ORM\Column(type="string", length=255, nullable=true)
  36.      */
  37.     private $responsableEvent;
  38.     /**
  39.      * @ORM\Column(type="date", nullable=true)
  40.      */
  41.     private $dateDeb;
  42.     /**
  43.      * @ORM\Column(type="date", nullable=true)
  44.      */
  45.     private $dateFin;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $link;
  50.     /**
  51.      * @ORM\Column(type="string", length=255, nullable=true)
  52.      */
  53.     private $createdBy;
  54.     public function __construct()
  55.     {
  56.         $this->membres = new ArrayCollection();
  57.         $this->partenaires = new ArrayCollection();
  58.     }
  59.     public function getId(): ?int
  60.     {
  61.         return $this->id;
  62.     }
  63.     public function getTitre(): ?string
  64.     {
  65.         return $this->titre;
  66.     }
  67.     public function setTitre(?string $titre): self
  68.     {
  69.         $this->titre $titre;
  70.         return $this;
  71.     }
  72.     public function getDescription(): ?string
  73.     {
  74.         return $this->description;
  75.     }
  76.     public function setDescription(?string $description): self
  77.     {
  78.         $this->description $description;
  79.         return $this;
  80.     }
  81.     public function isIsDeleted(): ?bool
  82.     {
  83.         return $this->isDeleted;
  84.     }
  85.     public function setIsDeleted(?bool $isDeleted): self
  86.     {
  87.         $this->isDeleted $isDeleted;
  88.         return $this;
  89.     }
  90.     /**
  91.      * @return Collection<int, Membre>
  92.      */
  93.     public function getMembres(): Collection
  94.     {
  95.         return $this->membres;
  96.     }
  97.     public function addMembre(Membre $membre): self
  98.     {
  99.         if (!$this->membres->contains($membre)) {
  100.             $this->membres[] = $membre;
  101.         }
  102.         return $this;
  103.     }
  104.     public function removeMembre(Membre $membre): self
  105.     {
  106.         $this->membres->removeElement($membre);
  107.         return $this;
  108.     }
  109.     /**
  110.      * @return Collection<int, Partner>
  111.      */
  112.     public function getPartenaires(): Collection
  113.     {
  114.         return $this->partenaires;
  115.     }
  116.     public function addPartenaire(Partner $partenaire): self
  117.     {
  118.         if (!$this->partenaires->contains($partenaire)) {
  119.             $this->partenaires[] = $partenaire;
  120.         }
  121.         return $this;
  122.     }
  123.     public function removePartenaire(Partner $partenaire): self
  124.     {
  125.         $this->partenaires->removeElement($partenaire);
  126.         return $this;
  127.     }
  128.     public function getBudget(): ?string
  129.     {
  130.         return $this->budget;
  131.     }
  132.     public function setBudget(?string $budget): self
  133.     {
  134.         $this->budget $budget;
  135.         return $this;
  136.     }
  137.     public function getResponsableEvent(): ?string
  138.     {
  139.         return $this->responsableEvent;
  140.     }
  141.     public function setResponsableEvent(?string $responsableEvent): self
  142.     {
  143.         $this->responsableEvent $responsableEvent;
  144.         return $this;
  145.     }
  146.     public function getDateDeb(): ?\DateTimeInterface
  147.     {
  148.         return $this->dateDeb;
  149.     }
  150.     public function setDateDeb(\DateTimeInterface $dateDeb): self
  151.     {
  152.         $this->dateDeb $dateDeb;
  153.         return $this;
  154.     }
  155.     public function getDateFin(): ?\DateTimeInterface
  156.     {
  157.         return $this->dateFin;
  158.     }
  159.     public function setDateFin(?\DateTimeInterface $dateFin): self
  160.     {
  161.         $this->dateFin $dateFin;
  162.         return $this;
  163.     }
  164.     public function getLink(): ?string
  165.     {
  166.         return $this->link;
  167.     }
  168.     public function setLink(?string $link): self
  169.     {
  170.         $this->link $link;
  171.         return $this;
  172.     }
  173.     public function getCreatedBy(): ?string
  174.     {
  175.         return $this->createdBy;
  176.     }
  177.     public function setCreatedBy(?string $createdBy): self
  178.     {
  179.         $this->createdBy $createdBy;
  180.         return $this;
  181.     }
  182. }