<?phpnamespace App\Entity;use App\Repository\ParConceptoNominaRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ParConceptoNominaRepository::class)]class ParConceptoNomina{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 150)] private ?string $nombre = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $createAt = null; #[ORM\Column(length: 50)] private ?string $createUser = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $updateAt = null; #[ORM\Column(length: 50)] private ?string $updateUser = null; #[ORM\ManyToOne(inversedBy: 'conceptoNomina')] private ?ParEstado $estado = null; #[ORM\OneToMany(mappedBy: 'conceptoNomina', targetEntity: ParSubConceptoNomina::class)] private Collection $subConceptoNomina; #[ORM\ManyToMany(targetEntity: GHNovedadNomina::class, mappedBy: 'conceptoNomina')] private Collection $novedadNomina; public function __construct() { $this->subConceptoNomina = new ArrayCollection(); $this->novedadNomina = new ArrayCollection(); } public function __toString() { return $this->getNombre(); } public function getId(): ?int { return $this->id; } public function getNombre(): ?string { return $this->nombre; } public function setNombre(string $nombre): static { $this->nombre = $nombre; return $this; } public function getCreateAt(): ?\DateTimeInterface { return $this->createAt; } public function setCreateAt(\DateTimeInterface $createAt): static { $this->createAt = $createAt; return $this; } public function getCreateUser(): ?string { return $this->createUser; } public function setCreateUser(string $createUser): static { $this->createUser = $createUser; return $this; } public function getUpdateAt(): ?\DateTimeInterface { return $this->updateAt; } public function setUpdateAt(\DateTimeInterface $updateAt): static { $this->updateAt = $updateAt; return $this; } public function getUpdateUser(): ?string { return $this->updateUser; } public function setUpdateUser(string $updateUser): static { $this->updateUser = $updateUser; return $this; } public function getEstado(): ?ParEstado { return $this->estado; } public function setEstado(?ParEstado $estado): static { $this->estado = $estado; return $this; } /** * @return Collection<int, ParSubConceptoNomina> */ public function getSubConceptoNomina(): Collection { return $this->subConceptoNomina; } public function addSubConceptoNomina(ParSubConceptoNomina $subConceptoNomina): static { if (!$this->subConceptoNomina->contains($subConceptoNomina)) { $this->subConceptoNomina->add($subConceptoNomina); $subConceptoNomina->setConceptoNomina($this); } return $this; } public function removeSubConceptoNomina(ParSubConceptoNomina $subConceptoNomina): static { if ($this->subConceptoNomina->removeElement($subConceptoNomina)) { // set the owning side to null (unless already changed) if ($subConceptoNomina->getConceptoNomina() === $this) { $subConceptoNomina->setConceptoNomina(null); } } return $this; } /** * @return Collection<int, GHNovedadNomina> */ public function getNovedadNomina(): Collection { return $this->novedadNomina; } public function addNovedadNomina(GHNovedadNomina $novedadNomina): static { if (!$this->novedadNomina->contains($novedadNomina)) { $this->novedadNomina->add($novedadNomina); $novedadNomina->addConceptoNomina($this); } return $this; } public function removeNovedadNomina(GHNovedadNomina $novedadNomina): static { if ($this->novedadNomina->removeElement($novedadNomina)) { $novedadNomina->removeConceptoNomina($this); } return $this; }}