src/Entity/Gestiform/Formations/Entreprise/Contact.php line 21

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gestiform\Formations\Entreprise;
  3. use App\Entity\AbstractEntity;
  4. use App\Entity\Common\Adresse;
  5. use App\Entity\Common\Upload;
  6. use App\Entity\Gestiform\Admin\MasterListe\Masterlistelg;
  7. use App\Entity\Gestiform\Admin\Tiers;
  8. use App\Entity\Gestiform\Formations\Dossier\Dossier;
  9. use App\Entity\Gestiform\Formations\Dossier\PersonalInformations;
  10. use App\Repository\Gestiform\Formations\Entreprise\ContactRepository;
  11. use Doctrine\Common\Collections\ArrayCollection;
  12. use Doctrine\Common\Collections\Collection;
  13. use Doctrine\ORM\Mapping as ORM;
  14. /**
  15.  * @ORM\Entity(repositoryClass=ContactRepository::class)
  16.  */
  17. class Contact extends AbstractEntity
  18. {
  19.     /**
  20.      * @ORM\Column(type="boolean", nullable=true)
  21.      */
  22.     private bool $tuteur false;
  23.     /**
  24.      * @ORM\Column(type="integer", nullable=true)
  25.      */
  26.     private ?int $niveau null;
  27.     /**
  28.      * @ORM\Column(type="boolean", nullable=true)
  29.      */
  30.     private ?bool $referentAdministratif null;
  31.     /**
  32.      * @ORM\Column(type="boolean", nullable=true)
  33.      */
  34.     private ?bool $responsableRH false;
  35.     /**
  36.      * @ORM\Column(type="boolean", nullable=true)
  37.      */
  38.     private ?bool $referentAbsences null;
  39.     /**
  40.      * @ORM\Column(type="boolean", nullable=true)
  41.      */
  42.     private ?bool $referentCommercial null;
  43.     /**
  44.      * @ORM\Column(type="boolean", nullable=true)
  45.      */
  46.     private ?bool $representantLegal null;
  47.     /**
  48.      * @ORM\Column(type="boolean", nullable=true)
  49.      */
  50.     private bool $principal false;
  51.     /**
  52.      * @ORM\Column(type="string", length=255, nullable=true)
  53.      */
  54.     private ?string $fonction null;
  55.     /**
  56.      * @ORM\Column(type="string", length=255, nullable=true)
  57.      */
  58.     private ?string $email null;
  59.     /**
  60.      * @ORM\ManyToOne(targetEntity=PersonalInformations::class,  cascade={"all"},inversedBy="contacts")
  61.      * @ORM\JoinColumn(nullable=true)
  62.      */
  63.     private ?PersonalInformations $personalInformations null;
  64.     /**
  65.      * @ORM\ManyToOne(targetEntity=Adresse::class,  cascade={"all"})
  66.      * @ORM\JoinColumn(nullable=true)
  67.      */
  68.     private ?Adresse $adresse null;
  69.     /**
  70.      * @ORM\ManyToOne(targetEntity=Tiers::class,inversedBy="contacts")
  71.      * @ORM\JoinColumn(nullable=true)
  72.      */
  73.     private ?Tiers $tiers null;
  74.     /**
  75.      * @ORM\ManyToOne(targetEntity=Masterlistelg::class,cascade={"persist"})
  76.      * @ORM\JoinColumn(nullable=true)
  77.      */
  78.     private ?Masterlistelg $typeResponsable null;
  79.  
  80.     /**
  81.      * @ORM\ManyToOne(targetEntity=Masterlistelg::class, cascade={"persist"})
  82.      * @ORM\JoinColumn(nullable=true)
  83.      */
  84.     private ?Masterlistelg $niveauDiplome null;
  85.     /**
  86.      * @ORM\Column(type="string", length=255, nullable=true)
  87.      */
  88.     private ?string $diplomePlusEleve null;
  89.     /**
  90.      * @ORM\OneToMany(targetEntity=Dossier::class, mappedBy="entrepriseContact",cascade={"persist"})
  91.      */
  92.     private Collection $dossiers;
  93.     /**
  94.      * @ORM\OneToOne(targetEntity=Upload::class, cascade={"persist", "remove"})
  95.      * @ORM\JoinColumn(nullable=true)
  96.      */
  97.     private ?Upload $cv null;
  98.     public function __construct()
  99.     {
  100.         $this->dossiers = new ArrayCollection();
  101.     }
  102.     public function isTuteur(): bool
  103.     {
  104.         return $this->tuteur;
  105.     }
  106.     public function setTuteur(bool $tuteur): self
  107.     {
  108.         $this->tuteur $tuteur;
  109.         return $this;
  110.     }
  111.     public function isReferentAdministratif(): ?bool
  112.     {
  113.         return $this->referentAdministratif;
  114.     }
  115.     public function setReferentAdministratif(?bool $referentAdministratif): self
  116.     {
  117.         $this->referentAdministratif $referentAdministratif;
  118.         return $this;
  119.     }
  120.     public function isReferentAbsences(): ?bool
  121.     {
  122.         return $this->referentAbsences;
  123.     }
  124.     public function setReferentAbsences(?bool $referentAbsences): self
  125.     {
  126.         $this->referentAbsences $referentAbsences;
  127.         return $this;
  128.     }
  129.     public function isReferentCommercial(): ?bool
  130.     {
  131.         return $this->referentCommercial;
  132.     }
  133.     public function setReferentCommercial(?bool $referentCommercial): self
  134.     {
  135.         $this->referentCommercial $referentCommercial;
  136.         return $this;
  137.     }
  138.     public function isRepresentantLegal(): ?bool
  139.     {
  140.         return $this->representantLegal;
  141.     }
  142.     public function setRepresentantLegal(?bool $representantLegal): self
  143.     {
  144.         $this->representantLegal $representantLegal;
  145.         return $this;
  146.     }
  147.     public function isPrincipal(): ?bool
  148.     {
  149.         return $this->principal;
  150.     }
  151.     public function setPrincipal(?bool $principal): self
  152.     {
  153.         $this->principal $principal;
  154.         return $this;
  155.     }
  156.     public function getFonction(): ?string
  157.     {
  158.         return $this->fonction;
  159.     }
  160.     public function setFonction(?string $fonction): self
  161.     {
  162.         $this->fonction $fonction;
  163.         return $this;
  164.     }
  165.     public function getPersonalInformations(): ?PersonalInformations
  166.     {
  167.         return $this->personalInformations;
  168.     }
  169.     public function setPersonalInformations(?PersonalInformations $personalInformations): self
  170.     {
  171.         $this->personalInformations $personalInformations;
  172.         return $this;
  173.     }
  174.     public function getAdresse(): ?Adresse
  175.     {
  176.         return $this->adresse;
  177.     }
  178.     public function setAdresse(?Adresse $adresse): self
  179.     {
  180.         $this->adresse $adresse;
  181.         return $this;
  182.     }
  183.     public function getEmail(): ?string
  184.     {
  185.         return $this->email;
  186.     }
  187.     public function setEmail(?string $email): self
  188.     {
  189.         $this->email $email;
  190.         return $this;
  191.     }
  192.     public function getTiers(): ?Tiers
  193.     {
  194.         return $this->tiers;
  195.     }
  196.     public function setTiers(?Tiers $tiers): self
  197.     {
  198.         $this->tiers $tiers;
  199.         return $this;
  200.     }
  201.     public function getTypeResponsable(): ?Masterlistelg
  202.     {
  203.         return $this->typeResponsable;
  204.     }
  205.     public function setTypeResponsable(?Masterlistelg $typeResponsable): self
  206.     {
  207.         $this->typeResponsable $typeResponsable;
  208.         return $this;
  209.     }
  210.     public function getNiveau(): ?int
  211.     {
  212.         return $this->niveau;
  213.     }
  214.     public function setNiveau(?int $niveau): self
  215.     {
  216.         $this->niveau $niveau;
  217.         return $this;
  218.     }
  219.     public function getDiplomePlusEleve(): ?string
  220.     {
  221.         return $this->diplomePlusEleve;
  222.     }
  223.     public function setDiplomePlusEleve(?string $diplomePlusEleve): self
  224.     {
  225.         $this->diplomePlusEleve $diplomePlusEleve;
  226.         return $this;
  227.     }
  228.     /**
  229.      * @return Collection<int, Dossier>
  230.      */
  231.     public function getDossiers(): Collection
  232.     {
  233.         return $this->dossiers;
  234.     }
  235.     public function addDossier(Dossier $dossier): self
  236.     {
  237.         if (!$this->dossiers->contains($dossier)) {
  238.             $this->dossiers->add($dossier);
  239.             $dossier->setEntrepriseContact($this);
  240.         }
  241.         return $this;
  242.     }
  243.     public function removeDossier(Dossier $dossier): self
  244.     {
  245.         if ($this->dossiers->removeElement($dossier)) {
  246.             // set the owning side to null (unless already changed)
  247.             if ($dossier->getEntrepriseContact() === $this) {
  248.                 $dossier->setEntrepriseContact(null);
  249.             }
  250.         }
  251.         return $this;
  252.     }
  253.     public function isResponsableRH(): ?bool
  254.     {
  255.         return $this->responsableRH;
  256.     }
  257.     public function setResponsableRH(?bool $responsableRH): self
  258.     {
  259.         $this->responsableRH $responsableRH;
  260.         return $this;
  261.     }
  262.     public function getNiveauDiplome(): ?Masterlistelg
  263.     {
  264.         return $this->niveauDiplome;
  265.     }
  266.     public function setNiveauDiplome(?Masterlistelg $niveauDiplome): self
  267.     {
  268.         $this->niveauDiplome $niveauDiplome;
  269.         return $this;
  270.     }
  271.     public function getCv(): ?Upload
  272.     {
  273.         return $this->cv;
  274.     }
  275.     public function setCv(?Upload $cv): self
  276.     {
  277.         $this->cv $cv;
  278.         return $this;
  279.     }
  280. }