src/Entity/Congres.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CongresRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. /**
  9.  * @ORM\Entity(repositoryClass=CongresRepository::class)
  10.  */
  11. class Congres
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="string", length=255)
  21.      */
  22.     private $image;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $label;
  27.     /**
  28.      * @ORM\Column(type="string", length=255)
  29.      */
  30.     private $labelEn;
  31.     /**
  32.      * @ORM\Column(type="string", length=255)
  33.      * @Assert\NotBlank
  34.      */
  35.     private $type_congres;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private $partners
  40.     ;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $lien_pdf;
  45.     /**
  46.      * @ORM\Column(type="date", nullable=true)
  47.      */
  48.     private $date_debut;
  49.     /**
  50.      * @ORM\Column(type="date", nullable=true)
  51.      */
  52.     private $date_fin;
  53.     /**
  54.      * @ORM\Column(type="datetime", nullable=true)
  55.      */
  56.     private $date_soumission;
  57.     /**
  58.      * @ORM\Column(type="date", nullable=true)
  59.      */
  60.     private $date_notification;
  61.     /**
  62.      * @ORM\Column(type="date", nullable=true)
  63.      */
  64.     private $date_poster;
  65.     /**
  66.      * @ORM\Column(type="text", nullable=true)
  67.      */
  68.     private $prgrm_scientifique;
  69.     /**
  70.      * @ORM\Column(type="text", nullable=true)
  71.      */
  72.     private $sponsor;
  73.     /**
  74.      * @ORM\Column(type="text",  nullable=true)
  75.      */
  76.     private $speakers;
  77.     /**
  78.      * @ORM\Column(type="text", nullable=true)
  79.      */
  80.     private $motDuPresident;
  81.     /**
  82.      * @ORM\Column(type="text", nullable=true)
  83.      */
  84.     private $info_general;
  85.     /**
  86.      * @ORM\Column(type="text", nullable=true)
  87.      */
  88.     private $registration;
  89.     /**
  90.      * @ORM\Column(type="string", length=255, nullable=true)
  91.      */
  92.     private $lieu;
  93.     /**
  94.      * @ORM\Column(type="boolean", nullable=true)
  95.      */
  96.     private $inscription;
  97.    
  98.     /**
  99.      * @ORM\OneToMany(targetEntity=Abstractt::class, mappedBy="congres", orphanRemoval=true, cascade={"persist"})
  100.      */
  101.     private $abstractts;
  102.     /**
  103.      * @ORM\OneToMany(targetEntity=Reviewers::class, mappedBy="congres", orphanRemoval=true, cascade={"persist"})
  104.      */
  105.     private $reviewers;
  106.     /**
  107.      * @ORM\OneToMany(targetEntity=PresenceCongres::class, mappedBy="congres", orphanRemoval=true)
  108.      */
  109.     private $presenceCongres;
  110.     // /**
  111.     //  * @ORM\Column(type="string", length=255)
  112.     //  */
  113.     // private $language;
  114.     /**
  115.      * @ORM\OneToMany(targetEntity=Participation::class, mappedBy="congres")
  116.      */
  117.     private $participations;
  118.     
  119.     
  120.     /**
  121.      * @ORM\OneToMany(targetEntity=PackCongres::class, mappedBy="congres", orphanRemoval=true, cascade={"persist"})
  122.      */
  123.     private $packCongre;
  124.     
  125.     public function __construct()
  126.     {
  127.         $this->abstractts = new ArrayCollection();
  128.         $this->reviewers = new ArrayCollection();
  129.         $this->presenceCongres = new ArrayCollection();
  130.         $this->user = new ArrayCollection();
  131.         $this->participations = new ArrayCollection();
  132.         $this->packCongre = new ArrayCollection();
  133.     }
  134.     public function getId(): ?int
  135.     {
  136.         return $this->id;
  137.     }
  138.     public function getImage()
  139.     {
  140.         return $this->image;
  141.     }
  142.     public function setImage( $image )
  143.     {
  144.         $this->image = $image;
  145.         return $this;
  146.     }
  147.     public function getLabel(): ?string
  148.     {
  149.         return $this->label;
  150.     }
  151.     public function setLabel(string $label): self
  152.     {
  153.         $this->label = $label;
  154.         return $this;
  155.     }
  156.     public function getLabelEn(): ?string
  157.     {
  158.         return $this->labelEn;
  159.     }
  160.     public function setLabelEn(string $labelEn): self
  161.     {
  162.         $this->labelEn = $labelEn;
  163.         return $this;
  164.     }
  165.     public function getTypeCongres(): ?string
  166.     {
  167.         return $this->type_congres;
  168.     }
  169.     public function setTypeCongres(string $type_congres): self
  170.     {
  171.         $this->type_congres = $type_congres;
  172.         return $this;
  173.     }
  174.     public function getLienPdf()
  175.     {
  176.         return $this->lien_pdf;
  177.     }
  178.     public function setLienPdf($lien_pdf)
  179.     {
  180.         $this->lien_pdf = $lien_pdf;
  181.         return $this;
  182.     }
  183.     public function getDateDebut(): ?\DateTimeInterface
  184.     {
  185.         return $this->date_debut;
  186.     }
  187.     public function setDateDebut(?\DateTimeInterface $date_debut): self
  188.     {
  189.         $this->date_debut = $date_debut;
  190.         return $this;
  191.     }
  192.     public function getDateFin(): ?\DateTimeInterface
  193.     {
  194.         return $this->date_fin;
  195.     }
  196.     public function setDateFin(?\DateTimeInterface $date_fin): self
  197.     {
  198.         $this->date_fin = $date_fin;
  199.         return $this;
  200.     }
  201.     public function getDateSoumission(): ?\DateTimeInterface
  202.     {
  203.         return $this->date_soumission;
  204.     }
  205.     public function setDateSoumission(?\DateTimeInterface $date_soumission): self
  206.     {
  207.         $this->date_soumission = $date_soumission;
  208.         return $this;
  209.     }
  210.     public function getDateNotification(): ?\DateTimeInterface
  211.     {
  212.         return $this->date_notification;
  213.     }
  214.     public function setDateNotification(?\DateTimeInterface $date_notification): self
  215.     {
  216.         $this->date_notification = $date_notification;
  217.         return $this;
  218.     }
  219.     public function getDatePoster(): ?\DateTimeInterface
  220.     {
  221.         return $this->date_poster;
  222.     }
  223.     public function setDatePoster(?\DateTimeInterface $date_poster): self
  224.     {
  225.         $this->date_poster = $date_poster;
  226.         return $this;
  227.     }
  228.     public function getPrgrmScientifique(): ?string
  229.     {
  230.         return $this->prgrm_scientifique;
  231.     }
  232.     public function setPrgrmScientifique(?string $prgrm_scientifique): self
  233.     {
  234.         $this->prgrm_scientifique = $prgrm_scientifique;
  235.         return $this;
  236.     }
  237.     public function getSponsor(): ?string
  238.     {
  239.         return $this->sponsor;
  240.     }
  241.     public function setSponsor(?string $sponsor): self
  242.     {
  243.         $this->sponsor = $sponsor;
  244.         return $this;
  245.     }
  246.     public function getSpeakers(): ?string
  247.     {
  248.         return $this->speakers;
  249.     }
  250.     public function setSpeakers(?string $speakers): self
  251.     {
  252.         $this->speakers = $speakers;
  253.         return $this;
  254.     }
  255.     public function getMotDuPresident(): ?string
  256.     {
  257.         return $this->motDuPresident;
  258.     }
  259.     public function setMotDuPresident(?string $motDuPresident): self
  260.     {
  261.         $this->motDuPresident = $motDuPresident;
  262.         return $this;
  263.     }
  264.     public function getInfoGeneral(): ?string
  265.     {
  266.         return $this->info_general;
  267.     }
  268.     public function setInfoGeneral(?string $info_general): self
  269.     {
  270.         $this->info_general = $info_general;
  271.         return $this;
  272.     }
  273.     public function getRegistration(): ?string
  274.     {
  275.         return $this->registration;
  276.     }
  277.     public function setRegistration(?string $registration): self
  278.     {
  279.         $this->registration = $registration;
  280.         return $this;
  281.     }
  282.     public function getLieu(): ?string
  283.     {
  284.         return $this->lieu;
  285.     }
  286.     public function setLieu(?string $lieu): self
  287.     {
  288.         $this->lieu = $lieu;
  289.         return $this;
  290.     }
  291.     public function getPartners(): ?string
  292.     {
  293.         return $this->partners;
  294.     }
  295.     public function setPartners(?string $partners): self
  296.     {
  297.         $this->partners = $partners;
  298.         return $this;
  299.     }
  300.     public function isInscription(): ?bool
  301.     {
  302.         return $this->inscription;
  303.     }
  304.     public function setInscription(?bool $inscription): self
  305.     {
  306.         $this->inscription = $inscription;
  307.         return $this;
  308.     }
  309.     /**
  310.      * @return Collection<int, Abstractt>
  311.      */
  312.     public function getAbstractts(): Collection
  313.     {
  314.         return $this->abstractts;
  315.     }
  316.     public function addAbstractt(Abstractt $abstractt): self
  317.     {
  318.         if (!$this->abstractts->contains($abstractt)) {
  319.             $this->abstractts[] = $abstractt;
  320.             $abstractt->setCongres($this);
  321.         }
  322.         return $this;
  323.     }
  324.     public function removeAbstractt(Abstractt $abstractt): self
  325.     {
  326.         if ($this->abstractts->removeElement($abstractt)) {
  327.             // set the owning side to null (unless already changed)
  328.             if ($abstractt->getCongres() === $this) {
  329.                 $abstractt->setCongres(null);
  330.             }
  331.         }
  332.         return $this;
  333.     }
  334.     /**
  335.      * @return Collection<int, Reviewers>
  336.      */
  337.     public function getReviewers(): Collection
  338.     {
  339.         return $this->reviewers;
  340.     }
  341.     public function addReviewer(Reviewers $reviewer): self
  342.     {
  343.         if (!$this->reviewers->contains($reviewer)) {
  344.             $this->reviewers[] = $reviewer;
  345.             $reviewer->setCongres($this);
  346.         }
  347.         return $this;
  348.     }
  349.     public function removeReviewer(Reviewers $reviewer): self
  350.     {
  351.         if ($this->reviewers->removeElement($reviewer)) {
  352.             // set the owning side to null (unless already changed)
  353.             if ($reviewer->getCongres() === $this) {
  354.                 $reviewer->setCongres(null);
  355.             }
  356.         }
  357.         return $this;
  358.     }
  359.     /**
  360.      * @return Collection<int, PresenceCongres>
  361.      */
  362.     public function getPresenceCongres(): Collection
  363.     {
  364.         return $this->presenceCongres;
  365.     }
  366.     public function addPresenceCongre(PresenceCongres $presenceCongre): self
  367.     {
  368.         if (!$this->presenceCongres->contains($presenceCongre)) {
  369.             $this->presenceCongres[] = $presenceCongre;
  370.             $presenceCongre->setCongres($this);
  371.         }
  372.         return $this;
  373.     }
  374.     public function removePresenceCongre(PresenceCongres $presenceCongre): self
  375.     {
  376.         if ($this->presenceCongres->removeElement($presenceCongre)) {
  377.             // set the owning side to null (unless already changed)
  378.             if ($presenceCongre->getCongres() === $this) {
  379.                 $presenceCongre->setCongres(null);
  380.             }
  381.         }
  382.         return $this;
  383.     }
  384.     // public function getLanguage(): ?string
  385.     // {
  386.     //     return $this->language;
  387.     // }
  388.     // public function setLanguage(string $language): self
  389.     // {
  390.     //     $this->language = $language;
  391.     //     return $this;
  392.     // }
  393.     /**
  394.      * @return Collection<int, Participation>
  395.      */
  396.     public function getParticipations(): Collection
  397.     {
  398.         return $this->participations;
  399.     }
  400.     public function addParticipation(Participation $participation): self
  401.     {
  402.         if (!$this->participations->contains($participation)) {
  403.             $this->participations[] = $participation;
  404.             $participation->setCongres($this);
  405.         }
  406.         return $this;
  407.     }
  408.     public function removeParticipation(Participation $participation): self
  409.     {
  410.         if ($this->participations->removeElement($participation)) {
  411.             // set the owning side to null (unless already changed)
  412.             if ($participation->getCongres() === $this) {
  413.                 $participation->setCongres(null);
  414.             }
  415.         }
  416.         return $this;
  417.     }
  418.     /**
  419.      * @return Collection<int, PackCongres>
  420.      */
  421.     public function getPackCongre(): Collection
  422.     {
  423.         return $this->packCongre;
  424.     }
  425.     public function addPackCongre(PackCongres $packCongre): self
  426.     {
  427.         if (!$this->packCongre->contains($packCongre)) {
  428.             $this->packCongre[] = $packCongre;
  429.             $packCongre->setCongres($this);
  430.         }
  431.         return $this;
  432.     }
  433.     public function removePackCongre(PackCongres $packCongre): self
  434.     {
  435.         if ($this->packCongre->removeElement($packCongre)) {
  436.             // set the owning side to null (unless already changed)
  437.             if ($packCongre->getCongres() === $this) {
  438.                 $packCongre->setCongres(null);
  439.             }
  440.         }
  441.         return $this;
  442.     }
  443.     
  444.     public function __toString()
  445.     {
  446.         return $this->getLabel();
  447.     }
  448. }