<?phpnamespace App\Entity;use App\Repository\GHReentrenamientoRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Table(name: 'gh_reentrenamiento')]#[ORM\Entity(repositoryClass: GHReentrenamientoRepository::class)]class GHReentrenamiento { #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $descripcion = null; #[ORM\Column(nullable: true)] private ?float $calificacion = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $fecha = null; #[ORM\Column] private ?\DateTime $createAt = null; #[ORM\Column] private ?\DateTime $updateAt = null; #[ORM\Column(length: 255)] private ?string $createUser = null; #[ORM\Column(length: 255)] private ?string $updateUser = null; #[ORM\ManyToOne(inversedBy: 'reentrenamientos')] private ?TerPersona $persona = null; #[ORM\ManyToOne(inversedBy: 'reentrenamientos')] private ?ParProceso $proceso = null; #[ORM\Column(length: 255,nullable:true)] private ?string $hora = null; #[ORM\ManyToOne(inversedBy: 'reentrenamientos')] private ?ParEstado $estado = null; #[ORM\OneToMany(mappedBy: 'ghReentrenamiento', targetEntity: GHReentrenamientoProceso::class)] private Collection $gHReentrenamientoProcesos; public function __construct() { $this->gHReentrenamientoProcesos = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getCreateAt(): ?\DateTime { return $this->createAt; } public function setCreateAt(\DateTime $createAt): static { $this->createAt = $createAt; return $this; } public function getUpdateAt(): ?\DateTime { return $this->updateAt; } public function setUpdateAt(\DateTime $updateAt): static { $this->updateAt = $updateAt; return $this; } public function getCreateUser(): ?string { return $this->createUser; } public function setCreateUser(string $createUser): static { $this->createUser = $createUser; return $this; } public function getUpdateUser(): ?string { return $this->updateUser; } public function setUpdateUser(string $updateUser): static { $this->updateUser = $updateUser; return $this; } public function getDescripcion(): ?string { return $this->descripcion; } public function setDescripcion(?string $descripcion): static { $this->descripcion = $descripcion; return $this; } public function getCalificacion(): ?float { return $this->calificacion; } public function setCalificacion(?float $calificacion): static { $this->calificacion = $calificacion; return $this; } public function getFecha(): ?\DateTimeInterface { return $this->fecha; } public function setFecha(\DateTimeInterface $fecha): static { $this->fecha = $fecha; return $this; } public function getPersona(): ?TerPersona { return $this->persona; } public function setPersona(?TerPersona $persona): static { $this->persona = $persona; return $this; } public function getProceso(): ?ParProceso { return $this->proceso; } public function setProceso(?ParProceso $proceso): static { $this->proceso = $proceso; return $this; } public function getHora(): ?string { return $this->hora; } public function setHora(string $hora): static { $this->hora = $hora; return $this; } public function getEstado(): ?ParEstado { return $this->estado; } public function setEstado(?ParEstado $estado): static { $this->estado = $estado; return $this; } /** * @return Collection<int, GHReentrenamientoProceso> */ public function getGHReentrenamientoProcesos(): Collection { return $this->gHReentrenamientoProcesos; } public function addGHReentrenamientoProceso(GHReentrenamientoProceso $gHReentrenamientoProceso): static { if (!$this->gHReentrenamientoProcesos->contains($gHReentrenamientoProceso)) { $this->gHReentrenamientoProcesos->add($gHReentrenamientoProceso); $gHReentrenamientoProceso->setGhReentrenamiento($this); } return $this; } public function removeGHReentrenamientoProceso(GHReentrenamientoProceso $gHReentrenamientoProceso): static { if ($this->gHReentrenamientoProcesos->removeElement($gHReentrenamientoProceso)) { // set the owning side to null (unless already changed) if ($gHReentrenamientoProceso->getGhReentrenamiento() === $this) { $gHReentrenamientoProceso->setGhReentrenamiento(null); } } return $this; }}