src/Entity/Fielpet/View/InternacionMascotaView.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fielpet\View;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * InternacionMascotaView
  9. *
  10. * @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"})})
  11. * @ORM\Entity
  12. */
  13. class InternacionMascotaView
  14. {
  15. /**
  16. * @var int
  17. *
  18. * @ORM\Column(name="id", type="integer", nullable=false)
  19. * @ORM\Id
  20. * @ORM\GeneratedValue(strategy="SEQUENCE")
  21. * @ORM\SequenceGenerator(sequenceName="InternacionMascota_id_seq", allocationSize=1, initialValue=1)
  22. */
  23. private $id;
  24. /**
  25. * @var string|null
  26. *
  27. * @ORM\Column(name="descripcion_inicial", type="string", length=255, nullable=true)
  28. */
  29. private $descripcionInicial;
  30. /**
  31. * @var string|null
  32. *
  33. * @ORM\Column(name="terapias_realizadas", type="string", length=255, nullable=true)
  34. */
  35. private $terapiasRealizadas;
  36. /**
  37. * @var \DateTime|null
  38. *
  39. * @ORM\Column(name="inicio", type="custom_datetimetz", nullable=true)
  40. */
  41. private $inicio;
  42. /**
  43. * @var \DateTime|null
  44. *
  45. * @ORM\Column(name="fin", type="custom_datetimetz", nullable=true)
  46. */
  47. private $fin;
  48. /**
  49. * @var float|null
  50. *
  51. * @ORM\Column(name="costo", type="float", precision=10, scale=0, nullable=true)
  52. */
  53. private $costo;
  54. /**
  55. * @var string|null
  56. *
  57. * @ORM\Column(name="estado", type="string", length=255, nullable=true)
  58. */
  59. private $estado;
  60. /**
  61. * @var \DateTime
  62. *
  63. * @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
  64. */
  65. private $createdAt;
  66. /**
  67. * @var \DateTime
  68. *
  69. * @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
  70. */
  71. private $updatedAt;
  72. /**
  73. * @var \VetFormView
  74. *
  75. * @ORM\ManyToOne(targetEntity="VetFormView")
  76. * @ORM\JoinColumns({
  77. * @ORM\JoinColumn(name="vetform_id", referencedColumnName="id")
  78. * })
  79. */
  80. private $vetformId;
  81. /**
  82. * @var \SiniestroView
  83. *
  84. * @ORM\ManyToOne(targetEntity="SiniestroView")
  85. * @ORM\JoinColumns({
  86. * @ORM\JoinColumn(name="siniestro_id", referencedColumnName="id")
  87. * })
  88. */
  89. private $siniestroId;
  90. /**
  91. * @var \VetFormView
  92. *
  93. * @ORM\ManyToOne(targetEntity="VetFormView")
  94. * @ORM\JoinColumns({
  95. * @ORM\JoinColumn(name="vetform_indicador", referencedColumnName="id")
  96. * })
  97. */
  98. private $vetformIndicador;
  99. /**
  100. * @ORM\OneToMany(targetEntity="EventosSubVetformView", mappedBy="internacionMascotaId", cascade={"persist"})
  101. **/
  102. private $eventosSubVetform;
  103. public function __construct()
  104. {
  105. $this->eventosSubVetform = new \Doctrine\Common\Collections\ArrayCollection();
  106. }
  107. public function getId(): ?int
  108. {
  109. return $this->id;
  110. }
  111. public function getDescripcionInicial(): ?string
  112. {
  113. return $this->descripcionInicial;
  114. }
  115. public function setDescripcionInicial(?string $descripcionInicial): static
  116. {
  117. $this->descripcionInicial = $descripcionInicial;
  118. return $this;
  119. }
  120. public function getTerapiasRealizadas(): ?string
  121. {
  122. return $this->terapiasRealizadas;
  123. }
  124. public function setTerapiasRealizadas(?string $terapiasRealizadas): static
  125. {
  126. $this->terapiasRealizadas = $terapiasRealizadas;
  127. return $this;
  128. }
  129. public function getInicio()
  130. {
  131. return $this->inicio;
  132. }
  133. public function setInicio($inicio): static
  134. {
  135. $this->inicio = $inicio;
  136. return $this;
  137. }
  138. public function getFin()
  139. {
  140. return $this->fin;
  141. }
  142. public function setFin($fin): static
  143. {
  144. $this->fin = $fin;
  145. return $this;
  146. }
  147. public function getCosto(): ?float
  148. {
  149. return $this->costo;
  150. }
  151. public function setCosto(?float $costo): static
  152. {
  153. $this->costo = $costo;
  154. return $this;
  155. }
  156. public function getEstado(): ?string
  157. {
  158. return $this->estado;
  159. }
  160. public function setEstado(?string $estado): static
  161. {
  162. $this->estado = $estado;
  163. return $this;
  164. }
  165. public function getCreatedAt()
  166. {
  167. return $this->createdAt;
  168. }
  169. public function setCreatedAt($createdAt): static
  170. {
  171. $this->createdAt = $createdAt;
  172. return $this;
  173. }
  174. public function getUpdatedAt()
  175. {
  176. return $this->updatedAt;
  177. }
  178. public function setUpdatedAt($updatedAt): static
  179. {
  180. $this->updatedAt = $updatedAt;
  181. return $this;
  182. }
  183. public function getVetformId(): ?VetFormView
  184. {
  185. return $this->vetformId;
  186. }
  187. public function setVetformId(?VetFormView $vetformId): static
  188. {
  189. $this->vetformId = $vetformId;
  190. return $this;
  191. }
  192. public function getSiniestroId(): ?SiniestroView
  193. {
  194. return $this->siniestroId;
  195. }
  196. public function setSiniestroId(?SiniestroView $siniestroId): static
  197. {
  198. $this->siniestroId = $siniestroId;
  199. return $this;
  200. }
  201. public function getVetformIndicador(): ?VetFormView
  202. {
  203. return $this->vetformIndicador;
  204. }
  205. public function setVetformIndicador(?VetFormView $vetformIndicador): static
  206. {
  207. $this->vetformIndicador = $vetformIndicador;
  208. return $this;
  209. }
  210. /**
  211. * @return Collection<int, EventosSubVetformView>
  212. */
  213. public function getEventosSubVetform(): Collection
  214. {
  215. return $this->eventosSubVetform;
  216. }
  217. public function addEventosSubVetform(EventosSubVetformView $eventosSubVetform): static
  218. {
  219. if (!$this->eventosSubVetform->contains($eventosSubVetform)) {
  220. $this->eventosSubVetform->add($eventosSubVetform);
  221. $eventosSubVetform->setInternacionMascotaId($this);
  222. }
  223. return $this;
  224. }
  225. public function removeEventosSubVetform(EventosSubVetformView $eventosSubVetform): static
  226. {
  227. if ($this->eventosSubVetform->removeElement($eventosSubVetform)) {
  228. // set the owning side to null (unless already changed)
  229. if ($eventosSubVetform->getInternacionMascotaId() === $this) {
  230. $eventosSubVetform->setInternacionMascotaId(null);
  231. }
  232. }
  233. return $this;
  234. }
  235. }