<?php
namespace App\Entity\Fielpet\View;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* InternacionMascotaView
*
* @ORM\Table(name="internacion_mascota_view", indexes={@ORM\Index(name="IDX_C0DEC5254F531111", columns={"vetFormId"}), @ORM\Index(name="IDX_C0DEC52552066F5", columns={"siniestroId"}), @ORM\Index(name="IDX_C0DEC52559EDB958", columns={"vetFormIndicador"})})
* @ORM\Entity
*/
class InternacionMascotaView
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="InternacionMascota_id_seq", allocationSize=1, initialValue=1)
*/
private $id;
/**
* @var string|null
*
* @ORM\Column(name="descripcion_inicial", type="string", length=255, nullable=true)
*/
private $descripcionInicial;
/**
* @var string|null
*
* @ORM\Column(name="terapias_realizadas", type="string", length=255, nullable=true)
*/
private $terapiasRealizadas;
/**
* @var \DateTime|null
*
* @ORM\Column(name="inicio", type="custom_datetimetz", nullable=true)
*/
private $inicio;
/**
* @var \DateTime|null
*
* @ORM\Column(name="fin", type="custom_datetimetz", nullable=true)
*/
private $fin;
/**
* @var float|null
*
* @ORM\Column(name="costo", type="float", precision=10, scale=0, nullable=true)
*/
private $costo;
/**
* @var string|null
*
* @ORM\Column(name="estado", type="string", length=255, nullable=true)
*/
private $estado;
/**
* @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 \VetFormView
*
* @ORM\ManyToOne(targetEntity="VetFormView")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="vetform_id", referencedColumnName="id")
* })
*/
private $vetformId;
/**
* @var \SiniestroView
*
* @ORM\ManyToOne(targetEntity="SiniestroView")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="siniestro_id", referencedColumnName="id")
* })
*/
private $siniestroId;
/**
* @var \VetFormView
*
* @ORM\ManyToOne(targetEntity="VetFormView")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="vetform_indicador", referencedColumnName="id")
* })
*/
private $vetformIndicador;
/**
* @ORM\OneToMany(targetEntity="EventosSubVetformView", mappedBy="internacionMascotaId", cascade={"persist"})
**/
private $eventosSubVetform;
public function __construct()
{
$this->eventosSubVetform = new \Doctrine\Common\Collections\ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getDescripcionInicial(): ?string
{
return $this->descripcionInicial;
}
public function setDescripcionInicial(?string $descripcionInicial): static
{
$this->descripcionInicial = $descripcionInicial;
return $this;
}
public function getTerapiasRealizadas(): ?string
{
return $this->terapiasRealizadas;
}
public function setTerapiasRealizadas(?string $terapiasRealizadas): static
{
$this->terapiasRealizadas = $terapiasRealizadas;
return $this;
}
public function getInicio()
{
return $this->inicio;
}
public function setInicio($inicio): static
{
$this->inicio = $inicio;
return $this;
}
public function getFin()
{
return $this->fin;
}
public function setFin($fin): static
{
$this->fin = $fin;
return $this;
}
public function getCosto(): ?float
{
return $this->costo;
}
public function setCosto(?float $costo): static
{
$this->costo = $costo;
return $this;
}
public function getEstado(): ?string
{
return $this->estado;
}
public function setEstado(?string $estado): static
{
$this->estado = $estado;
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 getVetformId(): ?VetFormView
{
return $this->vetformId;
}
public function setVetformId(?VetFormView $vetformId): static
{
$this->vetformId = $vetformId;
return $this;
}
public function getSiniestroId(): ?SiniestroView
{
return $this->siniestroId;
}
public function setSiniestroId(?SiniestroView $siniestroId): static
{
$this->siniestroId = $siniestroId;
return $this;
}
public function getVetformIndicador(): ?VetFormView
{
return $this->vetformIndicador;
}
public function setVetformIndicador(?VetFormView $vetformIndicador): static
{
$this->vetformIndicador = $vetformIndicador;
return $this;
}
/**
* @return Collection<int, EventosSubVetformView>
*/
public function getEventosSubVetform(): Collection
{
return $this->eventosSubVetform;
}
public function addEventosSubVetform(EventosSubVetformView $eventosSubVetform): static
{
if (!$this->eventosSubVetform->contains($eventosSubVetform)) {
$this->eventosSubVetform->add($eventosSubVetform);
$eventosSubVetform->setInternacionMascotaId($this);
}
return $this;
}
public function removeEventosSubVetform(EventosSubVetformView $eventosSubVetform): static
{
if ($this->eventosSubVetform->removeElement($eventosSubVetform)) {
// set the owning side to null (unless already changed)
if ($eventosSubVetform->getInternacionMascotaId() === $this) {
$eventosSubVetform->setInternacionMascotaId(null);
}
}
return $this;
}
}