<?php
namespace App\Entity;
use App\Repository\CongresRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=CongresRepository::class)
*/
class Congres
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $image;
/**
* @ORM\Column(type="string", length=255)
*/
private $label;
/**
* @ORM\Column(type="string", length=255)
*/
private $labelEn;
/**
* @ORM\Column(type="string", length=255)
* @Assert\NotBlank
*/
private $type_congres;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $partners
;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $lien_pdf;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $date_debut;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $date_fin;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $date_soumission;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $date_notification;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $date_poster;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $prgrm_scientifique;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $sponsor;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $speakers;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $motDuPresident;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $info_general;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $registration;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $lieu;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $inscription;
/**
* @ORM\OneToMany(targetEntity=Abstractt::class, mappedBy="congres", orphanRemoval=true, cascade={"persist"})
*/
private $abstractts;
/**
* @ORM\OneToMany(targetEntity=Reviewers::class, mappedBy="congres", orphanRemoval=true, cascade={"persist"})
*/
private $reviewers;
/**
* @ORM\OneToMany(targetEntity=PresenceCongres::class, mappedBy="congres", orphanRemoval=true)
*/
private $presenceCongres;
// /**
// * @ORM\Column(type="string", length=255)
// */
// private $language;
/**
* @ORM\OneToMany(targetEntity=Participation::class, mappedBy="congres")
*/
private $participations;
/**
* @ORM\OneToMany(targetEntity=PackCongres::class, mappedBy="congres", orphanRemoval=true, cascade={"persist"})
*/
private $packCongre;
public function __construct()
{
$this->abstractts = new ArrayCollection();
$this->reviewers = new ArrayCollection();
$this->presenceCongres = new ArrayCollection();
$this->user = new ArrayCollection();
$this->participations = new ArrayCollection();
$this->packCongre = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getImage()
{
return $this->image;
}
public function setImage( $image )
{
$this->image = $image;
return $this;
}
public function getLabel(): ?string
{
return $this->label;
}
public function setLabel(string $label): self
{
$this->label = $label;
return $this;
}
public function getLabelEn(): ?string
{
return $this->labelEn;
}
public function setLabelEn(string $labelEn): self
{
$this->labelEn = $labelEn;
return $this;
}
public function getTypeCongres(): ?string
{
return $this->type_congres;
}
public function setTypeCongres(string $type_congres): self
{
$this->type_congres = $type_congres;
return $this;
}
public function getLienPdf()
{
return $this->lien_pdf;
}
public function setLienPdf($lien_pdf)
{
$this->lien_pdf = $lien_pdf;
return $this;
}
public function getDateDebut(): ?\DateTimeInterface
{
return $this->date_debut;
}
public function setDateDebut(?\DateTimeInterface $date_debut): self
{
$this->date_debut = $date_debut;
return $this;
}
public function getDateFin(): ?\DateTimeInterface
{
return $this->date_fin;
}
public function setDateFin(?\DateTimeInterface $date_fin): self
{
$this->date_fin = $date_fin;
return $this;
}
public function getDateSoumission(): ?\DateTimeInterface
{
return $this->date_soumission;
}
public function setDateSoumission(?\DateTimeInterface $date_soumission): self
{
$this->date_soumission = $date_soumission;
return $this;
}
public function getDateNotification(): ?\DateTimeInterface
{
return $this->date_notification;
}
public function setDateNotification(?\DateTimeInterface $date_notification): self
{
$this->date_notification = $date_notification;
return $this;
}
public function getDatePoster(): ?\DateTimeInterface
{
return $this->date_poster;
}
public function setDatePoster(?\DateTimeInterface $date_poster): self
{
$this->date_poster = $date_poster;
return $this;
}
public function getPrgrmScientifique(): ?string
{
return $this->prgrm_scientifique;
}
public function setPrgrmScientifique(?string $prgrm_scientifique): self
{
$this->prgrm_scientifique = $prgrm_scientifique;
return $this;
}
public function getSponsor(): ?string
{
return $this->sponsor;
}
public function setSponsor(?string $sponsor): self
{
$this->sponsor = $sponsor;
return $this;
}
public function getSpeakers(): ?string
{
return $this->speakers;
}
public function setSpeakers(?string $speakers): self
{
$this->speakers = $speakers;
return $this;
}
public function getMotDuPresident(): ?string
{
return $this->motDuPresident;
}
public function setMotDuPresident(?string $motDuPresident): self
{
$this->motDuPresident = $motDuPresident;
return $this;
}
public function getInfoGeneral(): ?string
{
return $this->info_general;
}
public function setInfoGeneral(?string $info_general): self
{
$this->info_general = $info_general;
return $this;
}
public function getRegistration(): ?string
{
return $this->registration;
}
public function setRegistration(?string $registration): self
{
$this->registration = $registration;
return $this;
}
public function getLieu(): ?string
{
return $this->lieu;
}
public function setLieu(?string $lieu): self
{
$this->lieu = $lieu;
return $this;
}
public function getPartners(): ?string
{
return $this->partners;
}
public function setPartners(?string $partners): self
{
$this->partners = $partners;
return $this;
}
public function isInscription(): ?bool
{
return $this->inscription;
}
public function setInscription(?bool $inscription): self
{
$this->inscription = $inscription;
return $this;
}
/**
* @return Collection<int, Abstractt>
*/
public function getAbstractts(): Collection
{
return $this->abstractts;
}
public function addAbstractt(Abstractt $abstractt): self
{
if (!$this->abstractts->contains($abstractt)) {
$this->abstractts[] = $abstractt;
$abstractt->setCongres($this);
}
return $this;
}
public function removeAbstractt(Abstractt $abstractt): self
{
if ($this->abstractts->removeElement($abstractt)) {
// set the owning side to null (unless already changed)
if ($abstractt->getCongres() === $this) {
$abstractt->setCongres(null);
}
}
return $this;
}
/**
* @return Collection<int, Reviewers>
*/
public function getReviewers(): Collection
{
return $this->reviewers;
}
public function addReviewer(Reviewers $reviewer): self
{
if (!$this->reviewers->contains($reviewer)) {
$this->reviewers[] = $reviewer;
$reviewer->setCongres($this);
}
return $this;
}
public function removeReviewer(Reviewers $reviewer): self
{
if ($this->reviewers->removeElement($reviewer)) {
// set the owning side to null (unless already changed)
if ($reviewer->getCongres() === $this) {
$reviewer->setCongres(null);
}
}
return $this;
}
/**
* @return Collection<int, PresenceCongres>
*/
public function getPresenceCongres(): Collection
{
return $this->presenceCongres;
}
public function addPresenceCongre(PresenceCongres $presenceCongre): self
{
if (!$this->presenceCongres->contains($presenceCongre)) {
$this->presenceCongres[] = $presenceCongre;
$presenceCongre->setCongres($this);
}
return $this;
}
public function removePresenceCongre(PresenceCongres $presenceCongre): self
{
if ($this->presenceCongres->removeElement($presenceCongre)) {
// set the owning side to null (unless already changed)
if ($presenceCongre->getCongres() === $this) {
$presenceCongre->setCongres(null);
}
}
return $this;
}
// public function getLanguage(): ?string
// {
// return $this->language;
// }
// public function setLanguage(string $language): self
// {
// $this->language = $language;
// return $this;
// }
/**
* @return Collection<int, Participation>
*/
public function getParticipations(): Collection
{
return $this->participations;
}
public function addParticipation(Participation $participation): self
{
if (!$this->participations->contains($participation)) {
$this->participations[] = $participation;
$participation->setCongres($this);
}
return $this;
}
public function removeParticipation(Participation $participation): self
{
if ($this->participations->removeElement($participation)) {
// set the owning side to null (unless already changed)
if ($participation->getCongres() === $this) {
$participation->setCongres(null);
}
}
return $this;
}
/**
* @return Collection<int, PackCongres>
*/
public function getPackCongre(): Collection
{
return $this->packCongre;
}
public function addPackCongre(PackCongres $packCongre): self
{
if (!$this->packCongre->contains($packCongre)) {
$this->packCongre[] = $packCongre;
$packCongre->setCongres($this);
}
return $this;
}
public function removePackCongre(PackCongres $packCongre): self
{
if ($this->packCongre->removeElement($packCongre)) {
// set the owning side to null (unless already changed)
if ($packCongre->getCongres() === $this) {
$packCongre->setCongres(null);
}
}
return $this;
}
public function __toString()
{
return $this->getLabel();
}
}