src/Entity/Periode.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PeriodeRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassPeriodeRepository::class)]
  9. class Periode
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $code null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $abreviation null;
  19.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  20.     private ?\DateTimeInterface $date null;
  21.     #[ORM\OneToMany(mappedBy'periode'targetEntityPArretTravailLg::class)]
  22.     private Collection $arretTravailLgs;
  23.     #[ORM\OneToMany(mappedBy'periode'targetEntityLElementEcheance::class)]
  24.     private Collection $elementEcheances;
  25.     #[ORM\OneToMany(mappedBy'periode'targetEntityTbulletin::class)]
  26.     private Collection $bulletins;
  27.     #[ORM\OneToMany(mappedBy'periode'targetEntityPPrelevementLg::class)]
  28.     private Collection $prelevementLgs;
  29.     #[ORM\OneToMany(mappedBy'periode'targetEntityProbleme::class)]
  30.     private Collection $problemes;
  31.     #[ORM\OneToMany(mappedBy'periode'targetEntityPBordereau::class)]
  32.     private Collection $bordereaus;
  33.     #[ORM\Column(nullabletrue)]
  34.     private ?bool $isValider false;
  35.     #[ORM\Column(nullabletrue)]
  36.     private ?bool $isIntegrer false;
  37.     #[ORM\OneToMany(mappedBy'periode'targetEntitySyntheseRemunarationCab::class)]
  38.     private Collection $syntheseRemunarationCabs;
  39.     #[ORM\OneToMany(mappedBy'periode'targetEntityInjectRemuneration::class)]
  40.     private Collection $injectRemunerations;
  41.     public function __construct()
  42.     {
  43.         $this->arretTravailLgs = new ArrayCollection();
  44.         $this->elementEcheances = new ArrayCollection();
  45.         $this->bulletins = new ArrayCollection();
  46.         $this->prelevementLgs = new ArrayCollection();
  47.         $this->problemes = new ArrayCollection();
  48.         $this->bordereaus = new ArrayCollection();
  49.         $this->syntheseRemunarationCabs = new ArrayCollection();
  50.         $this->injectRemunerations = new ArrayCollection();
  51.     }
  52.     public function getId(): ?int
  53.     {
  54.         return $this->id;
  55.     }
  56.     public function getCode(): ?string
  57.     {
  58.         return $this->code;
  59.     }
  60.     public function setCode(?string $code): self
  61.     {
  62.         $this->code $code;
  63.         return $this;
  64.     }
  65.     public function getAbreviation(): ?string
  66.     {
  67.         return $this->abreviation;
  68.     }
  69.     public function setAbreviation(?string $abreviation): self
  70.     {
  71.         $this->abreviation $abreviation;
  72.         return $this;
  73.     }
  74.     public function getDate(): ?\DateTimeInterface
  75.     {
  76.         return $this->date;
  77.     }
  78.     public function setDate(?\DateTimeInterface $date): self
  79.     {
  80.         $this->date $date;
  81.         return $this;
  82.     }
  83.     /**
  84.      * @return Collection<int, PArretTravailLg>
  85.      */
  86.     public function getArretTravailLgs(): Collection
  87.     {
  88.         return $this->arretTravailLgs;
  89.     }
  90.     public function addArretTravailLg(PArretTravailLg $arretTravailLg): self
  91.     {
  92.         if (!$this->arretTravailLgs->contains($arretTravailLg)) {
  93.             $this->arretTravailLgs->add($arretTravailLg);
  94.             $arretTravailLg->setPeriode($this);
  95.         }
  96.         return $this;
  97.     }
  98.     public function removeArretTravailLg(PArretTravailLg $arretTravailLg): self
  99.     {
  100.         if ($this->arretTravailLgs->removeElement($arretTravailLg)) {
  101.             // set the owning side to null (unless already changed)
  102.             if ($arretTravailLg->getPeriode() === $this) {
  103.                 $arretTravailLg->setPeriode(null);
  104.             }
  105.         }
  106.         return $this;
  107.     }
  108.     /**
  109.      * @return Collection<int, LElementEcheance>
  110.      */
  111.     public function getElementEcheances(): Collection
  112.     {
  113.         return $this->elementEcheances;
  114.     }
  115.     public function addElementEcheance(LElementEcheance $elementEcheance): self
  116.     {
  117.         if (!$this->elementEcheances->contains($elementEcheance)) {
  118.             $this->elementEcheances->add($elementEcheance);
  119.             $elementEcheance->setPeriode($this);
  120.         }
  121.         return $this;
  122.     }
  123.     public function removeElementEcheance(LElementEcheance $elementEcheance): self
  124.     {
  125.         if ($this->elementEcheances->removeElement($elementEcheance)) {
  126.             // set the owning side to null (unless already changed)
  127.             if ($elementEcheance->getPeriode() === $this) {
  128.                 $elementEcheance->setPeriode(null);
  129.             }
  130.         }
  131.         return $this;
  132.     }
  133.     /**
  134.      * @return Collection<int, Tbulletin>
  135.      */
  136.     public function getBulletins(): Collection
  137.     {
  138.         return $this->bulletins;
  139.     }
  140.     public function addBulletin(Tbulletin $bulletin): self
  141.     {
  142.         if (!$this->bulletins->contains($bulletin)) {
  143.             $this->bulletins->add($bulletin);
  144.             $bulletin->setPeriode($this);
  145.         }
  146.         return $this;
  147.     }
  148.     public function removeBulletin(Tbulletin $bulletin): self
  149.     {
  150.         if ($this->bulletins->removeElement($bulletin)) {
  151.             // set the owning side to null (unless already changed)
  152.             if ($bulletin->getPeriode() === $this) {
  153.                 $bulletin->setPeriode(null);
  154.             }
  155.         }
  156.         return $this;
  157.     }
  158.    
  159.     /**
  160.      * @return Collection<int, PPrelevementLg>
  161.      */
  162.     public function getPrelevementLgs(): Collection
  163.     {
  164.         return $this->prelevementLgs;
  165.     }
  166.     public function addPrelevementLg(PPrelevementLg $prelevementLg): self
  167.     {
  168.         if (!$this->prelevementLgs->contains($prelevementLg)) {
  169.             $this->prelevementLgs->add($prelevementLg);
  170.             $prelevementLg->setPeriode($this);
  171.         }
  172.         return $this;
  173.     }
  174.     public function removePrelevementLg(PPrelevementLg $prelevementLg): self
  175.     {
  176.         if ($this->prelevementLgs->removeElement($prelevementLg)) {
  177.             // set the owning side to null (unless already changed)
  178.             if ($prelevementLg->getPeriode() === $this) {
  179.                 $prelevementLg->setPeriode(null);
  180.             }
  181.         }
  182.         return $this;
  183.     }
  184.     /**
  185.      * @return Collection<int, Probleme>
  186.      */
  187.     public function getProblemes(): Collection
  188.     {
  189.         return $this->problemes;
  190.     }
  191.     public function addProbleme(Probleme $probleme): self
  192.     {
  193.         if (!$this->problemes->contains($probleme)) {
  194.             $this->problemes->add($probleme);
  195.             $probleme->setPeriode($this);
  196.         }
  197.         return $this;
  198.     }
  199.     public function removeProbleme(Probleme $probleme): self
  200.     {
  201.         if ($this->problemes->removeElement($probleme)) {
  202.             // set the owning side to null (unless already changed)
  203.             if ($probleme->getPeriode() === $this) {
  204.                 $probleme->setPeriode(null);
  205.             }
  206.         }
  207.         return $this;
  208.     }
  209.     /**
  210.      * @return Collection<int, PBordereau>
  211.      */
  212.     public function getBordereaus(): Collection
  213.     {
  214.         return $this->bordereaus;
  215.     }
  216.     public function addBordereau(PBordereau $bordereau): self
  217.     {
  218.         if (!$this->bordereaus->contains($bordereau)) {
  219.             $this->bordereaus->add($bordereau);
  220.             $bordereau->setPeriode($this);
  221.         }
  222.         return $this;
  223.     }
  224.     public function removeBordereau(PBordereau $bordereau): self
  225.     {
  226.         if ($this->bordereaus->removeElement($bordereau)) {
  227.             // set the owning side to null (unless already changed)
  228.             if ($bordereau->getPeriode() === $this) {
  229.                 $bordereau->setPeriode(null);
  230.             }
  231.         }
  232.         return $this;
  233.     }
  234.     public function isValider(): ?bool
  235.     {
  236.         return $this->isValider;
  237.     }
  238.     public function setIsValider(?bool $isValider): static
  239.     {
  240.         $this->isValider $isValider;
  241.         return $this;
  242.     }
  243.     public function isIntegrer(): ?bool
  244.     {
  245.         return $this->isIntegrer;
  246.     }
  247.     public function setIsIntegrer(?bool $isIntegrer): static
  248.     {
  249.         $this->isIntegrer $isIntegrer;
  250.         return $this;
  251.     }
  252.     /**
  253.      * @return Collection<int, SyntheseRemunarationCab>
  254.      */
  255.     public function getSyntheseRemunarationCabs(): Collection
  256.     {
  257.         return $this->syntheseRemunarationCabs;
  258.     }
  259.     public function addSyntheseRemunarationCab(SyntheseRemunarationCab $syntheseRemunarationCab): static
  260.     {
  261.         if (!$this->syntheseRemunarationCabs->contains($syntheseRemunarationCab)) {
  262.             $this->syntheseRemunarationCabs->add($syntheseRemunarationCab);
  263.             $syntheseRemunarationCab->setPeriode($this);
  264.         }
  265.         return $this;
  266.     }
  267.     public function removeSyntheseRemunarationCab(SyntheseRemunarationCab $syntheseRemunarationCab): static
  268.     {
  269.         if ($this->syntheseRemunarationCabs->removeElement($syntheseRemunarationCab)) {
  270.             // set the owning side to null (unless already changed)
  271.             if ($syntheseRemunarationCab->getPeriode() === $this) {
  272.                 $syntheseRemunarationCab->setPeriode(null);
  273.             }
  274.         }
  275.         return $this;
  276.     }
  277.     /**
  278.      * @return Collection<int, InjectRemuneration>
  279.      */
  280.     public function getInjectRemunerations(): Collection
  281.     {
  282.         return $this->injectRemunerations;
  283.     }
  284.     public function addInjectRemuneration(InjectRemuneration $injectRemuneration): static
  285.     {
  286.         if (!$this->injectRemunerations->contains($injectRemuneration)) {
  287.             $this->injectRemunerations->add($injectRemuneration);
  288.             $injectRemuneration->setPeriode($this);
  289.         }
  290.         return $this;
  291.     }
  292.     public function removeInjectRemuneration(InjectRemuneration $injectRemuneration): static
  293.     {
  294.         if ($this->injectRemunerations->removeElement($injectRemuneration)) {
  295.             // set the owning side to null (unless already changed)
  296.             if ($injectRemuneration->getPeriode() === $this) {
  297.                 $injectRemuneration->setPeriode(null);
  298.             }
  299.         }
  300.         return $this;
  301.     }
  302. }