src/Entity/GHCapacitacion.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GHCapacitacionRepository;
  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_capacitacion')]
  9. #[ORM\Entity(repositoryClassGHCapacitacionRepository::class)]
  10. class GHCapacitacion
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255,nullable:true)]
  17.     private ?string $objetivo null;
  18.     #[ORM\Column(length255,nullable:true)]
  19.     private ?string $alcance null;
  20.     #[ORM\Column]
  21.     private ?int $ano null;
  22.     #[ORM\Column(typeTypes::TEXT,nullable:true)]
  23.     private ?string $indicador null;
  24.     #[ORM\Column(length50)]
  25.     private ?string $createUser null;
  26.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  27.     private ?\DateTimeInterface $createAt null;
  28.     #[ORM\Column(length50)]
  29.     private ?string $updateUser null;
  30.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  31.     private ?\DateTimeInterface $updateAt null;
  32.     #[ORM\ManyToOne(inversedBy'capacitaciones')]
  33.     private ?ParEstado $estado null;
  34.     #[ORM\Column(typeTypes::TEXTnullable:true)]
  35.     private ?string $cobertura null;
  36.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  37.     private ?string $evaluacion null;
  38.     #[ORM\OneToMany(mappedBy'capacitacion'targetEntityGHCapacitacionActividad::class)]
  39.     private Collection $capacitacionActividades;
  40.     public function __construct()
  41.     {
  42.         $this->capacitacionActividades = new ArrayCollection();
  43.     }
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getObjetivo(): ?string
  49.     {
  50.         return $this->objetivo;
  51.     }
  52.     public function setObjetivo(string $objetivo): static
  53.     {
  54.         $this->objetivo $objetivo;
  55.         return $this;
  56.     }
  57.     public function getAlcance(): ?string
  58.     {
  59.         return $this->alcance;
  60.     }
  61.     public function setAlcance(string $alcance): static
  62.     {
  63.         $this->alcance $alcance;
  64.         return $this;
  65.     }
  66.     public function getAno(): ?int
  67.     {
  68.         return $this->ano;
  69.     }
  70.     public function setAno(int $ano): static
  71.     {
  72.         $this->ano $ano;
  73.         return $this;
  74.     }
  75.     public function getIndicador(): ?string
  76.     {
  77.         return $this->indicador;
  78.     }
  79.     public function setIndicador(string $indicador): static
  80.     {
  81.         $this->indicador $indicador;
  82.         return $this;
  83.     }
  84.     public function getCreateUser(): ?string
  85.     {
  86.         return $this->createUser;
  87.     }
  88.     public function setCreateUser(string $createUser): static
  89.     {
  90.         $this->createUser $createUser;
  91.         return $this;
  92.     }
  93.     public function getCreateAt(): ?\DateTimeInterface
  94.     {
  95.         return $this->createAt;
  96.     }
  97.     public function setCreateAt(\DateTimeInterface $createAt): static
  98.     {
  99.         $this->createAt $createAt;
  100.         return $this;
  101.     }
  102.     public function getUpdateUser(): ?string
  103.     {
  104.         return $this->updateUser;
  105.     }
  106.     public function setUpdateUser(string $updateUser): static
  107.     {
  108.         $this->updateUser $updateUser;
  109.         return $this;
  110.     }
  111.     public function getUpdateAt(): ?\DateTimeInterface
  112.     {
  113.         return $this->updateAt;
  114.     }
  115.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  116.     {
  117.         $this->updateAt $updateAt;
  118.         return $this;
  119.     }
  120.     public function getEstado(): ?ParEstado
  121.     {
  122.         return $this->estado;
  123.     }
  124.     public function setEstado(?ParEstado $estado): static
  125.     {
  126.         $this->estado $estado;
  127.         return $this;
  128.     }
  129.     public function getCobertura(): ?string
  130.     {
  131.         return $this->cobertura;
  132.     }
  133.     public function setCobertura(?string $cobertura): void
  134.     {
  135.         $this->cobertura $cobertura;
  136.     }
  137.     public function getEvaluacion(): ?string
  138.     {
  139.         return $this->evaluacion;
  140.     }
  141.     public function setEvaluacion(?string $evaluacion): void
  142.     {
  143.         $this->evaluacion $evaluacion;
  144.     }
  145.     /**
  146.      * @return Collection<int, GHCapacitacionActividad>
  147.      */
  148.     public function getCapacitacionActividades(): Collection
  149.     {
  150.         return $this->capacitacionActividades;
  151.     }
  152.     public function addCapacitacionActividade(GHCapacitacionActividad $capacitacionActividade): static
  153.     {
  154.         if (!$this->capacitacionActividades->contains($capacitacionActividade)) {
  155.             $this->capacitacionActividades->add($capacitacionActividade);
  156.             $capacitacionActividade->setCapacitacion($this);
  157.         }
  158.         return $this;
  159.     }
  160.     public function removeCapacitacionActividade(GHCapacitacionActividad $capacitacionActividade): static
  161.     {
  162.         if ($this->capacitacionActividades->removeElement($capacitacionActividade)) {
  163.             // set the owning side to null (unless already changed)
  164.             if ($capacitacionActividade->getCapacitacion() === $this) {
  165.                 $capacitacionActividade->setCapacitacion(null);
  166.             }
  167.         }
  168.         return $this;
  169.     }
  170. }