src/Entity/SegVisitante.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SegVisitanteRepository;
  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(repositoryClassSegVisitanteRepository::class)]
  9. class SegVisitante
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(inversedBy'visitante')]
  16.     private ?SegIngresoVisitante $ingresoVisitante null;
  17.     #[ORM\ManyToOne(inversedBy'visitante')]
  18.     private ?ParTipoDocumento $tipoDocumento null;
  19.     #[ORM\Column(length50)]
  20.     private ?string $numeroIdentificacion null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $nombres null;
  23.     #[ORM\Column(length10nullabletrue)]
  24.     private ?string $placa null;
  25.     #[ORM\Column(length255nullable:true)]
  26.     private ?string $correo null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $seguridadSocial null;
  29.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  30.     private ?\DateTimeInterface $createAt null;
  31.     #[ORM\Column(length50nullabletrue)]
  32.     private ?string $createUser null;
  33.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  34.     private ?\DateTimeInterface $updateAt null;
  35.     #[ORM\Column(length50nullabletrue)]
  36.     private ?string $updateUser null;
  37.     #[ORM\ManyToOne(inversedBy'visitante')]
  38.     private ?ParARL $arl null;
  39.     #[ORM\Column(length100nullabletrue)]
  40.     private ?string $vigenciaSeguridadSocial null;
  41.     #[ORM\Column(nullabletrue)]
  42.     private ?bool $autorizado null;
  43.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  44.     private ?string $novedad null;
  45.     #[ORM\Column(length255nullabletrue)]
  46.     private ?string $foto null;
  47.     #[ORM\Column(nullabletrue)]
  48.     private ?int $numeroCarnet null;
  49.     #[ORM\OneToMany(mappedBy'visitante'targetEntitySegVisitanteElemento::class)]
  50.     private Collection $visitanteElementos;
  51.     #[ORM\ManyToOne(inversedBy'visitantes')]
  52.     private ?ParEstado $estado null;
  53.     #[ORM\ManyToOne(inversedBy'visitante')]
  54.     private ?ParTipoVehiculo $tipoVehiculo null;
  55.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  56.     private ?\DateTimeInterface $fechaIngreso null;
  57.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  58.     private ?\DateTimeInterface $fechaSalida null;
  59.     #[ORM\Column(nullabletrue)]
  60.     private ?bool $notificadoIngreso null;
  61.     #[ORM\Column(nullabletrue)]
  62.     private ?bool $salidaCarnet null;
  63.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  64.     private ?string $observacionesSalida null;
  65.     public function __construct()
  66.     {
  67.         $this->visitanteElementos = new ArrayCollection();
  68.     }
  69.     public function getId(): ?int
  70.     {
  71.         return $this->id;
  72.     }
  73.        public function getIngresoVisitante(): ?SegIngresoVisitante
  74.     {
  75.         return $this->ingresoVisitante;
  76.     }
  77.     public function setIngresoVisitante(?SegIngresoVisitante $ingresoVisitante): static
  78.     {
  79.         $this->ingresoVisitante $ingresoVisitante;
  80.         return $this;
  81.     }
  82.     public function getTipoDocumento(): ?ParTipoDocumento
  83.     {
  84.         return $this->tipoDocumento;
  85.     }
  86.     public function setTipoDocumento(?ParTipoDocumento $tipoDocumento): static
  87.     {
  88.         $this->tipoDocumento $tipoDocumento;
  89.         return $this;
  90.     }
  91.     public function getNumeroIdentificacion(): ?string
  92.     {
  93.         return $this->numeroIdentificacion;
  94.     }
  95.     public function setNumeroIdentificacion(string $numeroIdentificacion): static
  96.     {
  97.         $this->numeroIdentificacion $numeroIdentificacion;
  98.         return $this;
  99.     }
  100.     public function getNombres(): ?string
  101.     {
  102.         return $this->nombres;
  103.     }
  104.     public function setNombres(string $nombres): static
  105.     {
  106.         $this->nombres $nombres;
  107.         return $this;
  108.     }
  109.     public function getPlaca(): ?string
  110.     {
  111.         return $this->placa;
  112.     }
  113.     public function setPlaca(?string $placa): static
  114.     {
  115.         $this->placa $placa;
  116.         return $this;
  117.     }
  118.     public function getCorreo(): ?string
  119.     {
  120.         return $this->correo;
  121.     }
  122.     public function setCorreo(?string $correo): static
  123.     {
  124.         $this->correo $correo;
  125.         return $this;
  126.     }
  127.     public function getSeguridadSocial(): ?string
  128.     {
  129.         return $this->seguridadSocial;
  130.     }
  131.     public function setSeguridadSocial(?string $seguridadSocial): static
  132.     {
  133.         $this->seguridadSocial $seguridadSocial;
  134.         return $this;
  135.     }
  136.     public function getCreateAt(): ?\DateTimeInterface
  137.     {
  138.         return $this->createAt;
  139.     }
  140.     public function setCreateAt(\DateTimeInterface $createAt): static
  141.     {
  142.         $this->createAt $createAt;
  143.         return $this;
  144.     }
  145.     public function getCreateUser(): ?string
  146.     {
  147.         return $this->createUser;
  148.     }
  149.     public function setCreateUser(?string $createUser): static
  150.     {
  151.         $this->createUser $createUser;
  152.         return $this;
  153.     }
  154.     public function getUpdateAt(): ?\DateTimeInterface
  155.     {
  156.         return $this->updateAt;
  157.     }
  158.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  159.     {
  160.         $this->updateAt $updateAt;
  161.         return $this;
  162.     }
  163.     public function getUpdateUser(): ?string
  164.     {
  165.         return $this->updateUser;
  166.     }
  167.     public function setUpdateUser(?string $updateUser): static
  168.     {
  169.         $this->updateUser $updateUser;
  170.         return $this;
  171.     }
  172.     public function getArl(): ?ParARL
  173.     {
  174.         return $this->arl;
  175.     }
  176.     public function setArl(?ParARL $arl): static
  177.     {
  178.         $this->arl $arl;
  179.         return $this;
  180.     }
  181.     public function getVigenciaSeguridadSocial(): ?string
  182.     {
  183.         return $this->vigenciaSeguridadSocial;
  184.     }
  185.     public function setVigenciaSeguridadSocial(?string $vigenciaSeguridadSocial): static
  186.     {
  187.         $this->vigenciaSeguridadSocial $vigenciaSeguridadSocial;
  188.         return $this;
  189.     }
  190.     public function isAutorizado(): ?bool
  191.     {
  192.         return $this->autorizado;
  193.     }
  194.     public function setAutorizado(?bool $autorizado): static
  195.     {
  196.         $this->autorizado $autorizado;
  197.         return $this;
  198.     }
  199.     public function getNovedad(): ?string
  200.     {
  201.         return $this->novedad;
  202.     }
  203.     public function setNovedad(?string $novedad): static
  204.     {
  205.         $this->novedad $novedad;
  206.         return $this;
  207.     }
  208.     public function getFoto(): ?string
  209.     {
  210.         return $this->foto;
  211.     }
  212.     public function setFoto(?string $foto): static
  213.     {
  214.         $this->foto $foto;
  215.         return $this;
  216.     }
  217.     public function getNumeroCarnet(): ?int
  218.     {
  219.         return $this->numeroCarnet;
  220.     }
  221.     public function setNumeroCarnet(?int $numeroCarnet): static
  222.     {
  223.         $this->numeroCarnet $numeroCarnet;
  224.         return $this;
  225.     }
  226.     /**
  227.      * @return Collection<int, SegVisitanteElemento>
  228.      */
  229.     public function getVisitanteElementos(): Collection
  230.     {
  231.         return $this->visitanteElementos;
  232.     }
  233.     public function addVisitanteElemento(SegVisitanteElemento $visitanteElemento): static
  234.     {
  235.         if (!$this->visitanteElementos->contains($visitanteElemento)) {
  236.             $this->visitanteElementos->add($visitanteElemento);
  237.             $visitanteElemento->setVisitante($this);
  238.         }
  239.         return $this;
  240.     }
  241.     public function removeVisitanteElemento(SegVisitanteElemento $visitanteElemento): static
  242.     {
  243.         if ($this->visitanteElementos->removeElement($visitanteElemento)) {
  244.             // set the owning side to null (unless already changed)
  245.             if ($visitanteElemento->getVisitante() === $this) {
  246.                 $visitanteElemento->setVisitante(null);
  247.             }
  248.         }
  249.         return $this;
  250.     }
  251.     public function getEstado(): ?ParEstado
  252.     {
  253.         return $this->estado;
  254.     }
  255.     public function setEstado(?ParEstado $estado): static
  256.     {
  257.         $this->estado $estado;
  258.         return $this;
  259.     }
  260.     public function getTipoVehiculo(): ?ParTipoVehiculo
  261.     {
  262.         return $this->tipoVehiculo;
  263.     }
  264.     public function setTipoVehiculo(?ParTipoVehiculo $tipoVehiculo): static
  265.     {
  266.         $this->tipoVehiculo $tipoVehiculo;
  267.         return $this;
  268.     }
  269.     public function getFechaIngreso(): ?\DateTimeInterface
  270.     {
  271.         return $this->fechaIngreso;
  272.     }
  273.     public function setFechaIngreso(?\DateTimeInterface $fechaIngreso): static
  274.     {
  275.         $this->fechaIngreso $fechaIngreso;
  276.         return $this;
  277.     }
  278.     public function getFechaSalida(): ?\DateTimeInterface
  279.     {
  280.         return $this->fechaSalida;
  281.     }
  282.     public function setFechaSalida(?\DateTimeInterface $fechaSalida): static
  283.     {
  284.         $this->fechaSalida $fechaSalida;
  285.         return $this;
  286.     }
  287.     public function isNotificadoIngreso(): ?bool
  288.     {
  289.         return $this->notificadoIngreso;
  290.     }
  291.     public function setNotificadoIngreso(?bool $notificadoIngreso): static
  292.     {
  293.         $this->notificadoIngreso $notificadoIngreso;
  294.         return $this;
  295.     }
  296.     public function isSalidaCarnet(): ?bool
  297.     {
  298.         return $this->salidaCarnet;
  299.     }
  300.     public function setSalidaCarnet(?bool $salidaCarnet): static
  301.     {
  302.         $this->salidaCarnet $salidaCarnet;
  303.         return $this;
  304.     }
  305.     public function getObservacionesSalida(): ?string
  306.     {
  307.         return $this->observacionesSalida;
  308.     }
  309.     public function setObservacionesSalida(?string $observacionesSalida): static
  310.     {
  311.         $this->observacionesSalida $observacionesSalida;
  312.         return $this;
  313.     }
  314. }