<?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;
/**
* CirugiaMascotaView
*
* @ORM\Table(name="cirugia_mascota_view", indexes={@ORM\Index(name="IDX_BE4379C74F531111", columns={"vetFormId"}), @ORM\Index(name="IDX_BE4379C752066F5", columns={"siniestroId"}), @ORM\Index(name="IDX_BE4379C759EDB958", columns={"vetFormIndicador"})})
* @ORM\Entity
*/
class CirugiaMascotaView
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="CirugiaMascota_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="operacion_realizada", type="string", length=255, nullable=true)
*/
private $operacionRealizada;
/**
* @var string|null
*
* @ORM\Column(name="descripcion_practica", type="string", length=255, nullable=true)
*/
private $descripcionPractica;
/**
* @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="cirugiaMascotaId", 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 getOperacionRealizada(): ?string
{
return $this->operacionRealizada;
}
public function setOperacionRealizada(?string $operacionRealizada): static
{
$this->operacionRealizada = $operacionRealizada;
return $this;
}
public function getDescripcionPractica(): ?string
{
return $this->descripcionPractica;
}
public function setDescripcionPractica(?string $descripcionPractica): static
{
$this->descripcionPractica = $descripcionPractica;
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->setCirugiaMascotaId($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->getCirugiaMascotaId() === $this) {
$eventosSubVetform->setCirugiaMascotaId(null);
}
}
return $this;
}
}