<?phpnamespace App\Entity;use App\Repository\GHEntrenamientoRepository;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_entrenamiento')]#[ORM\Entity(repositoryClass: GHEntrenamientoRepository::class)]class GHEntrenamiento{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255, nullable: true)] private ?string $tema = 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\ManyToOne(inversedBy: 'entrenamiento')] private ?TerPersona $persona = null; #[ORM\ManyToOne(inversedBy: 'responsableEntrenamiento')] private ?TerPersona $responsableEntrenamiento = null; #[ORM\Column(length: 255, nullable: true)] private ?string $firma = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $createAt = null; #[ORM\Column(length: 100)] private ?string $createUser = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $updateAt = null; #[ORM\Column(length: 100)] private ?string $updateUser = null; #[ORM\ManyToOne(inversedBy: 'entrenamiento')] private ?ParEstado $estado = null; #[ORM\Column(length: 255, nullable: true)] private ?string $soporte = null; #[ORM\OneToMany(mappedBy: 'entrenamiento', targetEntity: GHEntrenamientoProceso::class)] private Collection $entrenamientoProcesos; public function __construct() { $this->entrenamientoProcesos = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getTema(): ?string { return $this->tema; } public function setTema(string $tema): static { $this->tema = $tema; 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 getResponsableEntrenamiento(): ?TerPersona { return $this->responsableEntrenamiento; } public function setResponsableEntrenamiento(?TerPersona $responsableEntrenamiento): static { $this->responsableEntrenamiento = $responsableEntrenamiento; return $this; } public function getFirma(): ?string { return $this->firma; } public function setFirma(string $firma): static { $this->firma = $firma; 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; } public function getSoporte(): ?string { return $this->soporte; } public function setSoporte(?string $soporte): static { $this->soporte = $soporte; return $this; } /** * @return Collection<int, GHEntrenamientoProceso> */ public function getEntrenamientoProcesos(): Collection { return $this->entrenamientoProcesos; } public function addEntrenamientoProceso(GHEntrenamientoProceso $entrenamientoProceso): static { if (!$this->entrenamientoProcesos->contains($entrenamientoProceso)) { $this->entrenamientoProcesos->add($entrenamientoProceso); $entrenamientoProceso->setEntrenamiento($this); } return $this; } public function removeEntrenamientoProceso(GHEntrenamientoProceso $entrenamientoProceso): static { if ($this->entrenamientoProcesos->removeElement($entrenamientoProceso)) { // set the owning side to null (unless already changed) if ($entrenamientoProceso->getEntrenamiento() === $this) { $entrenamientoProceso->setEntrenamiento(null); } } return $this; }}