<?php
namespace App\Entity\Fielpet\View;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
/**
* DatosPersonasView
*
* @ORM\Table(name="datos_personas_view")
* @ORM\Entity
*/
class DatosPersonasView
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="DatosPersonas_id_seq", allocationSize=1, initialValue=1)
*/
private $id;
/**
* @var string|null
*
* @ORM\Column(name="dni", type="string", length=255, nullable=true)
*/
private $dni;
/**
* @var string|null
*
* @ORM\Column(name="nombre", type="string", length=255, nullable=true)
*/
private $nombre;
/**
* @var string|null
*
* @ORM\Column(name="apellido", type="string", length=255, nullable=true)
*/
private $apellido;
/**
* @var \DateTime|null
*
* @ORM\Column(name="fecha_nacimiento", type="custom_datetimetz", nullable=true)
*/
private $fechaNacimiento;
/**
* @var string|null
*
* @ORM\Column(name="genero", type="string", length=255, nullable=true)
*/
private $genero;
/**
* @var string|null
*
* @ORM\Column(name="tel_fijo", type="string", length=255, nullable=true)
*/
private $telFijo;
/**
* @var string|null
*
* @ORM\Column(name="tel_celular", type="string", length=255, nullable=true)
*/
private $telCelular;
/**
* @var \DateTime
*
* @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
*/
private $createdAt;
/**
* @var \DateTime
*
* @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
*/
private $updatedAt;
/**
* @ORM\OneToMany(targetEntity="UsuariosView", mappedBy="vetformId", cascade={"persist"})
**/
private $usuarios;
/**
* @ORM\OneToMany(targetEntity="DatosDomiciliosView", mappedBy="datosPersonaId")
**/
private $domicilios;
public function __construct()
{
$this->usuarios = new ArrayCollection();
$this->domicilios = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getDni(): ?string
{
return $this->dni;
}
public function setDni(?string $dni): static
{
$this->dni = $dni;
return $this;
}
public function getNombre(): ?string
{
return $this->nombre;
}
public function setNombre(?string $nombre): static
{
$this->nombre = $nombre;
return $this;
}
public function getApellido(): ?string
{
return $this->apellido;
}
public function setApellido(?string $apellido): static
{
$this->apellido = $apellido;
return $this;
}
public function getFechaNacimiento(): ?\DateTimeInterface
{
return $this->fechaNacimiento;
}
public function setFechaNacimiento(?\DateTimeInterface $fechaNacimiento): static
{
$this->fechaNacimiento = $fechaNacimiento;
return $this;
}
public function getGenero(): ?string
{
return $this->genero;
}
public function setGenero(?string $genero): static
{
$this->genero = $genero;
return $this;
}
public function getTelFijo(): ?string
{
return $this->telFijo;
}
public function setTelFijo(?string $telFijo): static
{
$this->telFijo = $telFijo;
return $this;
}
public function getTelCelular(): ?string
{
return $this->telCelular;
}
public function setTelCelular(?string $telCelular): static
{
$this->telCelular = $telCelular;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): static
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTimeInterface $updatedAt): static
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getUsuarios(): Collection
{
return $this->usuarios;
}
public function setUsuarios(Collection $usuarios): void
{
$this->usuarios = $usuarios;
}
/**
* @return ArrayCollection
*/
public function getDomicilios(): Collection
{
return $this->domicilios;
}
/**
* @param ArrayCollection $domicilios
*/
public function setDomicilios(Collection $domicilios): void
{
$this->domicilios = $domicilios;
}
}