src/Entity/StructureRecherche.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StructureRechercheRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassStructureRechercheRepository::class)]
  9. class StructureRecherche
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $nomLong null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $nomCourt null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $nomArabe null;
  21.     #[ORM\Column(nullabletrue)]
  22.     private ?int $type null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?int $etat null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $adresse null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $email null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $siteWeb null;
  31.     #[ORM\ManyToOne(inversedBy'structureRecherches')]
  32.     private ?Chercheur $responsable null;
  33.     #[ORM\ManyToOne(inversedBy'structureRecherches')]
  34.     private ?Etablissement $etablissement null;
  35.     #[ORM\OneToMany(mappedBy'structure'targetEntityChercheur::class)]
  36.     private Collection $chercheurs;
  37.     #[ORM\OneToMany(mappedBy'structure'targetEntityProjet::class)]
  38.     private Collection $projets;
  39.     #[ORM\OneToMany(mappedBy'structure'targetEntityPublication::class)]
  40.     private Collection $publications;
  41.     #[ORM\OneToMany(mappedBy'structure'targetEntityOffreRecherche::class)]
  42.     private Collection $offreRecherches;
  43.     #[ORM\Column(length255nullabletrue)]
  44.     private ?string $logo null;
  45.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  46.     private ?string $description null;
  47.     #[ORM\Column(length255)]
  48.     private ?string $code null;
  49.     #[ORM\Column(length255nullabletrue)]
  50.     private ?string $image1 null;
  51.     #[ORM\Column(length255nullabletrue)]
  52.     private ?string $image2 null;
  53.     #[ORM\Column(length255nullabletrue)]
  54.     private ?string $image3 null;
  55.     #[ORM\ManyToOne(inversedBy'structureRecherches')]
  56.     private ?DomaineScientifique $domaine null;
  57.     #[ORM\Column(length255nullabletrue)]
  58.     private ?string $docPdf null;
  59.     #[ORM\Column(length255nullabletrue)]
  60.     private ?string $nomDocPdf null;
  61.     #[ORM\OneToMany(mappedBy'structureRecherche'targetEntityMateriel::class)]
  62.     private Collection $materiels;
  63.     public function __construct()
  64.     {
  65.         $this->chercheurs = new ArrayCollection();
  66.         $this->projets = new ArrayCollection();
  67.         $this->publications = new ArrayCollection();
  68.         $this->offreRecherches = new ArrayCollection();
  69.         $this->materiels = new ArrayCollection();
  70.     }
  71.     public function getId(): ?int
  72.     {
  73.         return $this->id;
  74.     }
  75.     public function getNomLong(): ?string
  76.     {
  77.         return $this->nomLong;
  78.     }
  79.     public function setNomLong(?string $nomLong): self
  80.     {
  81.         $this->nomLong $nomLong;
  82.         return $this;
  83.     }
  84.     public function getNomCourt(): ?string
  85.     {
  86.         return $this->nomCourt;
  87.     }
  88.     public function setNomCourt(?string $nomCourt): self
  89.     {
  90.         $this->nomCourt $nomCourt;
  91.         return $this;
  92.     }
  93.     public function getNomArabe(): ?string
  94.     {
  95.         return $this->nomArabe;
  96.     }
  97.     public function setNomArabe(?string $nomArabe): self
  98.     {
  99.         $this->nomArabe $nomArabe;
  100.         return $this;
  101.     }
  102.     public function getType(): ?int
  103.     {
  104.         return $this->type;
  105.     }
  106.     public function setType(?int $type): self
  107.     {
  108.         $this->type $type;
  109.         return $this;
  110.     }
  111.     public function getEtat(): ?int
  112.     {
  113.         return $this->etat;
  114.     }
  115.     public function setEtat(?int $etat): self
  116.     {
  117.         $this->etat $etat;
  118.         return $this;
  119.     }
  120.     public function getAdresse(): ?string
  121.     {
  122.         return $this->adresse;
  123.     }
  124.     public function setAdresse(?string $adresse): self
  125.     {
  126.         $this->adresse $adresse;
  127.         return $this;
  128.     }
  129.     public function getEmail(): ?string
  130.     {
  131.         return $this->email;
  132.     }
  133.     public function setEmail(?string $email): self
  134.     {
  135.         $this->email $email;
  136.         return $this;
  137.     }
  138.     public function getSiteWeb(): ?string
  139.     {
  140.         return $this->siteWeb;
  141.     }
  142.     public function setSiteWeb(?string $siteWeb): self
  143.     {
  144.         $this->siteWeb $siteWeb;
  145.         return $this;
  146.     }
  147.     public function getResponsable(): ?Chercheur
  148.     {
  149.         return $this->responsable;
  150.     }
  151.     public function setResponsable(?Chercheur $responsable): self
  152.     {
  153.         $this->responsable $responsable;
  154.         return $this;
  155.     }
  156.     public function getEtablissement(): ?etablissement
  157.     {
  158.         return $this->etablissement;
  159.     }
  160.     public function setEtablissement(?etablissement $etablissement): self
  161.     {
  162.         $this->etablissement $etablissement;
  163.         return $this;
  164.     }
  165.     /**
  166.      * @return Collection<int, Chercheur>
  167.      */
  168.     public function getChercheurs(): Collection
  169.     {
  170.         return $this->chercheurs;
  171.     }
  172.     public function addChercheur(Chercheur $chercheur): self
  173.     {
  174.         if (!$this->chercheurs->contains($chercheur)) {
  175.             $this->chercheurs->add($chercheur);
  176.             $chercheur->setStructure($this);
  177.         }
  178.         return $this;
  179.     }
  180.     public function removeChercheur(Chercheur $chercheur): self
  181.     {
  182.         if ($this->chercheurs->removeElement($chercheur)) {
  183.             // set the owning side to null (unless already changed)
  184.             if ($chercheur->getStructure() === $this) {
  185.                 $chercheur->setStructure(null);
  186.             }
  187.         }
  188.         return $this;
  189.     }
  190.     /**
  191.      * @return Collection<int, Projet>
  192.      */
  193.     public function getProjets(): Collection
  194.     {
  195.         return $this->projets;
  196.     }
  197.     public function addProjet(Projet $projet): self
  198.     {
  199.         if (!$this->projets->contains($projet)) {
  200.             $this->projets->add($projet);
  201.             $projet->setStructure($this);
  202.         }
  203.         return $this;
  204.     }
  205.     public function removeProjet(Projet $projet): self
  206.     {
  207.         if ($this->projets->removeElement($projet)) {
  208.             // set the owning side to null (unless already changed)
  209.             if ($projet->getStructure() === $this) {
  210.                 $projet->setStructure(null);
  211.             }
  212.         }
  213.         return $this;
  214.     }
  215.     public function __toString(): string
  216.     {
  217.         return $this->nomLong;
  218.     }
  219.     /**
  220.      * @return Collection<int, Publication>
  221.      */
  222.     public function getPublications(): Collection
  223.     {
  224.         return $this->publications;
  225.     }
  226.     public function addPublication(Publication $publication): self
  227.     {
  228.         if (!$this->publications->contains($publication)) {
  229.             $this->publications->add($publication);
  230.             $publication->setStructure($this);
  231.         }
  232.         return $this;
  233.     }
  234.     public function removePublication(Publication $publication): self
  235.     {
  236.         if ($this->publications->removeElement($publication)) {
  237.             // set the owning side to null (unless already changed)
  238.             if ($publication->getStructure() === $this) {
  239.                 $publication->setStructure(null);
  240.             }
  241.         }
  242.         return $this;
  243.     }
  244.     /**
  245.      * @return Collection<int, OffreRecherche>
  246.      */
  247.     public function getOffreRecherches(): Collection
  248.     {
  249.         return $this->offreRecherches;
  250.     }
  251.     public function addOffreRecherch(OffreRecherche $offreRecherch): self
  252.     {
  253.         if (!$this->offreRecherches->contains($offreRecherch)) {
  254.             $this->offreRecherches->add($offreRecherch);
  255.             $offreRecherch->setStructure($this);
  256.         }
  257.         return $this;
  258.     }
  259.     public function removeOffreRecherch(OffreRecherche $offreRecherch): self
  260.     {
  261.         if ($this->offreRecherches->removeElement($offreRecherch)) {
  262.             // set the owning side to null (unless already changed)
  263.             if ($offreRecherch->getStructure() === $this) {
  264.                 $offreRecherch->setStructure(null);
  265.             }
  266.         }
  267.         return $this;
  268.     }
  269.     public function getLogo(): ?string
  270.     {
  271.         return $this->logo;
  272.     }
  273.     public function setLogo(?string $logo): self
  274.     {
  275.         $this->logo $logo;
  276.         return $this;
  277.     }
  278.     public function getDescription(): ?string
  279.     {
  280.         return $this->description;
  281.     }
  282.     public function setDescription(?string $description): self
  283.     {
  284.         $this->description $description;
  285.         return $this;
  286.     }
  287.     public function getCode(): ?string
  288.     {
  289.         return $this->code;
  290.     }
  291.     public function setCode(string $code): self
  292.     {
  293.         $this->code $code;
  294.         return $this;
  295.     }
  296.     public function getImage1(): ?string
  297.     {
  298.         return $this->image1;
  299.     }
  300.     public function setImage1(?string $image1): self
  301.     {
  302.         $this->image1 $image1;
  303.         return $this;
  304.     }
  305.     public function getImage2(): ?string
  306.     {
  307.         return $this->image2;
  308.     }
  309.     public function setImage2(?string $image2): self
  310.     {
  311.         $this->image2 $image2;
  312.         return $this;
  313.     }
  314.     public function getImage3(): ?string
  315.     {
  316.         return $this->image3;
  317.     }
  318.     public function setImage3(?string $image3): self
  319.     {
  320.         $this->image3 $image3;
  321.         return $this;
  322.     }
  323.     public function getDomaine(): ?DomaineScientifique
  324.     {
  325.         return $this->domaine;
  326.     }
  327.     public function setDomaine(?DomaineScientifique $domaine): self
  328.     {
  329.         $this->domaine $domaine;
  330.         return $this;
  331.     }
  332.     public function getDocPdf(): ?string
  333.     {
  334.         return $this->docPdf;
  335.     }
  336.     public function setDocPdf(?string $docPdf): self
  337.     {
  338.         $this->docPdf $docPdf;
  339.         return $this;
  340.     }
  341.     public function getNomDocPdf(): ?string
  342.     {
  343.         return $this->nomDocPdf;
  344.     }
  345.     public function setNomDocPdf(?string $nomDocPdf): self
  346.     {
  347.         $this->nomDocPdf $nomDocPdf;
  348.         return $this;
  349.     }
  350.     /**
  351.      * @return Collection<int, Materiel>
  352.      */
  353.     public function getMateriels(): Collection
  354.     {
  355.         return $this->materiels;
  356.     }
  357.     public function addMateriel(Materiel $materiel): self
  358.     {
  359.         if (!$this->materiels->contains($materiel)) {
  360.             $this->materiels->add($materiel);
  361.             $materiel->setStructureRecherche($this);
  362.         }
  363.         return $this;
  364.     }
  365.     public function removeMateriel(Materiel $materiel): self
  366.     {
  367.         if ($this->materiels->removeElement($materiel)) {
  368.             // set the owning side to null (unless already changed)
  369.             if ($materiel->getStructureRecherche() === $this) {
  370.                 $materiel->setStructureRecherche(null);
  371.             }
  372.         }
  373.         return $this;
  374.     }
  375. }