src/Entity/Etablissement.php line 13

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EtablissementRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Doctrine\DBAL\Types\Types;
  8. #[ORM\Entity(repositoryClassEtablissementRepository::class)]
  9. class Etablissement
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $nomCourt null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $nomLong null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $adresse null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $email null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $siteWeb null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?int $telephone null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $fax null;
  29.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  30.     private ?string $description null;
  31.     #[ORM\OneToMany(mappedBy'etablissement'targetEntityDirecteur::class)]
  32.     private Collection $directeurs;
  33.     #[ORM\OneToMany(mappedBy'etablissement'targetEntityChercheur::class)]
  34.     private Collection $chercheurs;
  35.     #[ORM\OneToMany(mappedBy'etablissement'targetEntityStructureRecherche::class)]
  36.     private Collection $structureRecherches;
  37.     #[ORM\Column(length255nullabletrue)]
  38.     private ?string $nomArabe null;
  39.     #[ORM\Column(length255nullabletrue)]
  40.     private ?string $logo null;
  41.     #[ORM\Column(length255nullabletrue)]
  42.     private ?string $image1 null;
  43.     #[ORM\Column(length255nullabletrue)]
  44.     private ?string $image2 null;
  45.     #[ORM\Column(length255nullabletrue)]
  46.     private ?string $image3 null;
  47.    
  48.    
  49.    
  50.     public function __construct()
  51.     {
  52.         $this->directeurs = new ArrayCollection();
  53.         $this->chercheurs = new ArrayCollection();
  54.         $this->structureRecherches = new ArrayCollection();
  55.     }
  56.     public function getId(): ?int
  57.     {
  58.         return $this->id;
  59.     }
  60.     public function getNomCourt(): ?string
  61.     {
  62.         return $this->nomCourt;
  63.     }
  64.     public function setNomCourt(?string $nomCourt): self
  65.     {
  66.         $this->nomCourt $nomCourt;
  67.         return $this;
  68.     }
  69.     public function getNomLong(): ?string
  70.     {
  71.         return $this->nomLong;
  72.     }
  73.     public function setNomLong(?string $nomLong): self
  74.     {
  75.         $this->nomLong $nomLong;
  76.         return $this;
  77.     }
  78.     public function getAdresse(): ?string
  79.     {
  80.         return $this->adresse;
  81.     }
  82.     public function setAdresse(?string $adresse): self
  83.     {
  84.         $this->adresse $adresse;
  85.         return $this;
  86.     }
  87.     public function getEmail(): ?string
  88.     {
  89.         return $this->email;
  90.     }
  91.     public function setEmail(?string $email): self
  92.     {
  93.         $this->email $email;
  94.         return $this;
  95.     }
  96.     public function getSiteWeb(): ?string
  97.     {
  98.         return $this->siteWeb;
  99.     }
  100.     public function setSiteWeb(?string $siteWeb): self
  101.     {
  102.         $this->siteWeb $siteWeb;
  103.         return $this;
  104.     }
  105.     public function getTelephone(): ?int
  106.     {
  107.         return $this->telephone;
  108.     }
  109.     public function setTelephone(?int $telephone): self
  110.     {
  111.         $this->telephone $telephone;
  112.         return $this;
  113.     }
  114.     public function getFax(): ?string
  115.     {
  116.         return $this->fax;
  117.     }
  118.     public function setFax(?string $fax): self
  119.     {
  120.         $this->fax $fax;
  121.         return $this;
  122.     }
  123.     public function getDescription(): ?string
  124.     {
  125.         return $this->description;
  126.     }
  127.     public function setDescription(?string $description): self
  128.     {
  129.         $this->description $description;
  130.         return $this;
  131.     }
  132.     /**
  133.      * @return Collection<int, Directeur>
  134.      */
  135.     public function getDirecteurs(): Collection
  136.     {
  137.         return $this->directeurs;
  138.     }
  139.     public function addDirecteur(Directeur $directeur): self
  140.     {
  141.         if (!$this->directeurs->contains($directeur)) {
  142.             $this->directeurs->add($directeur);
  143.             $directeur->setEtablissement($this);
  144.         }
  145.         return $this;
  146.     }
  147.     public function removeDirecteur(Directeur $directeur): self
  148.     {
  149.         if ($this->directeurs->removeElement($directeur)) {
  150.             // set the owning side to null (unless already changed)
  151.             if ($directeur->getEtablissement() === $this) {
  152.                 $directeur->setEtablissement(null);
  153.             }
  154.         }
  155.         return $this;
  156.     }
  157.     /**
  158.      * @return Collection<int, Chercheur>
  159.      */
  160.     public function getChercheurs(): Collection
  161.     {
  162.         return $this->chercheurs;
  163.     }
  164.     public function addChercheur(Chercheur $chercheur): self
  165.     {
  166.         if (!$this->chercheurs->contains($chercheur)) {
  167.             $this->chercheurs->add($chercheur);
  168.             $chercheur->setEtablissement($this);
  169.         }
  170.         return $this;
  171.     }
  172.     public function removeChercheur(Chercheur $chercheur): self
  173.     {
  174.         if ($this->chercheurs->removeElement($chercheur)) {
  175.             // set the owning side to null (unless already changed)
  176.             if ($chercheur->getEtablissement() === $this) {
  177.                 $chercheur->setEtablissement(null);
  178.             }
  179.         }
  180.         return $this;
  181.     }
  182.     /**
  183.      * @return Collection<int, StructureRecherche>
  184.      */
  185.     public function getStructureRecherches(): Collection
  186.     {
  187.         return $this->structureRecherches;
  188.     }
  189.     public function addStructureRecherch(StructureRecherche $structureRecherch): self
  190.     {
  191.         if (!$this->structureRecherches->contains($structureRecherch)) {
  192.             $this->structureRecherches->add($structureRecherch);
  193.             $structureRecherch->setEtablissement($this);
  194.         }
  195.         return $this;
  196.     }
  197.     public function removeStructureRecherch(StructureRecherche $structureRecherch): self
  198.     {
  199.         if ($this->structureRecherches->removeElement($structureRecherch)) {
  200.             // set the owning side to null (unless already changed)
  201.             if ($structureRecherch->getEtablissement() === $this) {
  202.                 $structureRecherch->setEtablissement(null);
  203.             }
  204.         }
  205.         return $this;
  206.     }
  207.     public function getNomArabe(): ?string
  208.     {
  209.         return $this->nomArabe;
  210.     }
  211.     public function setNomArabe(?string $nomArabe): self
  212.     {
  213.         $this->nomArabe $nomArabe;
  214.         return $this;
  215.     }
  216.     public function __toString(): string
  217.     {
  218.         return $this->nomLong;
  219.     }
  220.     public function getLogo(): ?string
  221.     {
  222.         return $this->logo;
  223.     }
  224.     public function setLogo(?string $logo): self
  225.     {
  226.         $this->logo $logo;
  227.         return $this;
  228.     }
  229.     public function getImage1(): ?string
  230.     {
  231.         return $this->image1;
  232.     }
  233.     public function setImage1(?string $image1): self
  234.     {
  235.         $this->image1 $image1;
  236.         return $this;
  237.     }
  238.     public function getImage2(): ?string
  239.     {
  240.         return $this->image2;
  241.     }
  242.     public function setImage2(?string $image2): self
  243.     {
  244.         $this->image2 $image2;
  245.         return $this;
  246.     }
  247.     public function getImage3(): ?string
  248.     {
  249.         return $this->image3;
  250.     }
  251.     public function setImage3(?string $image3): self
  252.     {
  253.         $this->image3 $image3;
  254.         return $this;
  255.     }
  256.        
  257. }