src/Entity/Fielpet/View/EstudioMascotaView.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. * EstudioMascotaView
  9. *
  10. * @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"})})
  11. * @ORM\Entity
  12. */
  13. class EstudioMascotaView
  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="EstudioMascota_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="tipo_estudio", type="string", length=255, nullable=true)
  34. */
  35. private $tipoEstudio;
  36. /**
  37. * @var float|null
  38. *
  39. * @ORM\Column(name="costo", type="float", precision=10, scale=0, nullable=true)
  40. */
  41. private $costo;
  42. /**
  43. * @var string|null
  44. *
  45. * @ORM\Column(name="estado", type="string", length=255, nullable=true)
  46. */
  47. private $estado;
  48. /**
  49. * @var string|null
  50. *
  51. * @ORM\Column(name="descripcion_estudio", type="string", length=255, nullable=true)
  52. */
  53. private $descripcionEstudio;
  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="estudioMascotaId", 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 setId(int $id): void
  106. {
  107. $this->id = $id;
  108. }
  109. public function getDescripcionInicial(): ?string
  110. {
  111. return $this->descripcionInicial;
  112. }
  113. public function setDescripcionInicial(?string $descripcionInicial): void
  114. {
  115. $this->descripcionInicial = $descripcionInicial;
  116. }
  117. public function getTipoEstudio(): ?string
  118. {
  119. return $this->tipoEstudio;
  120. }
  121. public function setTipoEstudio(?string $tipoEstudio): void
  122. {
  123. $this->tipoEstudio = $tipoEstudio;
  124. }
  125. public function getCosto(): ?float
  126. {
  127. return $this->costo;
  128. }
  129. public function setCosto(?float $costo): void
  130. {
  131. $this->costo = $costo;
  132. }
  133. public function getEstado(): ?string
  134. {
  135. return $this->estado;
  136. }
  137. public function setEstado(?string $estado): void
  138. {
  139. $this->estado = $estado;
  140. }
  141. public function getDescripcionEstudio(): ?string
  142. {
  143. return $this->descripcionEstudio;
  144. }
  145. public function setDescripcionEstudio(?string $descripcionEstudio): void
  146. {
  147. $this->descripcionEstudio = $descripcionEstudio;
  148. }
  149. public function getCreatedAt(): \DateTime
  150. {
  151. return $this->createdAt;
  152. }
  153. public function setCreatedAt(\DateTime $createdAt): void
  154. {
  155. $this->createdAt = $createdAt;
  156. }
  157. public function getUpdatedAt(): \DateTime
  158. {
  159. return $this->updatedAt;
  160. }
  161. public function setUpdatedAt(\DateTime $updatedAt): void
  162. {
  163. $this->updatedAt = $updatedAt;
  164. }
  165. public function getVetformId(): VetFormView
  166. {
  167. return $this->vetformId;
  168. }
  169. public function setVetformId(VetFormView $vetformId): void
  170. {
  171. $this->vetformId = $vetformId;
  172. }
  173. public function getSiniestroId(): SiniestroView
  174. {
  175. return $this->siniestroId;
  176. }
  177. public function setSiniestroId(SiniestroView $siniestroId): void
  178. {
  179. $this->siniestroId = $siniestroId;
  180. }
  181. public function getVetformIndicador(): VetFormView
  182. {
  183. return $this->vetformIndicador;
  184. }
  185. public function setVetformIndicador(VetFormView $vetformIndicador): void
  186. {
  187. $this->vetformIndicador = $vetformIndicador;
  188. }
  189. /**
  190. * @return Collection<int, EventosSubVetformView>
  191. */
  192. public function getEventosSubVetform(): Collection
  193. {
  194. return $this->eventosSubVetform;
  195. }
  196. public function addEventosSubVetform(EventosSubVetformView $eventosSubVetform): static
  197. {
  198. if (!$this->eventosSubVetform->contains($eventosSubVetform)) {
  199. $this->eventosSubVetform->add($eventosSubVetform);
  200. $eventosSubVetform->setEstudioMascotaId($this);
  201. }
  202. return $this;
  203. }
  204. public function removeEventosSubVetform(EventosSubVetformView $eventosSubVetform): static
  205. {
  206. if ($this->eventosSubVetform->removeElement($eventosSubVetform)) {
  207. // set the owning side to null (unless already changed)
  208. if ($eventosSubVetform->getEstudioMascotaId() === $this) {
  209. $eventosSubVetform->setEstudioMascotaId(null);
  210. }
  211. }
  212. return $this;
  213. }
  214. }