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