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