src/Entity/GHCapacitacionActividad.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GHCapacitacionActividadRepository;
  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_actividad')]
  9. #[ORM\Entity(repositoryClassGHCapacitacionActividadRepository::class)]
  10. class GHCapacitacionActividad
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\ManyToOne(inversedBy'capacitacionActividades')]
  17.     private ?GHCapacitacion $capacitacion null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $tema null;
  20.     #[ORM\Column(typeTypes::TEXT)]
  21.     private ?string $descripcion null;
  22. //    #[ORM\ManyToOne(inversedBy: 'responsableCapacitacionActividades')]
  23. //    private ?TerPersona $responsable = null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $responsable null;
  26.     #[ORM\Column(length255)]
  27.     private ?string $dirigidoa null;
  28.     #[ORM\ManyToOne(inversedBy'capacitacionActividades')]
  29.     private ?TerSedeEmpresa $sede null;
  30.     #[ORM\Column(type'json'nullabletrue)]
  31.     private ?array $recurso = [];
  32.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  33.     private ?string $requisitos null;
  34.     #[ORM\Column(type'json'nullabletrue)]
  35.     private ?array $programacion = [];
  36.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  37.     private ?\DateTimeInterface $fechaEjecucion null;
  38.     #[ORM\Column(nullabletrue)]
  39.     private ?int $cantidadAsistentes null;
  40.     #[ORM\Column(length255nullabletrue)]
  41.     private ?string $asistencia null;
  42.     #[ORM\Column(length255nullabletrue)]
  43.     private ?string $evaluacion null;
  44.     #[ORM\Column(length255nullabletrue)]
  45.     private ?string $materialApoyo null;
  46.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  47.     private ?string $observaciones null;
  48.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  49.     private ?\DateTimeInterface $createAt null;
  50.     #[ORM\Column(length50)]
  51.     private ?string $createUser null;
  52.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  53.     private ?\DateTimeInterface $updateAt null;
  54.     #[ORM\Column(length50)]
  55.     private ?string $updateUser null;
  56.     #[ORM\ManyToMany(targetEntityTerSedeEmpresa::class, inversedBy'gHCapacitacionActividads')]
  57.     private Collection $sucursales;
  58.     public function __construct()
  59.     {
  60.         $this->sucursales = new ArrayCollection();
  61.     }
  62.     public function getId(): ?int
  63.     {
  64.         return $this->id;
  65.     }
  66.     public function getCapacitacion(): ?GHCapacitacion
  67.     {
  68.         return $this->capacitacion;
  69.     }
  70.     public function setCapacitacion(?GHCapacitacion $capacitacion): static
  71.     {
  72.         $this->capacitacion $capacitacion;
  73.         return $this;
  74.     }
  75.     public function getTema(): ?string
  76.     {
  77.         return $this->tema;
  78.     }
  79.     public function setTema(string $tema): static
  80.     {
  81.         $this->tema $tema;
  82.         return $this;
  83.     }
  84.     public function getDescripcion(): ?string
  85.     {
  86.         return $this->descripcion;
  87.     }
  88.     public function setDescripcion(string $descripcion): static
  89.     {
  90.         $this->descripcion $descripcion;
  91.         return $this;
  92.     }
  93.     public function getResponsable(): ?string
  94.     {
  95.         return $this->responsable;
  96.     }
  97.     public function setResponsable(?string $responsable): self
  98.     {
  99.         $this->responsable $responsable;
  100.         return $this;
  101.     }
  102. //    public function getResponsable(): ?TerPersona
  103. //    {
  104. //        return $this->responsable;
  105. //    }
  106. //
  107. //    public function setResponsable(?TerPersona $responsable): static
  108. //    {
  109. //        $this->responsable = $responsable;
  110. //
  111. //        return $this;
  112. //    }
  113.     public function getDirigidoa(): ?string
  114.     {
  115.         return $this->dirigidoa;
  116.     }
  117.     public function setDirigidoa(string $dirigidoa): static
  118.     {
  119.         $this->dirigidoa $dirigidoa;
  120.         return $this;
  121.     }
  122.     public function getSede(): ?TerSedeEmpresa
  123.     {
  124.         return $this->sede;
  125.     }
  126.     public function setSede(?TerSedeEmpresa $sede): static
  127.     {
  128.         $this->sede $sede;
  129.         return $this;
  130.     }
  131.     public function getRecurso(): array
  132.     {
  133.         return $this->recurso ?? [];
  134.     }
  135.     public function setRecurso(?array $recurso): self
  136.     {
  137.         $this->recurso $recurso;
  138.         return $this;
  139.     }
  140.     public function getRequisitos(): ?string
  141.     {
  142.         return $this->requisitos;
  143.     }
  144.     public function setRequisitos(?string $requisitos): static
  145.     {
  146.         $this->requisitos $requisitos;
  147.         return $this;
  148.     }
  149.     public function getProgramacion(): array
  150.     {
  151.         return $this->programacion ?? [];
  152.     }
  153.     public function setProgramacion(array $programacion): self
  154.     {
  155.         $this->programacion $programacion;
  156.         return $this;
  157.     }
  158.     public function getFechaEjecucion(): ?\DateTimeInterface
  159.     {
  160.         return $this->fechaEjecucion;
  161.     }
  162.     public function setFechaEjecucion(?\DateTimeInterface $fechaEjecucion): static
  163.     {
  164.         $this->fechaEjecucion $fechaEjecucion;
  165.         return $this;
  166.     }
  167.     public function getCantidadAsistentes(): ?int
  168.     {
  169.         return $this->cantidadAsistentes;
  170.     }
  171.     public function setCantidadAsistentes(?int $cantidadAsistentes): static
  172.     {
  173.         $this->cantidadAsistentes $cantidadAsistentes;
  174.         return $this;
  175.     }
  176.     public function getAsistencia(): ?string
  177.     {
  178.         return $this->asistencia;
  179.     }
  180.     public function setAsistencia(?string $asistencia): static
  181.     {
  182.         $this->asistencia $asistencia;
  183.         return $this;
  184.     }
  185.     public function getEvaluacion(): ?string
  186.     {
  187.         return $this->evaluacion;
  188.     }
  189.     public function setEvaluacion(?string $evaluacion): static
  190.     {
  191.         $this->evaluacion $evaluacion;
  192.         return $this;
  193.     }
  194.     public function getMaterialApoyo(): ?string
  195.     {
  196.         return $this->materialApoyo;
  197.     }
  198.     public function setMaterialApoyo(?string $materialApoyo): static
  199.     {
  200.         $this->materialApoyo $materialApoyo;
  201.         return $this;
  202.     }
  203.     public function getObservaciones(): ?string
  204.     {
  205.         return $this->observaciones;
  206.     }
  207.     public function setObservaciones(string $observaciones): static
  208.     {
  209.         $this->observaciones $observaciones;
  210.         return $this;
  211.     }
  212.     public function getCreateAt(): ?\DateTimeInterface
  213.     {
  214.         return $this->createAt;
  215.     }
  216.     public function setCreateAt(\DateTimeInterface $createAt): static
  217.     {
  218.         $this->createAt $createAt;
  219.         return $this;
  220.     }
  221.     public function getCreateUser(): ?string
  222.     {
  223.         return $this->createUser;
  224.     }
  225.     public function setCreateUser(string $createUser): static
  226.     {
  227.         $this->createUser $createUser;
  228.         return $this;
  229.     }
  230.     public function getUpdateAt(): ?\DateTimeInterface
  231.     {
  232.         return $this->updateAt;
  233.     }
  234.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  235.     {
  236.         $this->updateAt $updateAt;
  237.         return $this;
  238.     }
  239.     public function getUpdateUser(): ?string
  240.     {
  241.         return $this->updateUser;
  242.     }
  243.     public function setUpdateUser(string $updateUser): static
  244.     {
  245.         $this->updateUser $updateUser;
  246.         return $this;
  247.     }
  248.     /**
  249.      * @return Collection<int, TerSedeEmpresa>
  250.      */
  251.     public function getSucursales(): Collection
  252.     {
  253.         return $this->sucursales;
  254.     }
  255.     public function addSucursale(TerSedeEmpresa $sucursale): static
  256.     {
  257.         if (!$this->sucursales->contains($sucursale)) {
  258.             $this->sucursales->add($sucursale);
  259.         }
  260.         return $this;
  261.     }
  262.     public function removeSucursale(TerSedeEmpresa $sucursale): static
  263.     {
  264.         $this->sucursales->removeElement($sucursale);
  265.         return $this;
  266.     }
  267. }