src/Entity/GHExamenPeriodico.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GHExamenPeriodicoRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Table(name'gh_examen_periodico')]
  9. #[ORM\Entity(repositoryClassGHExamenPeriodicoRepository::class)]
  10. class GHExamenPeriodico
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\ManyToOne(inversedBy'examenPeriodico')]
  17.     private ?ParEstado $estado null;
  18.     #[ORM\ManyToOne(inversedBy'examenPeriodico')]
  19.     private ?GHContratacion $contratacion null;
  20.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  21.     private ?string $observacion null;
  22.     #[ORM\ManyToOne(inversedBy'examenPeriodico')]
  23.     private ?TerPersona $personaAutoriza null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $soporte null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $ComentariosRG null;
  28.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  29.     private ?\DateTimeInterface $createAt null;
  30.     #[ORM\Column(length50)]
  31.     private ?string $createUser null;
  32.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  33.     private ?\DateTimeInterface $updateAt null;
  34.     #[ORM\Column(length50)]
  35.     private ?string $updateUser null;
  36.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  37.     private ?\DateTimeInterface $fecha null;
  38.     #[ORM\ManyToOne(inversedBy'examenPeriodicoPersona')]
  39.     private ?TerPersona $persona null;
  40.     #[ORM\ManyToOne(inversedBy'examenPeriodicoJefe')]
  41.     private ?ParEstado $estadoJefe null;
  42.     #[ORM\ManyToOne(inversedBy'examenPeriodico')]
  43.     private ?ParTipoExamen $tipoExamen null;
  44.     #[ORM\ManyToMany(targetEntityParRecomendacionMedica::class, inversedBy'examenesPeriodicos')]
  45.     private Collection $recomendacionMedica;
  46.     #[ORM\ManyToOne(inversedBy'examenPeriodicoNotificacion')]
  47.     private ?TerPersona $colaboradorNotificacion null;
  48.     public function __construct()
  49.     {
  50.         $this->recomendacionMedica = new ArrayCollection();
  51.     }
  52.     public function getId(): ?int
  53.     {
  54.         return $this->id;
  55.     }
  56.     public function getEstado(): ?ParEstado
  57.     {
  58.         return $this->estado;
  59.     }
  60.     public function setEstado(?ParEstado $estado): static
  61.     {
  62.         $this->estado $estado;
  63.         return $this;
  64.     }
  65.     public function getContratacion(): ?GHContratacion
  66.     {
  67.         return $this->contratacion;
  68.     }
  69.     public function setContratacion(?GHContratacion $contratacion): static
  70.     {
  71.         $this->contratacion $contratacion;
  72.         return $this;
  73.     }
  74.     public function getObservacion(): ?string
  75.     {
  76.         return $this->observacion;
  77.     }
  78.     public function setObservacion(?string $observacion): static
  79.     {
  80.         $this->observacion $observacion;
  81.         return $this;
  82.     }
  83.     public function getPersonaAutoriza(): ?TerPersona
  84.     {
  85.         return $this->personaAutoriza;
  86.     }
  87.     public function setPersonaAutoriza(?TerPersona $personaAutoriza): static
  88.     {
  89.         $this->personaAutoriza $personaAutoriza;
  90.         return $this;
  91.     }
  92.     public function getSoporte(): ?string
  93.     {
  94.         return $this->soporte;
  95.     }
  96.     public function setSoporte(?string $soporte): static
  97.     {
  98.         $this->soporte $soporte;
  99.         return $this;
  100.     }
  101.     public function getComentariosRG(): ?string
  102.     {
  103.         return $this->ComentariosRG;
  104.     }
  105.     public function setComentariosRG(?string $ComentariosRG): void
  106.     {
  107.         $this->ComentariosRG $ComentariosRG;
  108.     }
  109.     public function getCreateAt(): ?\DateTimeInterface
  110.     {
  111.         return $this->createAt;
  112.     }
  113.     public function setCreateAt(\DateTimeInterface $createAt): static
  114.     {
  115.         $this->createAt $createAt;
  116.         return $this;
  117.     }
  118.     public function getCreateUser(): ?string
  119.     {
  120.         return $this->createUser;
  121.     }
  122.     public function setCreateUser(string $createUser): static
  123.     {
  124.         $this->createUser $createUser;
  125.         return $this;
  126.     }
  127.     public function getUpdateAt(): ?\DateTimeInterface
  128.     {
  129.         return $this->updateAt;
  130.     }
  131.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  132.     {
  133.         $this->updateAt $updateAt;
  134.         return $this;
  135.     }
  136.     public function getUpdateUser(): ?string
  137.     {
  138.         return $this->updateUser;
  139.     }
  140.     public function setUpdateUser(string $updateUser): static
  141.     {
  142.         $this->updateUser $updateUser;
  143.         return $this;
  144.     }
  145.     public function getFecha(): ?\DateTimeInterface
  146.     {
  147.         return $this->fecha;
  148.     }
  149.     public function setFecha(\DateTimeInterface $fecha): static
  150.     {
  151.         $this->fecha $fecha;
  152.         return $this;
  153.     }
  154.     public function getPersona(): ?TerPersona
  155.     {
  156.         return $this->persona;
  157.     }
  158.     public function setPersona(?TerPersona $persona): static
  159.     {
  160.         $this->persona $persona;
  161.         return $this;
  162.     }
  163.     public function getEstadoJefe(): ?ParEstado
  164.     {
  165.         return $this->estadoJefe;
  166.     }
  167.     public function setEstadoJefe(?ParEstado $estadoJefe): self
  168.     {
  169.         $this->estadoJefe $estadoJefe;
  170.         return $this;
  171.     }
  172.     public function getTipoExamen(): ?ParTipoExamen
  173.     {
  174.         return $this->tipoExamen;
  175.     }
  176.     public function setTipoExamen(?ParTipoExamen $tipoExamen): static
  177.     {
  178.         $this->tipoExamen $tipoExamen;
  179.         return $this;
  180.     }
  181.     /**
  182.      * @return Collection<int, ParRecomendacionMedica>
  183.      */
  184.     public function getRecomendacionMedica(): Collection
  185.     {
  186.         return $this->recomendacionMedica;
  187.     }
  188.     public function addRecomendacionMedica(ParRecomendacionMedica $recomendacionMedica): static
  189.     {
  190.         if (!$this->recomendacionMedica->contains($recomendacionMedica)) {
  191.             $this->recomendacionMedica->add($recomendacionMedica);
  192.         }
  193.         return $this;
  194.     }
  195.     public function removeRecomendacionMedica(ParRecomendacionMedica $recomendacionMedica): static
  196.     {
  197.         $this->recomendacionMedica->removeElement($recomendacionMedica);
  198.         return $this;
  199.     }
  200.     public function getColaboradorNotificacion(): ?TerPersona
  201.     {
  202.         return $this->colaboradorNotificacion;
  203.     }
  204.     public function setColaboradorNotificacion(?TerPersona $colaboradorNotificacion): static
  205.     {
  206.         $this->colaboradorNotificacion $colaboradorNotificacion;
  207.         return $this;
  208.     }
  209. }