<?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;
/**
* EstudioMascotaView
*
* @ORM\Table(name="estudio_mascota_view", indexes={@ORM\Index(name="IDX_D959FE5C4F531111", columns={"vetFormId"}), @ORM\Index(name="IDX_D959FE5C52066F5", columns={"siniestroId"}), @ORM\Index(name="IDX_D959FE5C59EDB958", columns={"vetFormIndicador"})})
* @ORM\Entity
*/
class EstudioMascotaView
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="EstudioMascota_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="tipo_estudio", type="string", length=255, nullable=true)
*/
private $tipoEstudio;
/**
* @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 string|null
*
* @ORM\Column(name="descripcion_estudio", type="string", length=255, nullable=true)
*/
private $descripcionEstudio;
/**
* @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="estudioMascotaId", cascade={"persist"})
**/
private $eventosSubVetform;
public function __construct()
{
$this->eventosSubVetform = new \Doctrine\Common\Collections\ArrayCollection();
}
public function getId(): int
{
return $this->id;
}
public function setId(int $id): void
{
$this->id = $id;
}
public function getDescripcionInicial(): ?string
{
return $this->descripcionInicial;
}
public function setDescripcionInicial(?string $descripcionInicial): void
{
$this->descripcionInicial = $descripcionInicial;
}
public function getTipoEstudio(): ?string
{
return $this->tipoEstudio;
}
public function setTipoEstudio(?string $tipoEstudio): void
{
$this->tipoEstudio = $tipoEstudio;
}
public function getCosto(): ?float
{
return $this->costo;
}
public function setCosto(?float $costo): void
{
$this->costo = $costo;
}
public function getEstado(): ?string
{
return $this->estado;
}
public function setEstado(?string $estado): void
{
$this->estado = $estado;
}
public function getDescripcionEstudio(): ?string
{
return $this->descripcionEstudio;
}
public function setDescripcionEstudio(?string $descripcionEstudio): void
{
$this->descripcionEstudio = $descripcionEstudio;
}
public function getCreatedAt(): \DateTime
{
return $this->createdAt;
}
public function setCreatedAt(\DateTime $createdAt): void
{
$this->createdAt = $createdAt;
}
public function getUpdatedAt(): \DateTime
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTime $updatedAt): void
{
$this->updatedAt = $updatedAt;
}
public function getVetformId(): VetFormView
{
return $this->vetformId;
}
public function setVetformId(VetFormView $vetformId): void
{
$this->vetformId = $vetformId;
}
public function getSiniestroId(): SiniestroView
{
return $this->siniestroId;
}
public function setSiniestroId(SiniestroView $siniestroId): void
{
$this->siniestroId = $siniestroId;
}
public function getVetformIndicador(): VetFormView
{
return $this->vetformIndicador;
}
public function setVetformIndicador(VetFormView $vetformIndicador): void
{
$this->vetformIndicador = $vetformIndicador;
}
/**
* @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->setEstudioMascotaId($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->getEstudioMascotaId() === $this) {
$eventosSubVetform->setEstudioMascotaId(null);
}
}
return $this;
}
}