src/Entity/Gestiform/Admin/Societe.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gestiform\Admin;
  3. use App\Entity\Common\Upload;
  4. use App\Entity\Gestiform\Admin\MasterListe\Masterlistelg;
  5. use App\Entity\Gestiform\Formations\Dossier\Dossier;
  6. use App\Entity\Gestiform\Formations\Financeur\Financeur;
  7. use App\Entity\Gestiform\Users\Employe;
  8. use App\Repository\Gestiform\Admin\SocieteRepository;
  9. use Doctrine\Common\Collections\ArrayCollection;
  10. use Doctrine\Common\Collections\Collection;
  11. use Doctrine\ORM\Mapping as ORM;
  12. use Symfony\Component\Serializer\Annotation as Serializer;
  13. /**
  14.  * @ORM\Entity(repositoryClass=SocieteRepository::class)
  15.  */
  16. class Societe extends Tiers
  17. {
  18.     /**
  19.      * @ORM\Column(type="string", length=255, nullable=true)
  20.      */
  21.     private ?string $signatureEmail null;
  22.     /**
  23.      * @ORM\Column(type="string", length=255, nullable=true)
  24.      */
  25.     private ?string $codeAdherent null;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable=true)
  28.      */
  29.     private ?string $widthLogoHeader null;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private ?string $heightLogoHeader null;
  34.     /**
  35.      * @ORM\Column(type="string", length=255, nullable=true)
  36.      */
  37.     private ?string $widthLogoFooter null;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private ?string $heightLogoFooter null;
  42.     /**
  43.      * @ORM\Column(type="string", length=255, nullable=true)
  44.      */
  45.     private ?string $numEcole null;
  46.     /**
  47.      * @ORM\Column(type="boolean", nullable=true)
  48.      */
  49.     private ?bool $parDefaut null;
  50.     /**
  51.      * @ORM\Column(type="boolean", nullable=true)
  52.      */
  53.     private ?bool $defautAlternance null;
  54.     /**
  55.      * @ORM\ManyToOne(targetEntity=Masterlistelg::class)
  56.      * @ORM\JoinColumn(nullable=true)
  57.      */
  58.     private ?Masterlistelg $type null;
  59.     /**
  60.      * @ORM\OneToMany(targetEntity=Site::class, mappedBy="societe")
  61.      */
  62.     private Collection $sites;
  63.     /**
  64.      * @ORM\ManyToOne(targetEntity=Financeur::class,  cascade={"persist"})
  65.      */
  66.     private ?Financeur $financeurModeleAbsence null;
  67.     /**
  68.      * @ORM\ManyToOne(targetEntity=Financeur::class,  cascade={"persist"})
  69.      */
  70.     private ?Financeur $financeurModeleRetard null;
  71.     
  72.     /**
  73.      * @ORM\ManyToOne(targetEntity=Employe::class)
  74.      * @ORM\JoinColumn(nullable=true)
  75.      */
  76.     private ?Employe $referentHandicap null;
  77.     /**
  78.      * @ORM\ManyToOne(targetEntity=Employe::class)
  79.      * @ORM\JoinColumn(nullable=true)
  80.      */
  81.     private ?Employe $representant null;
  82.     /**
  83.      * @ORM\OneToOne(targetEntity=Upload::class, cascade={"persist", "remove"})
  84.      * @ORM\JoinColumn(nullable=true)
  85.      */
  86.     private ?Upload $cachet null;
  87.     /**
  88.      * @ORM\OneToOne(targetEntity=Upload::class, cascade={"persist", "remove"})
  89.      * @ORM\JoinColumn(nullable=true)
  90.      */
  91.     private ?Upload $piedpage null;
  92.     /**
  93.      * @ORM\OneToOne(targetEntity=Upload::class, cascade={"persist", "remove"})
  94.      * @ORM\JoinColumn(nullable=true)
  95.      */
  96.     private ?Upload $imageRib null;
  97.     /**
  98.      * @ORM\OneToMany(targetEntity=Dossier::class, mappedBy="societe")
  99.      * @Serializer\Ignore()
  100.      */
  101.     private Collection $dossiers;
  102.     public function __construct()
  103.     {
  104.         parent::__construct();
  105.         $this->sites = new ArrayCollection();
  106.         $this->dossiers = new ArrayCollection();
  107.     }
  108.     public function getReferentHandicap(): ?Employe
  109.     {
  110.         return $this->referentHandicap;
  111.     }
  112.     public function setReferentHandicap(?Employe $referentHandicap): self
  113.     {
  114.         $this->referentHandicap $referentHandicap;
  115.         return $this;
  116.     }
  117.     public function getRepresentant(): ?Employe
  118.     {
  119.         return $this->representant;
  120.     }
  121.     public function setRepresentant(?Employe $representant): self
  122.     {
  123.         $this->representant $representant;
  124.         return $this;
  125.     }
  126.     public function getFinanceurModeleAbsence(): ?Financeur
  127.     {
  128.         return $this->financeurModeleAbsence;
  129.     }
  130.     public function setFinanceurModeleAbsence(?Financeur $financeurModeleAbsence): self
  131.     {
  132.         $this->financeurModeleAbsence $financeurModeleAbsence;
  133.         return $this;
  134.     }
  135.     public function getFinanceurModeleRetard(): ?Financeur
  136.     {
  137.         return $this->financeurModeleRetard;
  138.     }
  139.     public function setFinanceurModeleRetard(?Financeur $financeurModeleRetard): self
  140.     {
  141.         $this->financeurModeleRetard $financeurModeleRetard;
  142.         return $this;
  143.     }
  144.     public function isDefautAlternance(): ?bool
  145.     {
  146.         return $this->defautAlternance;
  147.     }
  148.     public function setDefautAlternance(?bool $defautAlternance): self
  149.     {
  150.         $this->defautAlternance $defautAlternance;
  151.         return $this;
  152.     }
  153.     public function getSignatureEmail(): ?string
  154.     {
  155.         return $this->signatureEmail;
  156.     }
  157.     public function setSignatureEmail(string $signatureEmail): self
  158.     {
  159.         $this->signatureEmail $signatureEmail;
  160.         return $this;
  161.     }
  162.     public function isParDefaut(): ?bool
  163.     {
  164.         return $this->parDefaut;
  165.     }
  166.     public function setParDefaut(?bool $parDefaut): self
  167.     {
  168.         $this->parDefaut $parDefaut;
  169.         return $this;
  170.     }
  171.     public function getType(): ?Masterlistelg
  172.     {
  173.         return $this->type;
  174.     }
  175.     public function setType(?Masterlistelg $type): self
  176.     {
  177.         $this->type $type;
  178.         return $this;
  179.     }
  180.     /**
  181.      * @return Collection<int, Site>
  182.      */
  183.     public function getSites(): Collection
  184.     {
  185.         return $this->sites;
  186.     }
  187.     public function addSite(Site $site): self
  188.     {
  189.         if (!$this->sites->contains($site)) {
  190.             $this->sites->add($site);
  191.             $site->setSociete($this);
  192.         }
  193.         return $this;
  194.     }
  195.     public function removeSite(Site $site): self
  196.     {
  197.         if ($this->sites->removeElement($site)) {
  198.             // set the owning side to null (unless already changed)
  199.             if ($site->getSociete() === $this) {
  200.                 $site->setSociete(null);
  201.             }
  202.         }
  203.         return $this;
  204.     }
  205.     public function getCodeAdherent(): ?string
  206.     {
  207.         return $this->codeAdherent;
  208.     }
  209.     public function setCodeAdherent(?string $codeAdherent): self
  210.     {
  211.         $this->codeAdherent $codeAdherent;
  212.         return $this;
  213.     }
  214.     public function getCachet(): ?Upload
  215.     {
  216.         return $this->cachet;
  217.     }
  218.     public function setCachet(?Upload $cachet): self
  219.     {
  220.         $this->cachet $cachet;
  221.         return $this;
  222.     }
  223.     public function getPiedpage(): ?Upload
  224.     {
  225.         return $this->piedpage;
  226.     }
  227.     public function setPiedpage(?Upload $piedpage): self
  228.     {
  229.         $this->piedpage $piedpage;
  230.         return $this;
  231.     }
  232.     public function getWidthLogoHeader(): ?string
  233.     {
  234.         return $this->widthLogoHeader;
  235.     }
  236.     public function setWidthLogoHeader(?string $widthLogoHeader): self
  237.     {
  238.         $this->widthLogoHeader $widthLogoHeader;
  239.         return $this;
  240.     }
  241.     public function getHeightLogoHeader(): ?string
  242.     {
  243.         return $this->heightLogoHeader;
  244.     }
  245.     public function setHeightLogoHeader(?string $heightLogoHeader): self
  246.     {
  247.         $this->heightLogoHeader $heightLogoHeader;
  248.         return $this;
  249.     }
  250.     public function getWidthLogoFooter(): ?string
  251.     {
  252.         return $this->widthLogoFooter;
  253.     }
  254.     public function setWidthLogoFooter(?string $widthLogoFooter): self
  255.     {
  256.         $this->widthLogoFooter $widthLogoFooter;
  257.         return $this;
  258.     }
  259.     public function getHeightLogoFooter(): ?string
  260.     {
  261.         return $this->heightLogoFooter;
  262.     }
  263.     public function setHeightLogoFooter(?string $heightLogoFooter): self
  264.     {
  265.         $this->heightLogoFooter $heightLogoFooter;
  266.         return $this;
  267.     }
  268.     public function getImageRib(): ?Upload
  269.     {
  270.         return $this->imageRib;
  271.     }
  272.     public function setImageRib(?Upload $imageRib): self
  273.     {
  274.         $this->imageRib $imageRib;
  275.         return $this;
  276.     }
  277.     /**
  278.      * @return Collection<int, Dossier>
  279.      */
  280.     public function getDossiers(): Collection
  281.     {
  282.         return $this->dossiers;
  283.     }
  284.     public function addDossier(Dossier $dossier): self
  285.     {
  286.         if (!$this->dossiers->contains($dossier)) {
  287.             $this->dossiers->add($dossier);
  288.             $dossier->setSociete($this);
  289.         }
  290.         return $this;
  291.     }
  292.     public function removeDossier(Dossier $dossier): self
  293.     {
  294.         if ($this->dossiers->removeElement($dossier)) {
  295.             // set the owning side to null (unless already changed)
  296.             if ($dossier->getSociete() === $this) {
  297.                 $dossier->setSociete(null);
  298.             }
  299.         }
  300.         return $this;
  301.     }
  302.     public function getNumEcole(): ?string
  303.     {
  304.         return $this->numEcole;
  305.     }
  306.     public function setNumEcole(?string $numEcole): self
  307.     {
  308.         $this->numEcole $numEcole;
  309.         return $this;
  310.     }
  311. }