<?php
namespace App\Entity;
use App\Repository\TypRemunerationRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TypRemunerationRepository::class)]
class TypRemuneration
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true, name: 'sous_mode')]
private ?string $designation = null;
#[ORM\OneToMany(mappedBy: 'type', targetEntity: PnatureContract::class)]
private Collection $pnatureContracts;
#[ORM\Column(length: 70, nullable: true)]
private ?string $abreviation = null;
#[ORM\Column(nullable: true)]
private ?bool $cnss = null;
#[ORM\Column(nullable: true)]
private ?bool $cimr = null;
#[ORM\Column(nullable: true)]
private ?bool $ir = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $observation = null;
#[ORM\ManyToOne]
private ?ParamGlobalDet $natureContribution = null;
#[ORM\ManyToOne]
private ?ParamGlobalDet $parametreContribution = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $mode = null;
public function __construct()
{
$this->pnatureContracts = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getDesignation(): ?string
{
return $this->designation;
}
public function setDesignation(?string $designation): static
{
$this->designation = $designation;
return $this;
}
/**
* @return Collection<int, PnatureContract>
*/
public function getPnatureContracts(): Collection
{
return $this->pnatureContracts;
}
public function addPnatureContract(PnatureContract $pnatureContract): static
{
if (!$this->pnatureContracts->contains($pnatureContract)) {
$this->pnatureContracts->add($pnatureContract);
$pnatureContract->setType($this);
}
return $this;
}
public function removePnatureContract(PnatureContract $pnatureContract): static
{
if ($this->pnatureContracts->removeElement($pnatureContract)) {
// set the owning side to null (unless already changed)
if ($pnatureContract->getType() === $this) {
$pnatureContract->setType(null);
}
}
return $this;
}
public function getAbreviation(): ?string
{
return $this->abreviation;
}
public function setAbreviation(?string $abreviation): self
{
$this->abreviation = $abreviation;
return $this;
}
public function isCnss(): ?bool
{
return $this->cnss;
}
public function setCnss(?bool $cnss): static
{
$this->cnss = $cnss;
return $this;
}
public function isCimr(): ?bool
{
return $this->cimr;
}
public function setCimr(?bool $cimr): static
{
$this->cimr = $cimr;
return $this;
}
public function isIr(): ?bool
{
return $this->ir;
}
public function setIr(?bool $ir): static
{
$this->ir = $ir;
return $this;
}
public function getObservation(): ?string
{
return $this->observation;
}
public function setObservation(?string $observation): static
{
$this->observation = $observation;
return $this;
}
public function getNatureContribution(): ?ParamGlobalDet
{
return $this->natureContribution;
}
public function setNatureContribution(?ParamGlobalDet $natureContribution): static
{
$this->natureContribution = $natureContribution;
return $this;
}
public function getParametreContribution(): ?ParamGlobalDet
{
return $this->parametreContribution;
}
public function setParametreContribution(?ParamGlobalDet $parametreContribution): static
{
$this->parametreContribution = $parametreContribution;
return $this;
}
public function getMode(): ?string
{
return $this->mode;
}
public function setMode(?string $mode): static
{
$this->mode = $mode;
return $this;
}
}