src/Entity/GHEntrenamiento.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GHEntrenamientoRepository;
  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_entrenamiento')]
  9. #[ORM\Entity(repositoryClassGHEntrenamientoRepository::class)]
  10. class GHEntrenamiento
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $tema null;
  18.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  19.     private ?string $descripcion null;
  20.     #[ORM\Column(nullabletrue)]
  21.     private ?float $calificacion null;
  22.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  23.     private ?\DateTimeInterface $fecha null;
  24.     #[ORM\ManyToOne(inversedBy'entrenamiento')]
  25.     private ?TerPersona $persona null;
  26.     #[ORM\ManyToOne(inversedBy'responsableEntrenamiento')]
  27.     private ?TerPersona $responsableEntrenamiento null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $firma null;
  30.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  31.     private ?\DateTimeInterface $createAt null;
  32.     #[ORM\Column(length100)]
  33.     private ?string $createUser null;
  34.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  35.     private ?\DateTimeInterface $updateAt null;
  36.     #[ORM\Column(length100)]
  37.     private ?string $updateUser null;
  38.     #[ORM\ManyToOne(inversedBy'entrenamiento')]
  39.     private ?ParEstado $estado null;
  40.     #[ORM\Column(length255nullabletrue)]
  41.     private ?string $soporte null;
  42.     #[ORM\OneToMany(mappedBy'entrenamiento'targetEntityGHEntrenamientoProceso::class)]
  43.     private Collection $entrenamientoProcesos;
  44.     public function __construct()
  45.     {
  46.         $this->entrenamientoProcesos = new ArrayCollection();
  47.     }
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getTema(): ?string
  53.     {
  54.         return $this->tema;
  55.     }
  56.     public function setTema(string $tema): static
  57.     {
  58.         $this->tema $tema;
  59.         return $this;
  60.     }
  61.     public function getDescripcion(): ?string
  62.     {
  63.         return $this->descripcion;
  64.     }
  65.     public function setDescripcion(?string $descripcion): static
  66.     {
  67.         $this->descripcion $descripcion;
  68.         return $this;
  69.     }
  70.     public function getCalificacion(): ?float
  71.     {
  72.         return $this->calificacion;
  73.     }
  74.     public function setCalificacion(?float $calificacion): static
  75.     {
  76.         $this->calificacion $calificacion;
  77.         return $this;
  78.     }
  79.     public function getFecha(): ?\DateTimeInterface
  80.     {
  81.         return $this->fecha;
  82.     }
  83.     public function setFecha(\DateTimeInterface $fecha): static
  84.     {
  85.         $this->fecha $fecha;
  86.         return $this;
  87.     }
  88.     public function getPersona(): ?TerPersona
  89.     {
  90.         return $this->persona;
  91.     }
  92.     public function setPersona(?TerPersona $persona): static
  93.     {
  94.         $this->persona $persona;
  95.         return $this;
  96.     }
  97.     public function getResponsableEntrenamiento(): ?TerPersona
  98.     {
  99.         return $this->responsableEntrenamiento;
  100.     }
  101.     public function setResponsableEntrenamiento(?TerPersona $responsableEntrenamiento): static
  102.     {
  103.         $this->responsableEntrenamiento $responsableEntrenamiento;
  104.         return $this;
  105.     }
  106.     public function getFirma(): ?string
  107.     {
  108.         return $this->firma;
  109.     }
  110.     public function setFirma(string $firma): static
  111.     {
  112.         $this->firma $firma;
  113.         return $this;
  114.     }
  115.     public function getCreateAt(): ?\DateTimeInterface
  116.     {
  117.         return $this->createAt;
  118.     }
  119.     public function setCreateAt(\DateTimeInterface $createAt): static
  120.     {
  121.         $this->createAt $createAt;
  122.         return $this;
  123.     }
  124.     public function getCreateUser(): ?string
  125.     {
  126.         return $this->createUser;
  127.     }
  128.     public function setCreateUser(string $createUser): static
  129.     {
  130.         $this->createUser $createUser;
  131.         return $this;
  132.     }
  133.     public function getUpdateAt(): ?\DateTimeInterface
  134.     {
  135.         return $this->updateAt;
  136.     }
  137.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  138.     {
  139.         $this->updateAt $updateAt;
  140.         return $this;
  141.     }
  142.     public function getUpdateUser(): ?string
  143.     {
  144.         return $this->updateUser;
  145.     }
  146.     public function setUpdateUser(string $updateUser): static
  147.     {
  148.         $this->updateUser $updateUser;
  149.         return $this;
  150.     }
  151.     public function getEstado(): ?ParEstado
  152.     {
  153.         return $this->estado;
  154.     }
  155.     public function setEstado(?ParEstado $estado): static
  156.     {
  157.         $this->estado $estado;
  158.         return $this;
  159.     }
  160.     public function getSoporte(): ?string
  161.     {
  162.         return $this->soporte;
  163.     }
  164.     public function setSoporte(?string $soporte): static
  165.     {
  166.         $this->soporte $soporte;
  167.         return $this;
  168.     }
  169.     /**
  170.      * @return Collection<int, GHEntrenamientoProceso>
  171.      */
  172.     public function getEntrenamientoProcesos(): Collection
  173.     {
  174.         return $this->entrenamientoProcesos;
  175.     }
  176.     public function addEntrenamientoProceso(GHEntrenamientoProceso $entrenamientoProceso): static
  177.     {
  178.         if (!$this->entrenamientoProcesos->contains($entrenamientoProceso)) {
  179.             $this->entrenamientoProcesos->add($entrenamientoProceso);
  180.             $entrenamientoProceso->setEntrenamiento($this);
  181.         }
  182.         return $this;
  183.     }
  184.     public function removeEntrenamientoProceso(GHEntrenamientoProceso $entrenamientoProceso): static
  185.     {
  186.         if ($this->entrenamientoProcesos->removeElement($entrenamientoProceso)) {
  187.             // set the owning side to null (unless already changed)
  188.             if ($entrenamientoProceso->getEntrenamiento() === $this) {
  189.                 $entrenamientoProceso->setEntrenamiento(null);
  190.             }
  191.         }
  192.         return $this;
  193.     }
  194. }