src/Entity/GHInduccion.php line 13

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