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

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