<?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;
/**
* PracticaMascotaView
*
* @ORM\Table(name="practica_mascota_view", indexes={@ORM\Index(name="IDX_87BC55044F531111", columns={"vetFormId"}), @ORM\Index(name="IDX_87BC550452066F5", columns={"siniestroId"}), @ORM\Index(name="IDX_87BC550459EDB958", columns={"vetFormIndicador"})})
* @ORM\Entity
*/
class PracticaMascotaView
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="PracticaMascota_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_practica", type="string", length=255, nullable=true)
*/
private $tipoPractica;
/**
* @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|null
*
* @ORM\Column(name="created_at", type="datetime", nullable=true)
*/
private $createdAt;
/**
* @var \DateTime|null
*
* @ORM\Column(name="updated_at", type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @var \VetFormView
*
* @ORM\ManyToOne(targetEntity="VetFormview")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="vetform_id", referencedColumnName="id")
* })
*/
private $vetFormId;
/**
* @var \Siniestro
*
* @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="practicaMascotaId", 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 getTipoPractica(): ?string
{
return $this->tipoPractica;
}
public function setTipoPractica(?string $tipoPractica): static
{
$this->tipoPractica = $tipoPractica;
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(): ?\DateTime
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTime $createdAt): static
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTime
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTime $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->setPracticaMascotaId($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->getPracticaMascotaId() === $this) {
$eventosSubVetform->setPracticaMascotaId(null);
}
}
return $this;
}
}