src/Entity/Fielpet/View/ConsultaView.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. * ConsultaView
  9. *
  10. * @ORM\Table(name="consulta_view", indexes={@ORM\Index(name="IDX_5F885D884F531111", columns={"vetFormId"}), @ORM\Index(name="IDX_5F885D8852066F5", columns={"siniestroId"}), @ORM\Index(name="IDX_5F885D8859EDB958", columns={"vetFormIndicador"})})
  11. * @ORM\Entity
  12. */
  13. class ConsultaView
  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="Consulta_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="motivo", type="string", length=255, nullable=true)
  34. */
  35. private $motivo;
  36. /**
  37. * @var \DateTime|null
  38. *
  39. * @ORM\Column(name="inicio", type="custom_datetimetz", nullable=true)
  40. */
  41. private $inicio;
  42. /**
  43. * @var string|null
  44. *
  45. * @ORM\Column(name="costo", type="string", length=255, 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 bool|null
  56. *
  57. * @ORM\Column(name="persistencia", type="boolean", nullable=true)
  58. */
  59. private $persistencia = false;
  60. /**
  61. * @var float|null
  62. *
  63. * @ORM\Column(name="monto", type="float", precision=10, scale=0, nullable=true)
  64. */
  65. private $monto;
  66. /**
  67. * @var bool|null
  68. *
  69. * @ORM\Column(name="primera_consulta", type="boolean", nullable=true, options={"default"="1"})
  70. */
  71. private $primeraConsulta = true;
  72. /**
  73. * @var string|null
  74. *
  75. * @ORM\Column(name="modalidad", type="string", length=255, nullable=true)
  76. */
  77. private $modalidad;
  78. /**
  79. * @var \DateTime|null
  80. *
  81. * @ORM\Column(name="inicio_sintomas", type="custom_datetimetz", nullable=true)
  82. */
  83. private $inicioSintomas;
  84. /**
  85. * @var \DateTime
  86. *
  87. * @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
  88. */
  89. private $createdAt;
  90. /**
  91. * @var \DateTime
  92. *
  93. * @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
  94. */
  95. private $updatedAt;
  96. /**
  97. * @var VetFormView
  98. *
  99. * @ORM\ManyToOne(targetEntity="VetFormView")
  100. * @ORM\JoinColumns({
  101. * @ORM\JoinColumn(name="vetform_id", referencedColumnName="id")
  102. * })
  103. */
  104. private $vetformId;
  105. /**
  106. * @var SiniestroView
  107. *
  108. * @ORM\ManyToOne(targetEntity="SiniestroView")
  109. * @ORM\JoinColumns({
  110. * @ORM\JoinColumn(name="siniestro_id", referencedColumnName="id")
  111. * })
  112. */
  113. private $siniestroId;
  114. /**
  115. * @var VetFormView
  116. *
  117. * @ORM\ManyToOne(targetEntity="VetFormView")
  118. * @ORM\JoinColumns({
  119. * @ORM\JoinColumn(name="vetform_indicador", referencedColumnName="id")
  120. * })
  121. */
  122. private $vetformIndicador;
  123. /**
  124. * @ORM\OneToMany(targetEntity="EventosSubVetformView", mappedBy="consultaId", cascade={"persist"})
  125. **/
  126. private $eventosSubVetform;
  127. public function __construct()
  128. {
  129. $this->eventosSubVetform = new \Doctrine\Common\Collections\ArrayCollection();
  130. }
  131. public function getId(): int
  132. {
  133. return $this->id;
  134. }
  135. public function setId(int $id): void
  136. {
  137. $this->id = $id;
  138. }
  139. public function getDescripcionInicial(): ?string
  140. {
  141. return $this->descripcionInicial;
  142. }
  143. public function setDescripcionInicial(?string $descripcionInicial): void
  144. {
  145. $this->descripcionInicial = $descripcionInicial;
  146. }
  147. public function getMotivo(): ?string
  148. {
  149. return $this->motivo;
  150. }
  151. public function setMotivo(?string $motivo): void
  152. {
  153. $this->motivo = $motivo;
  154. }
  155. public function getInicio(): ?\DateTime
  156. {
  157. return $this->inicio;
  158. }
  159. public function setInicio(?\DateTime $inicio): void
  160. {
  161. $this->inicio = $inicio;
  162. }
  163. public function getCosto(): ?string
  164. {
  165. return $this->costo;
  166. }
  167. public function setCosto(?string $costo): void
  168. {
  169. $this->costo = $costo;
  170. }
  171. public function getEstado(): ?string
  172. {
  173. return $this->estado;
  174. }
  175. public function setEstado(?string $estado): void
  176. {
  177. $this->estado = $estado;
  178. }
  179. public function getPersistencia(): ?bool
  180. {
  181. return $this->persistencia;
  182. }
  183. public function setPersistencia(?bool $persistencia): void
  184. {
  185. $this->persistencia = $persistencia;
  186. }
  187. public function getMonto(): ?float
  188. {
  189. return $this->monto;
  190. }
  191. public function setMonto(?float $monto): void
  192. {
  193. $this->monto = $monto;
  194. }
  195. public function getPrimeraConsulta(): ?bool
  196. {
  197. return $this->primeraConsulta;
  198. }
  199. public function setPrimeraConsulta(?bool $primeraConsulta): void
  200. {
  201. $this->primeraConsulta = $primeraConsulta;
  202. }
  203. public function getModalidad(): ?string
  204. {
  205. return $this->modalidad;
  206. }
  207. public function setModalidad(?string $modalidad): void
  208. {
  209. $this->modalidad = $modalidad;
  210. }
  211. public function getInicioSintomas(): ?\DateTime
  212. {
  213. return $this->inicioSintomas;
  214. }
  215. public function setInicioSintomas(?\DateTime $inicioSintomas): void
  216. {
  217. $this->inicioSintomas = $inicioSintomas;
  218. }
  219. public function getCreatedAt(): \DateTime
  220. {
  221. return $this->createdAt;
  222. }
  223. public function setCreatedAt(\DateTime $createdAt): void
  224. {
  225. $this->createdAt = $createdAt;
  226. }
  227. public function getUpdatedAt(): \DateTime
  228. {
  229. return $this->updatedAt;
  230. }
  231. public function setUpdatedAt(\DateTime $updatedAt): void
  232. {
  233. $this->updatedAt = $updatedAt;
  234. }
  235. public function getVetformId(): VetFormView
  236. {
  237. return $this->vetformId;
  238. }
  239. public function setVetformId(VetFormView $vetformId): void
  240. {
  241. $this->vetformId = $vetformId;
  242. }
  243. public function getSiniestroId(): SiniestroView
  244. {
  245. return $this->siniestroId;
  246. }
  247. public function setSiniestroId(SiniestroView $siniestroId): void
  248. {
  249. $this->siniestroId = $siniestroId;
  250. }
  251. public function getVetformIndicador(): VetFormView
  252. {
  253. return $this->vetformIndicador;
  254. }
  255. public function setVetformIndicador(VetFormView $vetformIndicador): void
  256. {
  257. $this->vetformIndicador = $vetformIndicador;
  258. }
  259. public function isPersistencia(): ?bool
  260. {
  261. return $this->persistencia;
  262. }
  263. public function isPrimeraConsulta(): ?bool
  264. {
  265. return $this->primeraConsulta;
  266. }
  267. /**
  268. * @return Collection<int, EventosSubVetformView>
  269. */
  270. public function getEventosSubVetform(): Collection
  271. {
  272. return $this->eventosSubVetform;
  273. }
  274. public function addEventosSubVetform(EventosSubVetformView $eventosSubVetform): static
  275. {
  276. if (!$this->eventosSubVetform->contains($eventosSubVetform)) {
  277. $this->eventosSubVetform->add($eventosSubVetform);
  278. $eventosSubVetform->setConsultaId($this);
  279. }
  280. return $this;
  281. }
  282. public function removeEventosSubVetform(EventosSubVetformView $eventosSubVetform): static
  283. {
  284. if ($this->eventosSubVetform->removeElement($eventosSubVetform)) {
  285. // set the owning side to null (unless already changed)
  286. if ($eventosSubVetform->getConsultaId() === $this) {
  287. $eventosSubVetform->setConsultaId(null);
  288. }
  289. }
  290. return $this;
  291. }
  292. }