src/Entity/Fielpet/View/CirugiaMascotaView.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. * CirugiaMascotaView
  9. *
  10. * @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"})})
  11. * @ORM\Entity
  12. */
  13. class CirugiaMascotaView
  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="CirugiaMascota_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="operacion_realizada", type="string", length=255, nullable=true)
  34. */
  35. private $operacionRealizada;
  36. /**
  37. * @var string|null
  38. *
  39. * @ORM\Column(name="descripcion_practica", type="string", length=255, nullable=true)
  40. */
  41. private $descripcionPractica;
  42. /**
  43. * @var float|null
  44. *
  45. * @ORM\Column(name="costo", type="float", precision=10, scale=0, nullable=true)
  46. */
  47. private $costo;
  48. /**
  49. * @var string|null
  50. *
  51. * @ORM\Column(name="estado", type="string", length=255, nullable=true)
  52. */
  53. private $estado;
  54. /**
  55. * @var \DateTime
  56. *
  57. * @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
  58. */
  59. private $createdAt;
  60. /**
  61. * @var \DateTime
  62. *
  63. * @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
  64. */
  65. private $updatedAt;
  66. /**
  67. * @var \VetFormView
  68. *
  69. * @ORM\ManyToOne(targetEntity="VetFormView")
  70. * @ORM\JoinColumns({
  71. * @ORM\JoinColumn(name="vetform_id", referencedColumnName="id")
  72. * })
  73. */
  74. private $vetformId;
  75. /**
  76. * @var \SiniestroView
  77. *
  78. * @ORM\ManyToOne(targetEntity="SiniestroView")
  79. * @ORM\JoinColumns({
  80. * @ORM\JoinColumn(name="siniestro_id", referencedColumnName="id")
  81. * })
  82. */
  83. private $siniestroId;
  84. /**
  85. * @var \VetFormView
  86. *
  87. * @ORM\ManyToOne(targetEntity="VetFormView")
  88. * @ORM\JoinColumns({
  89. * @ORM\JoinColumn(name="vetform_indicador", referencedColumnName="id")
  90. * })
  91. */
  92. private $vetformIndicador;
  93. /**
  94. * @ORM\OneToMany(targetEntity="EventosSubVetformView", mappedBy="cirugiaMascotaId", cascade={"persist"})
  95. **/
  96. private $eventosSubVetform;
  97. public function __construct()
  98. {
  99. $this->eventosSubVetform = new \Doctrine\Common\Collections\ArrayCollection();
  100. }
  101. public function getId(): ?int
  102. {
  103. return $this->id;
  104. }
  105. public function getDescripcionInicial(): ?string
  106. {
  107. return $this->descripcionInicial;
  108. }
  109. public function setDescripcionInicial(?string $descripcionInicial): static
  110. {
  111. $this->descripcionInicial = $descripcionInicial;
  112. return $this;
  113. }
  114. public function getOperacionRealizada(): ?string
  115. {
  116. return $this->operacionRealizada;
  117. }
  118. public function setOperacionRealizada(?string $operacionRealizada): static
  119. {
  120. $this->operacionRealizada = $operacionRealizada;
  121. return $this;
  122. }
  123. public function getDescripcionPractica(): ?string
  124. {
  125. return $this->descripcionPractica;
  126. }
  127. public function setDescripcionPractica(?string $descripcionPractica): static
  128. {
  129. $this->descripcionPractica = $descripcionPractica;
  130. return $this;
  131. }
  132. public function getCosto(): ?float
  133. {
  134. return $this->costo;
  135. }
  136. public function setCosto(?float $costo): static
  137. {
  138. $this->costo = $costo;
  139. return $this;
  140. }
  141. public function getEstado(): ?string
  142. {
  143. return $this->estado;
  144. }
  145. public function setEstado(?string $estado): static
  146. {
  147. $this->estado = $estado;
  148. return $this;
  149. }
  150. public function getCreatedAt()
  151. {
  152. return $this->createdAt;
  153. }
  154. public function setCreatedAt($createdAt): static
  155. {
  156. $this->createdAt = $createdAt;
  157. return $this;
  158. }
  159. public function getUpdatedAt()
  160. {
  161. return $this->updatedAt;
  162. }
  163. public function setUpdatedAt($updatedAt): static
  164. {
  165. $this->updatedAt = $updatedAt;
  166. return $this;
  167. }
  168. public function getVetformId(): ?VetFormView
  169. {
  170. return $this->vetformId;
  171. }
  172. public function setVetformId(?VetFormView $vetformId): static
  173. {
  174. $this->vetformId = $vetformId;
  175. return $this;
  176. }
  177. public function getSiniestroId(): ?SiniestroView
  178. {
  179. return $this->siniestroId;
  180. }
  181. public function setSiniestroId(?SiniestroView $siniestroId): static
  182. {
  183. $this->siniestroId = $siniestroId;
  184. return $this;
  185. }
  186. public function getVetformIndicador(): ?VetFormView
  187. {
  188. return $this->vetformIndicador;
  189. }
  190. public function setVetformIndicador(?VetFormView $vetformIndicador): static
  191. {
  192. $this->vetformIndicador = $vetformIndicador;
  193. return $this;
  194. }
  195. /**
  196. * @return Collection<int, EventosSubVetformView>
  197. */
  198. public function getEventosSubVetform(): Collection
  199. {
  200. return $this->eventosSubVetform;
  201. }
  202. public function addEventosSubVetform(EventosSubVetformView $eventosSubVetform): static
  203. {
  204. if (!$this->eventosSubVetform->contains($eventosSubVetform)) {
  205. $this->eventosSubVetform->add($eventosSubVetform);
  206. $eventosSubVetform->setCirugiaMascotaId($this);
  207. }
  208. return $this;
  209. }
  210. public function removeEventosSubVetform(EventosSubVetformView $eventosSubVetform): static
  211. {
  212. if ($this->eventosSubVetform->removeElement($eventosSubVetform)) {
  213. // set the owning side to null (unless already changed)
  214. if ($eventosSubVetform->getCirugiaMascotaId() === $this) {
  215. $eventosSubVetform->setCirugiaMascotaId(null);
  216. }
  217. }
  218. return $this;
  219. }
  220. }