<?php
namespace App\Entity;
use App\Repository\SyntheseRemunarationCabRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: SyntheseRemunarationCabRepository::class)]
class SyntheseRemunarationCab
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'syntheseRemunarationCabs')]
private ?Periode $periode = null;
#[ORM\Column(nullable: true)]
private ?float $salaireBruteImposable = null;
#[ORM\Column(nullable: true)]
private ?float $salaireBrute = null;
#[ORM\Column(nullable: true)]
private ?float $totalPrimesNonImposable = null;
#[ORM\Column(nullable: true)]
private ?float $totalPrelevement = null;
#[ORM\Column(nullable: true)]
private ?float $cnssPs = null;
#[ORM\Column(nullable: true)]
private ?float $cnssPp = null;
#[ORM\Column(nullable: true)]
private ?float $cimrPp = null;
#[ORM\Column(nullable: true)]
private ?float $cimrPs = null;
#[ORM\Column(nullable: true)]
private ?float $ir = null;
#[ORM\Column(nullable: true)]
private ?float $netTheorique = null;
#[ORM\Column(nullable: true)]
private ?float $netFinal = null;
#[ORM\OneToMany(mappedBy: 'cab', targetEntity: SyntheseRemunarationDet::class)]
private Collection $dets;
#[ORM\Column(length: 255, nullable: true)]
private ?string $groupement = null;
public function __construct()
{
$this->dets = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getPeriode(): ?Periode
{
return $this->periode;
}
public function setPeriode(?Periode $periode): static
{
$this->periode = $periode;
return $this;
}
public function getSalaireBruteImposable(): ?float
{
return $this->salaireBruteImposable;
}
public function setSalaireBruteImposable(?float $salaireBruteImposable): static
{
$this->salaireBruteImposable = round($salaireBruteImposable, 2);
return $this;
}
public function getSalaireBrute(): ?float
{
return $this->salaireBrute;
}
public function setSalaireBrute(?float $salaireBrute): static
{
$this->salaireBrute = round($salaireBrute,2);
return $this;
}
public function getTotalPrimesNonImposable(): ?float
{
return $this->totalPrimesNonImposable;
}
public function setTotalPrimesNonImposable(?float $totalPrimesNonImposable): static
{
$this->totalPrimesNonImposable = round($totalPrimesNonImposable,2);
return $this;
}
public function getTotalPrelevement(): ?float
{
return $this->totalPrelevement;
}
public function setTotalPrelevement(?float $totalPrelevement): static
{
$this->totalPrelevement = round($totalPrelevement,2);
return $this;
}
public function getCnssPs(): ?float
{
return $this->cnssPs;
}
public function setCnssPs(?float $cnssPs): static
{
$this->cnssPs = round($cnssPs,2);
return $this;
}
public function getCnssPp(): ?float
{
return $this->cnssPp;
}
public function setCnssPp(?float $cnssPp): static
{
$this->cnssPp = round($cnssPp,2);
return $this;
}
public function getCimrPp(): ?float
{
return $this->cimrPp;
}
public function setCimrPp(?float $cimrPp): static
{
$this->cimrPp = round($cimrPp,2);
return $this;
}
public function getCimrPs(): ?float
{
return $this->cimrPs;
}
public function setCimrPs(?float $cimrPs): static
{
$this->cimrPs = round($cimrPs,2);
return $this;
}
public function getIr(): ?float
{
return $this->ir;
}
public function setIr(?float $ir): static
{
$this->ir = round($ir,2);
return $this;
}
public function getNetTheorique(): ?float
{
return $this->netTheorique;
}
public function setNetTheorique(?float $netTheorique): static
{
$this->netTheorique = round($netTheorique,2);
return $this;
}
public function getNetFinal(): ?float
{
return $this->netFinal;
}
public function setNetFinal(?float $netFinal): static
{
$this->netFinal = round($netFinal,2);
return $this;
}
/**
* @return Collection<int, SyntheseRemunarationDet>
*/
public function getDets(): Collection
{
return $this->dets;
}
public function addDet(SyntheseRemunarationDet $det): static
{
if (!$this->dets->contains($det)) {
$this->dets->add($det);
$det->setCab($this);
}
return $this;
}
public function removeDet(SyntheseRemunarationDet $det): static
{
if ($this->dets->removeElement($det)) {
// set the owning side to null (unless already changed)
if ($det->getCab() === $this) {
$det->setCab(null);
}
}
return $this;
}
public function getGroupement(): ?string
{
return $this->groupement;
}
public function setGroupement(?string $groupement): static
{
$this->groupement = $groupement;
return $this;
}
}