src/Entity/SegControlAcceso.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SegControlAccesoRepository;
  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\Entity(repositoryClassSegControlAccesoRepository::class)]
  9. class SegControlAcceso
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  16.     private ?\DateTimeInterface $fechaRegistro null;
  17.     #[ORM\ManyToOne(inversedBy'solicitaControlAcceso')]
  18.     private ?TerPersona $solicitante null;
  19.     #[ORM\ManyToOne(inversedBy'controlAcceso')]
  20.     private ?TerSedeEmpresa $sucursal null;
  21.     #[ORM\ManyToOne(inversedBy'controlAcceso')]
  22.     private ?TerAreaSede $areaSede null;
  23.     #[ORM\ManyToMany(targetEntityTerPersona::class, inversedBy'controlAccesoIngreso')]
  24.     private Collection $personalIngresa;
  25.     #[ORM\ManyToOne(inversedBy'controlAcceso')]
  26.     private ?ParIngresoArea $ingresoArea null;
  27.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  28.     private ?\DateTimeInterface $createAt null;
  29.     #[ORM\Column(length50)]
  30.     private ?string $createUser null;
  31.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  32.     private ?\DateTimeInterface $updateAt null;
  33.     #[ORM\Column(length50)]
  34.     private ?string $updateUser null;
  35.     public function __construct()
  36.     {
  37.         $this->personalIngresa = new ArrayCollection();
  38.     }
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getFechaRegistro(): ?\DateTimeInterface
  44.     {
  45.         return $this->fechaRegistro;
  46.     }
  47.     public function setFechaRegistro(\DateTimeInterface $fechaRegistro): static
  48.     {
  49.         $this->fechaRegistro $fechaRegistro;
  50.         return $this;
  51.     }
  52.     public function getSolicitante(): ?TerPersona
  53.     {
  54.         return $this->solicitante;
  55.     }
  56.     public function setSolicitante(?TerPersona $solicitante): static
  57.     {
  58.         $this->solicitante $solicitante;
  59.         return $this;
  60.     }
  61.     public function getSucursal(): ?TerSedeEmpresa
  62.     {
  63.         return $this->sucursal;
  64.     }
  65.     public function setSucursal(?TerSedeEmpresa $sucursal): static
  66.     {
  67.         $this->sucursal $sucursal;
  68.         return $this;
  69.     }
  70.     public function getAreaSede(): ?TerAreaSede
  71.     {
  72.         return $this->areaSede;
  73.     }
  74.     public function setAreaSede(?TerAreaSede $areaSede): static
  75.     {
  76.         $this->areaSede $areaSede;
  77.         return $this;
  78.     }
  79.     /**
  80.      * @return Collection<int, TerPersona>
  81.      */
  82.     public function getPersonalIngresa(): Collection
  83.     {
  84.         return $this->personalIngresa;
  85.     }
  86.     public function addPersonalIngresa(TerPersona $personalIngresa): static
  87.     {
  88.         if (!$this->personalIngresa->contains($personalIngresa)) {
  89.             $this->personalIngresa->add($personalIngresa);
  90.         }
  91.         return $this;
  92.     }
  93.     public function removePersonalIngresa(TerPersona $personalIngresa): static
  94.     {
  95.         $this->personalIngresa->removeElement($personalIngresa);
  96.         return $this;
  97.     }
  98.     public function getIngresoArea(): ?ParIngresoArea
  99.     {
  100.         return $this->ingresoArea;
  101.     }
  102.     public function setIngresoArea(?ParIngresoArea $ingresoArea): static
  103.     {
  104.         $this->ingresoArea $ingresoArea;
  105.         return $this;
  106.     }
  107.     public function getCreateAt(): ?\DateTimeInterface
  108.     {
  109.         return $this->createAt;
  110.     }
  111.     public function setCreateAt(\DateTimeInterface $createAt): static
  112.     {
  113.         $this->createAt $createAt;
  114.         return $this;
  115.     }
  116.     public function getCreateUser(): ?string
  117.     {
  118.         return $this->createUser;
  119.     }
  120.     public function setCreateUser(string $createUser): static
  121.     {
  122.         $this->createUser $createUser;
  123.         return $this;
  124.     }
  125.     public function getUpdateAt(): ?\DateTimeInterface
  126.     {
  127.         return $this->updateAt;
  128.     }
  129.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  130.     {
  131.         $this->updateAt $updateAt;
  132.         return $this;
  133.     }
  134.     public function getUpdateUser(): ?string
  135.     {
  136.         return $this->updateUser;
  137.     }
  138.     public function setUpdateUser(string $updateUser): static
  139.     {
  140.         $this->updateUser $updateUser;
  141.         return $this;
  142.     }
  143. }