src/Entity/PDossier.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PDossierRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassPDossierRepository::class)]
  8. class PDossier
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length150)]
  15.     private ?string $designation null;
  16.     #[ORM\Column(length150)]
  17.     private ?string $abreviation null;
  18.     #[ORM\Column(length150)]
  19.     private ?string $code null;
  20.   
  21.     #[ORM\OneToMany(mappedBy'dossier'targetEntityLContract::class)]
  22.     private Collection $contracts;
  23.     #[ORM\OneToMany(mappedBy'dossier'targetEntityTbulletin::class)]
  24.     private Collection $bulletins;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $groupement null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?int $DossierUgouvId null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $abreviation2 null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $abreviationUgouv null;
  33.     #[ORM\Column(length255nullabletrue)]
  34.     private ?string $fcy0 null;
  35.     #[ORM\Column(length255nullabletrue)]
  36.     private ?string $cpy0 null;
  37.     #[ORM\Column(nullabletrue)]
  38.     private ?int $partenaireId null;
  39.     #[ORM\OneToMany(mappedBy'dossier_id'targetEntityLdossierContract::class)]
  40.     private Collection $ldossierContracts;
  41.     #[ORM\Column(length255nullabletrue)]
  42.     private ?string $affiliation null;
  43.     #[ORM\Column(length255nullabletrue)]
  44.     private ?string $statutCimr null;
  45.     #[ORM\Column(length255nullabletrue)]
  46.     private ?string $image null;
  47.     #[ORM\Column(length255nullabletrue)]
  48.     private ?string $adresse null;
  49.     #[ORM\Column(length255nullabletrue)]
  50.     private ?string $ice null;
  51.     #[ORM\Column(length255nullabletrue)]
  52.     private ?string $numIf null;
  53.     #[ORM\Column(length255nullabletrue)]
  54.     private ?string $fax null;
  55.     #[ORM\Column(length255nullabletrue)]
  56.     private ?string $telephone null;
  57.     #[ORM\Column(nullabletrue)]
  58.     private ?bool $active null;
  59.     #[ORM\ManyToOne]
  60.     private ?PFcy $fcy null;
  61.     #[ORM\Column(length255nullabletrue)]
  62.     private ?string $das null;
  63.     #[ORM\OneToMany(mappedBy'dossier'targetEntityDemandeConge::class)]
  64.     private Collection $demandeConges;
  65.     #[ORM\OneToMany(mappedBy'dossier'targetEntityInjectRemuneration::class)]
  66.     private Collection $injectRemunerations;
  67.    
  68.     public function __construct()
  69.     {
  70.         $this->contracts = new ArrayCollection();
  71.         $this->ldossierContracts = new ArrayCollection();
  72.         $this->bulletins = new ArrayCollection();
  73.         $this->demandeConges = new ArrayCollection();
  74.         $this->injectRemunerations = new ArrayCollection();
  75.     }
  76.     public function getId(): ?int
  77.     {
  78.         return $this->id;
  79.     }
  80.     public function getDesignation(): ?string
  81.     {
  82.         return $this->designation;
  83.     }
  84.     public function setDesignation(string $Designation): self
  85.     {
  86.         $this->designation $Designation;
  87.         return $this;
  88.     }
  89.     public function getAbreviation(): ?string
  90.     {
  91.         return $this->abreviation;
  92.     }
  93.     public function setAbreviation(string $Abreviation): self
  94.     {
  95.         $this->abreviation $Abreviation;
  96.         return $this;
  97.     }
  98.     public function getCode(): ?string
  99.     {
  100.         return $this->code;
  101.     }
  102.     public function setCode(string $code): self
  103.     {
  104.         $this->code $code;
  105.         return $this;
  106.     }
  107.     /**
  108.      * @return Collection<int, LdossierContract>
  109.      */
  110.     public function getLdossierContracts(): Collection
  111.     {
  112.         return $this->ldossierContracts;
  113.     }
  114.     /**
  115.      * @return Collection<int, LContract>
  116.      */
  117.     public function getContracts(): Collection
  118.     {
  119.         return $this->contracts;
  120.     }
  121.     public function getActiveContracts()
  122.     {
  123.         $array = [];
  124.         foreach($this->ldossierContracts as $ldossierContract) {
  125.             if($ldossierContract->isActive() && $ldossierContract->getContractId()->getActive() == 1) {
  126.                 array_push($array$ldossierContract->getContractId());
  127.             }
  128.         }
  129.         return $array;
  130.     }
  131.     public function getActiveContractDossier()
  132.     {
  133.         $array = [];
  134.         foreach($this->contracts as $contract) {
  135.             if($contract->getActive() == 1) {
  136.                 array_push($array$contract);
  137.             }
  138.         }
  139.         return $array;
  140.     }
  141.     public function addContract(LContract $contract): self
  142.     {
  143.         if (!$this->contracts->contains($contract)) {
  144.             $this->contracts->add($contract);
  145.             $contract->setDossier($this);
  146.         }
  147.         return $this;
  148.     }
  149.     public function removeContract(LContract $contract): self
  150.     {
  151.         if ($this->contracts->removeElement($contract)) {
  152.             // set the owning side to null (unless already changed)
  153.             if ($contract->getDossier() === $this) {
  154.                 $contract->setDossier(null);
  155.             }
  156.         }
  157.         return $this;
  158.     }
  159.     /**
  160.      * @return Collection<int, Tbulletin>
  161.      */
  162.     public function getBulletins(): Collection
  163.     {
  164.         return $this->bulletins;
  165.     }
  166.     public function addBulletin(Tbulletin $bulletin): self
  167.     {
  168.         if (!$this->bulletins->contains($bulletin)) {
  169.             $this->bulletins->add($bulletin);
  170.             $bulletin->setDossier($this);
  171.         }
  172.         return $this;
  173.     }
  174.     public function removeBulletin(Tbulletin $bulletin): self
  175.     {
  176.         if ($this->bulletins->removeElement($bulletin)) {
  177.             // set the owning side to null (unless already changed)
  178.             if ($bulletin->getDossier() === $this) {
  179.                 $bulletin->setDossier(null);
  180.             }
  181.         }
  182.         return $this;
  183.     }
  184.     public function getGroupement(): ?string
  185.     {
  186.         return $this->groupement;
  187.     }
  188.     public function setGroupement(?string $groupement): self
  189.     {
  190.         $this->groupement $groupement;
  191.         return $this;
  192.     }
  193.     public function getDossierUgouvId(): ?int
  194.     {
  195.         return $this->DossierUgouvId;
  196.     }
  197.     public function setDossierUgouvId(?int $DossierUgouvId): self
  198.     {
  199.         $this->DossierUgouvId $DossierUgouvId;
  200.         return $this;
  201.     }
  202.     public function getAbreviation2(): ?string
  203.     {
  204.         return $this->abreviation2;
  205.     }
  206.     public function setAbreviation2(?string $abreviation2): self
  207.     {
  208.         $this->abreviation2 $abreviation2;
  209.         return $this;
  210.     }
  211.     public function getAbreviationUgouv(): ?string
  212.     {
  213.         return $this->abreviationUgouv;
  214.     }
  215.     public function setAbreviationUgouv(?string $AbreviationUgouv): self
  216.     {
  217.         $this->abreviationUgouv $AbreviationUgouv;
  218.         return $this;
  219.     }
  220.     public function getFcy0(): ?string
  221.     {
  222.         return $this->fcy0;
  223.     }
  224.     public function setFcy0(?string $fcy0): self
  225.     {
  226.         $this->fcy0 $fcy0;
  227.         return $this;
  228.     }
  229.     public function getCpy0(): ?string
  230.     {
  231.         return $this->cpy0;
  232.     }
  233.     public function setCpy0(?string $cpy0): self
  234.     {
  235.         $this->cpy0 $cpy0;
  236.         return $this;
  237.     }
  238.     public function getPartenaireId(): ?int
  239.     {
  240.         return $this->partenaireId;
  241.     }
  242.     public function setPartenaireId(?int $partenaireId): self
  243.     {
  244.         $this->partenaireId $partenaireId;
  245.         return $this;
  246.     }
  247.     public function getAffiliation(): ?string
  248.     {
  249.         return $this->affiliation;
  250.     }
  251.     public function setAffiliation(?string $affiliation): static
  252.     {
  253.         $this->affiliation $affiliation;
  254.         return $this;
  255.     }
  256.     public function getStatutCimr(): ?string
  257.     {
  258.         return $this->statutCimr;
  259.     }
  260.     public function setStatutCimr(?string $statutCimr): static
  261.     {
  262.         $this->statutCimr $statutCimr;
  263.         return $this;
  264.     }
  265.     public function getImage(): ?string
  266.     {
  267.         return $this->image;
  268.     }
  269.     public function setImage(?string $image): static
  270.     {
  271.         $this->image $image;
  272.         return $this;
  273.     }
  274.     public function getAdresse(): ?string
  275.     {
  276.         return $this->adresse;
  277.     }
  278.     public function setAdresse(?string $adresse): static
  279.     {
  280.         $this->adresse $adresse;
  281.         return $this;
  282.     }
  283.     public function getIce(): ?string
  284.     {
  285.         return $this->ice;
  286.     }
  287.     public function setIce(?string $ice): static
  288.     {
  289.         $this->ice $ice;
  290.         return $this;
  291.     }
  292.     public function getNumIf(): ?string
  293.     {
  294.         return $this->numIf;
  295.     }
  296.     public function setNumIf(?string $numIf): static
  297.     {
  298.         $this->numIf $numIf;
  299.         return $this;
  300.     }
  301.     public function getFax(): ?string
  302.     {
  303.         return $this->fax;
  304.     }
  305.     public function setFax(?string $fax): static
  306.     {
  307.         $this->fax $fax;
  308.         return $this;
  309.     }
  310.     public function isActive(): ?bool
  311.     {
  312.         return $this->active;
  313.     }
  314.     public function setActive(?bool $active): static
  315.     {
  316.         $this->active $active;
  317.         return $this;
  318.     }
  319.     public function getTelephone(): ?string
  320.     {
  321.         return $this->telephone;
  322.     }
  323.     public function setTelephone(?string $telephone): static
  324.     {
  325.         $this->telephone $telephone;
  326.          return $this;
  327.     }
  328.     public function getFcy(): ?PFcy
  329.     {
  330.         return $this->fcy;
  331.     }
  332.     public function setFcy(?PFcy $fcy): static
  333.     {
  334.         $this->fcy $fcy;
  335.         return $this;
  336.     }
  337.     public function getDas(): ?string
  338.     {
  339.         return $this->das;
  340.     }
  341.     public function setDas(?string $das): static
  342.     {
  343.         $this->das $das;
  344.         return $this;
  345.     }
  346.     /**
  347.      * @return Collection<int, DemandeConge>
  348.      */
  349.     public function getDemandeConges(): Collection
  350.     {
  351.         return $this->demandeConges;
  352.     }
  353.     public function addDemandeConge(DemandeConge $demandeConge): static
  354.     {
  355.         if (!$this->demandeConges->contains($demandeConge)) {
  356.             $this->demandeConges->add($demandeConge);
  357.             $demandeConge->setDossier($this);
  358.         }
  359.         return $this;
  360.     }
  361.     public function removeDemandeConge(DemandeConge $demandeConge): static
  362.     {
  363.         if ($this->demandeConges->removeElement($demandeConge)) {
  364.             // set the owning side to null (unless already changed)
  365.             if ($demandeConge->getDossier() === $this) {
  366.                 $demandeConge->setDossier(null);
  367.             }
  368.         }
  369.         return $this;
  370.     }
  371.     /**
  372.      * @return Collection<int, InjectRemuneration>
  373.      */
  374.     public function getInjectRemunerations(): Collection
  375.     {
  376.         return $this->injectRemunerations;
  377.     }
  378.     public function addInjectRemuneration(InjectRemuneration $injectRemuneration): static
  379.     {
  380.         if (!$this->injectRemunerations->contains($injectRemuneration)) {
  381.             $this->injectRemunerations->add($injectRemuneration);
  382.             $injectRemuneration->setDossier($this);
  383.         }
  384.         return $this;
  385.     }
  386.     public function removeInjectRemuneration(InjectRemuneration $injectRemuneration): static
  387.     {
  388.         if ($this->injectRemunerations->removeElement($injectRemuneration)) {
  389.             // set the owning side to null (unless already changed)
  390.             if ($injectRemuneration->getDossier() === $this) {
  391.                 $injectRemuneration->setDossier(null);
  392.             }
  393.         }
  394.         return $this;
  395.     }
  396. }