<?php
namespace App\Entity\Fielpet\View;
use App\Entity\Fielpet\View\MascotasView;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* SiniestroView
*
* @ORM\Table(name="siniestro_view", indexes={@ORM\Index(name="IDX_2DA4EBD99F276F38", columns={"mascotaId"})})
* @ORM\Entity
*/
class SiniestroView
{
const COMPANIA_DAWER = 1;
const COMPANIA_BBVA = 2;
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="Siniestro_id_seq", allocationSize=1, initialValue=1)
*/
private $id;
/**
* @var \DateTime|null
*
* @ORM\Column(name="fecha_carga", type="custom_datetimetz", nullable=true)
*/
private $fechaCarga;
/**
* @var string|null
*
* @ORM\Column(name="denuncia_administrativa", type="string", length=255, nullable=true)
*/
private $denunciaAdministrativa;
/**
* @var string|null
*
* @ORM\Column(name="estado", type="string", length=255, nullable=true)
*/
private $estado;
/**
* @var float|null
*
* @ORM\Column(name="monto", type="float", precision=10, scale=0, nullable=true)
*/
private $monto;
/**
* @var \DateTime|null
*
* @ORM\Column(name="fecha_final", type="custom_datetimetz", nullable=true)
*/
private $fechaFinal;
/**
* @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;
/**
* @var int|null
*
* @ORM\Column(name="bbva_siniestro_id", type="integer", nullable=true)
*/
private $bbvaSiniestroId;
/**
* @var int|null
*
* @ORM\Column(name="compania", type="integer", nullable=true)
*/
private $compania;
/**
* @var \DateTime|null
*
* @ORM\Column(name="bbva_siniestro_id_date", type="custom_datetimetz", nullable=true)
*/
private $bbvaSiniestroIdDate;
/**
* @var MascotasView
*
* @ORM\ManyToOne(targetEntity="MascotasView")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="mascota_id", referencedColumnName="id")
* })
*/
private $mascotaId;
/**
* @var string|null
*
* @ORM\Column(name="tipo", type="string", length=255, nullable=true)
*/
private $tipo;
public function getId(): ?int
{
return $this->id;
}
public function getFechaCarga()
{
return $this->fechaCarga;
}
public function setFechaCarga($fechaCarga): static
{
$this->fechaCarga = $fechaCarga;
return $this;
}
public function getDenunciaAdministrativa(): ?string
{
return $this->denunciaAdministrativa;
}
public function setDenunciaAdministrativa(?string $denunciaAdministrativa): static
{
$this->denunciaAdministrativa = $denunciaAdministrativa;
return $this;
}
public function getEstado(): ?string
{
return $this->estado;
}
public function setEstado(?string $estado): static
{
$this->estado = $estado;
return $this;
}
public function getMonto(): ?float
{
return $this->monto;
}
public function setMonto(?float $monto): static
{
$this->monto = $monto;
return $this;
}
public function getFechaFinal()
{
return $this->fechaFinal;
}
public function setFechaFinal($fechaFinal): static
{
$this->fechaFinal = $fechaFinal;
return $this;
}
public function getCreatedAt()
{
return $this->createdAt;
}
public function setCreatedAt($createdAt): static
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt()
{
return $this->updatedAt;
}
public function setUpdatedAt($updatedAt): static
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getBbvaSiniestroId(): ?int
{
return $this->bbvaSiniestroId;
}
public function setBbvaSiniestroId(?int $bbvaSiniestroId): static
{
$this->bbvaSiniestroId = $bbvaSiniestroId;
return $this;
}
public function getBbvaSiniestroIdDate()
{
return $this->bbvaSiniestroIdDate;
}
public function setBbvaSiniestroIdDate($bbvaSiniestroIdDate): static
{
$this->bbvaSiniestroIdDate = $bbvaSiniestroIdDate;
return $this;
}
public function getMascotaId(): ?MascotasView
{
return $this->mascotaId;
}
public function setMascotaId(?MascotasView $mascotaId): static
{
$this->mascotaId = $mascotaId;
return $this;
}
public function getCompania(): ?int
{
return $this->compania;
}
public function setCompania(?int $compania): self
{
$this->compania = $compania;
return $this;
}
public function getTipo(): ?string
{
return $this->tipo;
}
public function setTipo(?string $tipo): self
{
$this->tipo = $tipo;
return $this;
}
}