<?phpnamespace App\Entity;use App\Repository\ParSubConceptoNominaRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ParSubConceptoNominaRepository::class)]class ParSubConceptoNomina{ #[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: 'subConceptoNomina')] private ?ParConceptoNomina $conceptoNomina = null; #[ORM\ManyToMany(targetEntity: GHNovedadNomina::class, mappedBy: 'subConcepto')] private Collection $gHNovedadNominas; public function __construct() { $this->gHNovedadNominas = 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 getConceptoNomina(): ?ParConceptoNomina { return $this->conceptoNomina; } public function setConceptoNomina(?ParConceptoNomina $conceptoNomina): static { $this->conceptoNomina = $conceptoNomina; return $this; } /** * @return Collection<int, GHNovedadNomina> */ public function getGHNovedadNominas(): Collection { return $this->gHNovedadNominas; } public function addGHNovedadNomina(GHNovedadNomina $gHNovedadNomina): static { if (!$this->gHNovedadNominas->contains($gHNovedadNomina)) { $this->gHNovedadNominas->add($gHNovedadNomina); $gHNovedadNomina->addSubConcepto($this); } return $this; } public function removeGHNovedadNomina(GHNovedadNomina $gHNovedadNomina): static { if ($this->gHNovedadNominas->removeElement($gHNovedadNomina)) { $gHNovedadNomina->removeSubConcepto($this); } return $this; } }