src/Entity/GHReentrenamiento.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GHReentrenamientoRepository;
  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_reentrenamiento')]
  9. #[ORM\Entity(repositoryClassGHReentrenamientoRepository::class)]
  10. class GHReentrenamiento {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  16.     private ?string $descripcion null;
  17.     #[ORM\Column(nullabletrue)]
  18.     private ?float $calificacion null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  20.     private ?\DateTimeInterface $fecha null;
  21.     #[ORM\Column]
  22.     private ?\DateTime $createAt null;
  23.     #[ORM\Column]
  24.     private ?\DateTime $updateAt null;
  25.     #[ORM\Column(length255)]
  26.     private ?string $createUser null;
  27.     #[ORM\Column(length255)]
  28.     private ?string $updateUser null;
  29.     #[ORM\ManyToOne(inversedBy'reentrenamientos')]
  30.     private ?TerPersona $persona null;
  31.     #[ORM\ManyToOne(inversedBy'reentrenamientos')]
  32.     private ?ParProceso $proceso null;
  33.     #[ORM\Column(length255,nullable:true)]
  34.     private ?string $hora null;
  35.     #[ORM\ManyToOne(inversedBy'reentrenamientos')]
  36.     private ?ParEstado $estado null;
  37.     #[ORM\OneToMany(mappedBy'ghReentrenamiento'targetEntityGHReentrenamientoProceso::class)]
  38.     private Collection $gHReentrenamientoProcesos;
  39.     public function __construct()
  40.     {
  41.         $this->gHReentrenamientoProcesos = new ArrayCollection();
  42.     }
  43.     public function getId(): ?int {
  44.         return $this->id;
  45.     }
  46.     
  47.      public function getCreateAt(): ?\DateTime {
  48.         return $this->createAt;
  49.     }
  50.     public function setCreateAt(\DateTime $createAt): static {
  51.         $this->createAt $createAt;
  52.         return $this;
  53.     }
  54.     public function getUpdateAt(): ?\DateTime {
  55.         return $this->updateAt;
  56.     }
  57.     public function setUpdateAt(\DateTime $updateAt): static {
  58.         $this->updateAt $updateAt;
  59.         return $this;
  60.     }
  61.     public function getCreateUser(): ?string {
  62.         return $this->createUser;
  63.     }
  64.     public function setCreateUser(string $createUser): static {
  65.         $this->createUser $createUser;
  66.         return $this;
  67.     }
  68.     public function getUpdateUser(): ?string {
  69.         return $this->updateUser;
  70.     }
  71.     public function setUpdateUser(string $updateUser): static {
  72.         $this->updateUser $updateUser;
  73.         return $this;
  74.     }
  75.     public function getDescripcion(): ?string {
  76.         return $this->descripcion;
  77.     }
  78.     public function setDescripcion(?string $descripcion): static {
  79.         $this->descripcion $descripcion;
  80.         return $this;
  81.     }
  82.     public function getCalificacion(): ?float {
  83.         return $this->calificacion;
  84.     }
  85.     public function setCalificacion(?float $calificacion): static {
  86.         $this->calificacion $calificacion;
  87.         return $this;
  88.     }
  89.     public function getFecha(): ?\DateTimeInterface {
  90.         return $this->fecha;
  91.     }
  92.     public function setFecha(\DateTimeInterface $fecha): static {
  93.         $this->fecha $fecha;
  94.         return $this;
  95.     }
  96.     public function getPersona(): ?TerPersona {
  97.         return $this->persona;
  98.     }
  99.     public function setPersona(?TerPersona $persona): static {
  100.         $this->persona $persona;
  101.         return $this;
  102.     }
  103.     public function getProceso(): ?ParProceso {
  104.         return $this->proceso;
  105.     }
  106.     public function setProceso(?ParProceso $proceso): static {
  107.         $this->proceso $proceso;
  108.         return $this;
  109.     }
  110.     public function getHora(): ?string {
  111.         return $this->hora;
  112.     }
  113.     public function setHora(string $hora): static {
  114.         $this->hora $hora;
  115.         return $this;
  116.     }
  117.     public function getEstado(): ?ParEstado {
  118.         return $this->estado;
  119.     }
  120.     public function setEstado(?ParEstado $estado): static {
  121.         $this->estado $estado;
  122.         return $this;
  123.     }
  124.     /**
  125.      * @return Collection<int, GHReentrenamientoProceso>
  126.      */
  127.     public function getGHReentrenamientoProcesos(): Collection
  128.     {
  129.         return $this->gHReentrenamientoProcesos;
  130.     }
  131.     public function addGHReentrenamientoProceso(GHReentrenamientoProceso $gHReentrenamientoProceso): static
  132.     {
  133.         if (!$this->gHReentrenamientoProcesos->contains($gHReentrenamientoProceso)) {
  134.             $this->gHReentrenamientoProcesos->add($gHReentrenamientoProceso);
  135.             $gHReentrenamientoProceso->setGhReentrenamiento($this);
  136.         }
  137.         return $this;
  138.     }
  139.     public function removeGHReentrenamientoProceso(GHReentrenamientoProceso $gHReentrenamientoProceso): static
  140.     {
  141.         if ($this->gHReentrenamientoProcesos->removeElement($gHReentrenamientoProceso)) {
  142.             // set the owning side to null (unless already changed)
  143.             if ($gHReentrenamientoProceso->getGhReentrenamiento() === $this) {
  144.                 $gHReentrenamientoProceso->setGhReentrenamiento(null);
  145.             }
  146.         }
  147.         return $this;
  148.     }
  149. }