src/Entity/Persona/Persona.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Persona;
  3. use App\Entity\Catalogos\Parroquias;
  4. use App\Entity\Fidelizacion\CategoriaCliente;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * Persona
  8.  *
  9.  * @ORM\Table(name="persona.persona", uniqueConstraints={@ORM\UniqueConstraint(name="identificacion_uq", columns={"numero_identificacion"}), @ORM\UniqueConstraint(name="mail_personal_uq", columns={"mail_personal"})}, indexes={@ORM\Index(name="IDX_37E2789F7440C9C", columns={"id_categoria_cliente"}), @ORM\Index(name="IDX_37E2789FFDCE01A0", columns={"id_parroquias"})})
  10.  * @ORM\Entity
  11.  */
  12. class Persona
  13. {
  14.     /**
  15.      * @var int
  16.      *
  17.      * @ORM\Column(name="id", type="integer", nullable=false)
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="SEQUENCE")
  20.      * @ORM\SequenceGenerator(sequenceName="persona.persona_id_seq", allocationSize=1, initialValue=1)
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var string
  25.      *
  26.      * @ORM\Column(name="tipo_identificacion", type="string", length=10, nullable=false, options={"comment"="Tipo Identificacion: Cedula/Pasaporte"})
  27.      */
  28.     private $tipoIdentificacion;
  29.     /**
  30.      * @var string
  31.      *
  32.      * @ORM\Column(name="numero_identificacion", type="string", length=15, nullable=false, options={"comment"="Si es cedula debe validarse con el digito validador de la cedula
  33. SI es pasaporte puede ingresar cualquier cadena de texto"})
  34.      */
  35.     private $numeroIdentificacion;
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(name="apellidos", type="string", length=40, nullable=false, options={"comment"="Primer apellido de la persona"})
  40.      */
  41.     private $apellidos;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="nombres", type="string", length=40, nullable=false)
  46.      */
  47.     private $nombres;
  48.     /**
  49.      * @var string
  50.      *
  51.      * @ORM\Column(name="mail_personal", type="string", length=100, nullable=false)
  52.      */
  53.     private $mailPersonal;
  54.     /**
  55.      * @var string
  56.      *
  57.      * @ORM\Column(name="tel_celular", type="string", length=13, nullable=false)
  58.      */
  59.     private $telCelular;
  60.     /**
  61.      * @var \DateTime
  62.      *
  63.      * @ORM\Column(name="fecha_nacimiento", type="date", nullable=false)
  64.      */
  65.     private $fechaNacimiento;
  66.     /**
  67.      * @var string|null
  68.      *
  69.      * @ORM\Column(name="direccion_sector", type="text", nullable=true)
  70.      */
  71.     private $direccionSector;
  72.     /**
  73.      * @var int
  74.      *
  75.      * @ORM\Column(name="id_usuario_modificacion", type="integer", nullable=false)
  76.      */
  77.     private $idUsuarioModificacion;
  78.     /**
  79.      * @var \DateTime
  80.      *
  81.      * @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false)
  82.      */
  83.     private $fechaModificacion;
  84.     /**
  85.      * @var string
  86.      *
  87.      * @ORM\Column(name="ip_modificacion", type="string", length=50, nullable=false)
  88.      */
  89.     private $ipModificacion;
  90.     /**
  91.      * @var \App\Entity\Catalogos\Parroquias
  92.      *
  93.      * @ORM\ManyToOne(targetEntity="App\Entity\Catalogos\Parroquias")
  94.      * @ORM\JoinColumns({
  95.      *   @ORM\JoinColumn(name="id_parroquias", referencedColumnName="id")
  96.      * })
  97.      */
  98.     private $idParroquias;
  99.     /**
  100.      * @var \App\Entity\Fidelizacion\CategoriaCliente
  101.      *
  102.      * @ORM\ManyToOne(targetEntity="App\Entity\Fidelizacion\CategoriaCliente")
  103.      * @ORM\JoinColumns({
  104.      *   @ORM\JoinColumn(name="id_categoria_cliente", referencedColumnName="id")
  105.      * })
  106.      */
  107.     private $idCategoriaCliente;
  108.     /**
  109.      * @var string|null
  110.      *
  111.      * @ORM\Column(name="foto", type="string", nullable=true, options={"comment"="SIn limite"})
  112.      */
  113.     private $foto;
  114.     public function getId(): ?int
  115.     {
  116.         return $this->id;
  117.     }
  118.     public function getTipoIdentificacion(): ?string
  119.     {
  120.         return $this->tipoIdentificacion;
  121.     }
  122.     public function setTipoIdentificacion(string $tipoIdentificacion): self
  123.     {
  124.         $this->tipoIdentificacion $tipoIdentificacion;
  125.         return $this;
  126.     }
  127.     public function getNumeroIdentificacion(): ?string
  128.     {
  129.         return $this->numeroIdentificacion;
  130.     }
  131.     public function setNumeroIdentificacion(string $numeroIdentificacion): self
  132.     {
  133.         $this->numeroIdentificacion $numeroIdentificacion;
  134.         return $this;
  135.     }
  136.     public function getApellidos(): ?string
  137.     {
  138.         return $this->apellidos;
  139.     }
  140.     public function setApellidos(string $apellidos): self
  141.     {
  142.         $this->apellidos $apellidos;
  143.         return $this;
  144.     }
  145.     public function getNombres(): ?string
  146.     {
  147.         return $this->nombres;
  148.     }
  149.     public function setNombres(string $nombres): self
  150.     {
  151.         $this->nombres $nombres;
  152.         return $this;
  153.     }
  154.     public function getMailPersonal(): ?string
  155.     {
  156.         return $this->mailPersonal;
  157.     }
  158.     public function setMailPersonal(string $mailPersonal): self
  159.     {
  160.         $this->mailPersonal $mailPersonal;
  161.         return $this;
  162.     }
  163.     public function getTelCelular(): ?string
  164.     {
  165.         return $this->telCelular;
  166.     }
  167.     public function setTelCelular(string $telCelular): self
  168.     {
  169.         $this->telCelular $telCelular;
  170.         return $this;
  171.     }
  172.     public function getFechaNacimiento(): ?\DateTimeInterface
  173.     {
  174.         return $this->fechaNacimiento;
  175.     }
  176.     public function getFechaNacimientoString(): ? string
  177.     {
  178.         return $this->fechaNacimiento $this->fechaNacimiento->format('Y-m-d'):'';
  179.     }
  180.     public function setFechaNacimiento(\DateTimeInterface $fechaNacimiento): self
  181.     {
  182.         $this->fechaNacimiento $fechaNacimiento;
  183.         return $this;
  184.     }
  185.     public function getDireccionSector(): ?string
  186.     {
  187.         return $this->direccionSector;
  188.     }
  189.     public function setDireccionSector(?string $direccionSector): self
  190.     {
  191.         $this->direccionSector $direccionSector;
  192.         return $this;
  193.     }
  194.     public function getIdUsuarioModificacion(): ?int
  195.     {
  196.         return $this->idUsuarioModificacion;
  197.     }
  198.     public function setIdUsuarioModificacion(int $idUsuarioModificacion): self
  199.     {
  200.         $this->idUsuarioModificacion $idUsuarioModificacion;
  201.         return $this;
  202.     }
  203.     public function getFechaModificacion(): ?\DateTimeInterface
  204.     {
  205.         return $this->fechaModificacion;
  206.     }
  207.     public function setFechaModificacion(\DateTimeInterface $fechaModificacion): self
  208.     {
  209.         $this->fechaModificacion $fechaModificacion;
  210.         return $this;
  211.     }
  212.     public function getIpModificacion(): ?string
  213.     {
  214.         return $this->ipModificacion;
  215.     }
  216.     public function setIpModificacion(string $ipModificacion): self
  217.     {
  218.         $this->ipModificacion $ipModificacion;
  219.         return $this;
  220.     }
  221.     public function getIdParroquias(): ?Parroquias
  222.     {
  223.         return $this->idParroquias;
  224.     }
  225.     public function setIdParroquias(?Parroquias $idParroquias): self
  226.     {
  227.         $this->idParroquias $idParroquias;
  228.         return $this;
  229.     }
  230.     public function getIdCategoriaCliente(): ?CategoriaCliente
  231.     {
  232.         return $this->idCategoriaCliente;
  233.     }
  234.     public function setIdCategoriaCliente(?CategoriaCliente $idCategoriaCliente): self
  235.     {
  236.         $this->idCategoriaCliente $idCategoriaCliente;
  237.         return $this;
  238.     }
  239.     public function getFoto(): ?string {
  240.         return $this->foto;
  241.     }
  242.     public function setFoto(?string $foto): self {
  243.         $this->foto $foto;
  244.         return $this;
  245.     }
  246. }