src/Entity/Tbulletin.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TbulletinRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassTbulletinRepository::class)]
  8. class Tbulletin
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(nullable:true)]
  15.     private ?int $Annee null;
  16.    
  17.     #[ORM\ManyToOne(inversedBy'bulletins')]
  18.     private ?Periode $periode null;
  19.     #[ORM\OneToMany(mappedBy'bulletin'targetEntityPPrelevementLg::class)]
  20.     private Collection $prelevementLgs;
  21.     #[ORM\OneToMany(mappedBy'bulletin'targetEntityTbulletinLg::class)]
  22.     private Collection $bulletinLgs;
  23.     #[ORM\ManyToOne(inversedBy'bulletins')]
  24.     private ?LContract $contract null;
  25.     #[ORM\OneToMany(mappedBy'bulletin'targetEntityLElementEcheance::class)]
  26.     private Collection $elementEcheances;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $code null;
  29.     #[ORM\ManyToOne(inversedBy'bulletins')]
  30.     private ?PDossier $dossier null;
  31.     #[ORM\ManyToOne]
  32.     private ?PDevise $devise null;
  33.     #[ORM\ManyToOne]
  34.     private ?PPaiement $paiement null;
  35.     #[ORM\Column(length255nullabletrue)]
  36.     private ?string $observation null;
  37.     #[ORM\ManyToOne(inversedBy'bulletins')]
  38.     private ?PBordereau $bordereau null;
  39.     #[ORM\ManyToOne(inversedBy'bulletin')]
  40.     #[ORM\JoinColumn(nullabletrue)]
  41.     private ?PPiece $piece null;
  42.     #[ORM\OneToMany(mappedBy'bulletin'targetEntityJournalBulletinLg::class)]
  43.     private Collection $journalBulletinLgs;
  44.     #[ORM\Column(nullabletrue)]
  45.     private ?bool $active true;
  46.     #[ORM\Column(length255nullabletrue)]
  47.     private ?string $motifAnnulation null;
  48.     #[ORM\ManyToOne]
  49.     private ?Users $userAnnulation null;
  50.     #[ORM\OneToMany(mappedBy'bulletin'targetEntityContractNetTheorique::class)]
  51.     private Collection $contractNetTheoriques;
  52.     #[ORM\Column(nullabletrue)]
  53.     private ?int $tauxCotisCimr null;
  54.     #[ORM\Column(length255nullabletrue)]
  55.     private ?string $categorieCimr null;
  56.     #[ORM\Column(length255nullabletrue)]
  57.     private ?string $rib null;
  58.     public function __construct()
  59.     {
  60.         $this->prelevementLgs = new ArrayCollection();
  61.         $this->bulletinLgs = new ArrayCollection();
  62.         $this->elementEcheances = new ArrayCollection();
  63.         $this->journalBulletinLgs = new ArrayCollection();
  64.         $this->contractNetTheoriques = new ArrayCollection();
  65.     }
  66.     public function getId(): ?int
  67.     {
  68.         return $this->id;
  69.     }
  70.     public function getAnnee(): ?int
  71.     {
  72.         return $this->Annee;
  73.     }
  74.     public function setAnnee(int $Annee): self
  75.     {
  76.         $this->Annee $Annee;
  77.         return $this;
  78.     }
  79.     
  80.     public function getPeriode(): ?Periode
  81.     {
  82.         return $this->periode;
  83.     }
  84.     public function setPeriode(?Periode $periode): self
  85.     {
  86.         $this->periode $periode;
  87.         return $this;
  88.     }
  89.     /**
  90.      * @return Collection<int, PPrelevementLg>
  91.      */
  92.     public function getPrelevements(): Collection
  93.     {
  94.         return $this->prelevementLgs;
  95.     }
  96.     /**
  97.      * @return Collection<int, PPrelevementLg>
  98.      */
  99.     public function getBulletinLgs(): Collection
  100.     {
  101.         return $this->bulletinLgs;
  102.     }
  103.     public function getActiveBulletinLgs()
  104.     {
  105.         $array = [];
  106.         foreach($this->bulletinLgs as $bulletinLg) {
  107.             if($bulletinLg->isActive()) {
  108.                 array_push($array$bulletinLg);
  109.             }
  110.         }
  111.         return $array;
  112.     }
  113.     public function addPrelevement(PPrelevementLg $prelevementLg): self
  114.     {
  115.         if (!$this->prelevementLgs->contains($prelevementLg)) {
  116.             $this->prelevementLgs->add($prelevementLg);
  117.             $prelevementLg->setBulletin($this);
  118.         }
  119.         return $this;
  120.     }
  121.     public function removePrelevement(PPrelevementLg $prelevementLg): self
  122.     {
  123.         if ($this->prelevementLgs->removeElement($prelevementLg)) {
  124.             // set the owning side to null (unless already changed)
  125.             if ($prelevementLg->getBulletin() === $this) {
  126.                 $prelevementLg->setBulletin(null);
  127.             }
  128.         }
  129.         return $this;
  130.     }
  131.     public function getContract(): ?LContract
  132.     {
  133.         return $this->contract;
  134.     }
  135.     public function setContract(?LContract $contract): self
  136.     {
  137.         $this->contract $contract;
  138.         return $this;
  139.     }
  140.     /**
  141.      * @return Collection<int, LElementEcheance>
  142.      */
  143.     public function getElementEcheances(): Collection
  144.     {
  145.         return $this->elementEcheances;
  146.     }
  147.     public function addElementEcheance(LElementEcheance $elementEcheance): self
  148.     {
  149.         if (!$this->elementEcheances->contains($elementEcheance)) {
  150.             $this->elementEcheances->add($elementEcheance);
  151.             $elementEcheance->setBulletin($this);
  152.         }
  153.         return $this;
  154.     }
  155.     public function removeElementEcheance(LElementEcheance $elementEcheance): self
  156.     {
  157.         if ($this->elementEcheances->removeElement($elementEcheance)) {
  158.             // set the owning side to null (unless already changed)
  159.             if ($elementEcheance->getBulletin() === $this) {
  160.                 $elementEcheance->setBulletin(null);
  161.             }
  162.         }
  163.         return $this;
  164.     }
  165.     public function getCode(): ?string
  166.     {
  167.         return $this->code;
  168.     }
  169.     public function setCode(?string $code): self
  170.     {
  171.         $this->code $code;
  172.         return $this;
  173.     }
  174.     public function getDossier(): ?PDossier
  175.     {
  176.         return $this->dossier;
  177.     }
  178.     public function setDossier(?PDossier $dossier): self
  179.     {
  180.         $this->dossier $dossier;
  181.         return $this;
  182.     }
  183.     public function getDevise(): ?PDevise
  184.     {
  185.         return $this->devise;
  186.     }
  187.     public function setDevise(?PDevise $devise): self
  188.     {
  189.         $this->devise $devise;
  190.         return $this;
  191.     }
  192.     public function getPaiement(): ?PPaiement
  193.     {
  194.         return $this->paiement;
  195.     }
  196.     public function setPaiement(?PPaiement $paiement): self
  197.     {
  198.         $this->paiement $paiement;
  199.         return $this;
  200.     }
  201.     public function getObservation(): ?string
  202.     {
  203.         return $this->observation;
  204.     }
  205.     public function setObservation(?string $observation): self
  206.     {
  207.         $this->observation $observation;
  208.         return $this;
  209.     }
  210.     public function getBordereau(): ?PBordereau
  211.     {
  212.         return $this->bordereau;
  213.     }
  214.     public function setBordereau(?PBordereau $bordereau): self
  215.     {
  216.         $this->bordereau $bordereau;
  217.         return $this;
  218.     }
  219.     public function getPPiece(): ?PPiece
  220.     {
  221.         return $this->piece;
  222.     }
  223.     public function setPPiece(?PPiece $piece): self
  224.     {
  225.         $this->piece $piece;
  226.         return $this;
  227.     }
  228.     /**
  229.      * @return Collection<int, JournalBulletinLg>
  230.      */
  231.     public function getJournalBulletinLgs(): Collection
  232.     {
  233.         return $this->journalBulletinLgs;
  234.     }
  235.     public function addJournalBulletinLg(JournalBulletinLg $journalBulletinLg): self
  236.     {
  237.         if (!$this->journalBulletinLgs->contains($journalBulletinLg)) {
  238.             $this->journalBulletinLgs->add($journalBulletinLg);
  239.             $journalBulletinLg->setBulletin($this);
  240.         }
  241.         return $this;
  242.     }
  243.     public function removeJournalBulletinLg(JournalBulletinLg $journalBulletinLg): self
  244.     {
  245.         if ($this->journalBulletinLgs->removeElement($journalBulletinLg)) {
  246.             // set the owning side to null (unless already changed)
  247.             if ($journalBulletinLg->getBulletin() === $this) {
  248.                 $journalBulletinLg->setBulletin(null);
  249.             }
  250.         }
  251.         return $this;
  252.     }
  253.     public function isActive(): ?bool
  254.     {
  255.         return $this->active;
  256.     }
  257.     public function setActive(?bool $active): static
  258.     {
  259.         $this->active $active;
  260.         return $this;
  261.     }
  262.     public function getMotifAnnulation(): ?string
  263.     {
  264.         return $this->motifAnnulation;
  265.     }
  266.     public function setMotifAnnulation(?string $motifAnnulation): static
  267.     {
  268.         $this->motifAnnulation $motifAnnulation;
  269.         return $this;
  270.     }
  271.     public function getUserAnnulation(): ?Users
  272.     {
  273.         return $this->userAnnulation;
  274.     }
  275.     public function setUserAnnulation(?Users $userAnnulation): static
  276.     {
  277.         $this->userAnnulation $userAnnulation;
  278.         return $this;
  279.     }
  280.     /**
  281.      * @return Collection<int, ContractNetTheorique>
  282.      */
  283.     public function getContractNetTheoriques(): Collection
  284.     {
  285.         return $this->contractNetTheoriques;
  286.     }
  287.     public function addContractNetTheorique(ContractNetTheorique $contractNetTheorique): static
  288.     {
  289.         if (!$this->contractNetTheoriques->contains($contractNetTheorique)) {
  290.             $this->contractNetTheoriques->add($contractNetTheorique);
  291.             $contractNetTheorique->setBulletin($this);
  292.         }
  293.         return $this;
  294.     }
  295.     public function removeContractNetTheorique(ContractNetTheorique $contractNetTheorique): static
  296.     {
  297.         if ($this->contractNetTheoriques->removeElement($contractNetTheorique)) {
  298.             // set the owning side to null (unless already changed)
  299.             if ($contractNetTheorique->getBulletin() === $this) {
  300.                 $contractNetTheorique->setBulletin(null);
  301.             }
  302.         }
  303.         return $this;
  304.     }
  305.     public function getTauxCotisCimr(): ?int
  306.     {
  307.         return $this->tauxCotisCimr;
  308.     }
  309.     public function setTauxCotisCimr(?int $tauxCotisCimr): static
  310.     {
  311.         $this->tauxCotisCimr $tauxCotisCimr;
  312.         return $this;
  313.     }
  314.     public function getCategorieCimr(): ?string
  315.     {
  316.         return $this->categorieCimr;
  317.     }
  318.     public function setCategorieCimr(?string $categorieCimr): static
  319.     {
  320.         $this->categorieCimr $categorieCimr;
  321.         return $this;
  322.     }
  323.     public function getRib(): ?string
  324.     {
  325.         return $this->rib;
  326.     }
  327.     public function setRib(?string $rib): static
  328.     {
  329.         $this->rib $rib;
  330.         return $this;
  331.     }
  332. }