<?phpnamespace App\Entity;use App\Repository\GHExamenPeriodicoRepository;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_examen_periodico')]#[ORM\Entity(repositoryClass: GHExamenPeriodicoRepository::class)]class GHExamenPeriodico{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToOne(inversedBy: 'examenPeriodico')] private ?ParEstado $estado = null; #[ORM\ManyToOne(inversedBy: 'examenPeriodico')] private ?GHContratacion $contratacion = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $observacion = null; #[ORM\ManyToOne(inversedBy: 'examenPeriodico')] private ?TerPersona $personaAutoriza = null; #[ORM\Column(length: 255, nullable: true)] private ?string $soporte = null; #[ORM\Column(length: 255, nullable: true)] private ?string $ComentariosRG = 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\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $fecha = null; #[ORM\ManyToOne(inversedBy: 'examenPeriodicoPersona')] private ?TerPersona $persona = null; #[ORM\ManyToOne(inversedBy: 'examenPeriodicoJefe')] private ?ParEstado $estadoJefe = null; #[ORM\ManyToOne(inversedBy: 'examenPeriodico')] private ?ParTipoExamen $tipoExamen = null; #[ORM\ManyToMany(targetEntity: ParRecomendacionMedica::class, inversedBy: 'examenesPeriodicos')] private Collection $recomendacionMedica; #[ORM\ManyToOne(inversedBy: 'examenPeriodicoNotificacion')] private ?TerPersona $colaboradorNotificacion = null; public function __construct() { $this->recomendacionMedica = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getEstado(): ?ParEstado { return $this->estado; } public function setEstado(?ParEstado $estado): static { $this->estado = $estado; return $this; } public function getContratacion(): ?GHContratacion { return $this->contratacion; } public function setContratacion(?GHContratacion $contratacion): static { $this->contratacion = $contratacion; return $this; } public function getObservacion(): ?string { return $this->observacion; } public function setObservacion(?string $observacion): static { $this->observacion = $observacion; return $this; } public function getPersonaAutoriza(): ?TerPersona { return $this->personaAutoriza; } public function setPersonaAutoriza(?TerPersona $personaAutoriza): static { $this->personaAutoriza = $personaAutoriza; return $this; } public function getSoporte(): ?string { return $this->soporte; } public function setSoporte(?string $soporte): static { $this->soporte = $soporte; return $this; } public function getComentariosRG(): ?string { return $this->ComentariosRG; } public function setComentariosRG(?string $ComentariosRG): void { $this->ComentariosRG = $ComentariosRG; } 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 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 getEstadoJefe(): ?ParEstado { return $this->estadoJefe; } public function setEstadoJefe(?ParEstado $estadoJefe): self { $this->estadoJefe = $estadoJefe; return $this; } public function getTipoExamen(): ?ParTipoExamen { return $this->tipoExamen; } public function setTipoExamen(?ParTipoExamen $tipoExamen): static { $this->tipoExamen = $tipoExamen; return $this; } /** * @return Collection<int, ParRecomendacionMedica> */ public function getRecomendacionMedica(): Collection { return $this->recomendacionMedica; } public function addRecomendacionMedica(ParRecomendacionMedica $recomendacionMedica): static { if (!$this->recomendacionMedica->contains($recomendacionMedica)) { $this->recomendacionMedica->add($recomendacionMedica); } return $this; } public function removeRecomendacionMedica(ParRecomendacionMedica $recomendacionMedica): static { $this->recomendacionMedica->removeElement($recomendacionMedica); return $this; } public function getColaboradorNotificacion(): ?TerPersona { return $this->colaboradorNotificacion; } public function setColaboradorNotificacion(?TerPersona $colaboradorNotificacion): static { $this->colaboradorNotificacion = $colaboradorNotificacion; return $this; }}