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

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fielpet\View;
  3. use App\Entity\Fielpet\View\MascotasView;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * SiniestroView
  8. *
  9. * @ORM\Table(name="siniestro_view", indexes={@ORM\Index(name="IDX_2DA4EBD99F276F38", columns={"mascotaId"})})
  10. * @ORM\Entity
  11. */
  12. class SiniestroView
  13. {
  14. const COMPANIA_DAWER = 1;
  15. const COMPANIA_BBVA = 2;
  16. /**
  17. * @var int
  18. *
  19. * @ORM\Column(name="id", type="integer", nullable=false)
  20. * @ORM\Id
  21. * @ORM\GeneratedValue(strategy="SEQUENCE")
  22. * @ORM\SequenceGenerator(sequenceName="Siniestro_id_seq", allocationSize=1, initialValue=1)
  23. */
  24. private $id;
  25. /**
  26. * @var \DateTime|null
  27. *
  28. * @ORM\Column(name="fecha_carga", type="custom_datetimetz", nullable=true)
  29. */
  30. private $fechaCarga;
  31. /**
  32. * @var string|null
  33. *
  34. * @ORM\Column(name="denuncia_administrativa", type="string", length=255, nullable=true)
  35. */
  36. private $denunciaAdministrativa;
  37. /**
  38. * @var string|null
  39. *
  40. * @ORM\Column(name="estado", type="string", length=255, nullable=true)
  41. */
  42. private $estado;
  43. /**
  44. * @var float|null
  45. *
  46. * @ORM\Column(name="monto", type="float", precision=10, scale=0, nullable=true)
  47. */
  48. private $monto;
  49. /**
  50. * @var \DateTime|null
  51. *
  52. * @ORM\Column(name="fecha_final", type="custom_datetimetz", nullable=true)
  53. */
  54. private $fechaFinal;
  55. /**
  56. * @var \DateTime
  57. *
  58. * @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
  59. */
  60. private $createdAt;
  61. /**
  62. * @var \DateTime
  63. *
  64. * @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
  65. */
  66. private $updatedAt;
  67. /**
  68. * @var int|null
  69. *
  70. * @ORM\Column(name="bbva_siniestro_id", type="integer", nullable=true)
  71. */
  72. private $bbvaSiniestroId;
  73. /**
  74. * @var int|null
  75. *
  76. * @ORM\Column(name="compania", type="integer", nullable=true)
  77. */
  78. private $compania;
  79. /**
  80. * @var \DateTime|null
  81. *
  82. * @ORM\Column(name="bbva_siniestro_id_date", type="custom_datetimetz", nullable=true)
  83. */
  84. private $bbvaSiniestroIdDate;
  85. /**
  86. * @var MascotasView
  87. *
  88. * @ORM\ManyToOne(targetEntity="MascotasView")
  89. * @ORM\JoinColumns({
  90. * @ORM\JoinColumn(name="mascota_id", referencedColumnName="id")
  91. * })
  92. */
  93. private $mascotaId;
  94. /**
  95. * @var string|null
  96. *
  97. * @ORM\Column(name="tipo", type="string", length=255, nullable=true)
  98. */
  99. private $tipo;
  100. public function getId(): ?int
  101. {
  102. return $this->id;
  103. }
  104. public function getFechaCarga()
  105. {
  106. return $this->fechaCarga;
  107. }
  108. public function setFechaCarga($fechaCarga): static
  109. {
  110. $this->fechaCarga = $fechaCarga;
  111. return $this;
  112. }
  113. public function getDenunciaAdministrativa(): ?string
  114. {
  115. return $this->denunciaAdministrativa;
  116. }
  117. public function setDenunciaAdministrativa(?string $denunciaAdministrativa): static
  118. {
  119. $this->denunciaAdministrativa = $denunciaAdministrativa;
  120. return $this;
  121. }
  122. public function getEstado(): ?string
  123. {
  124. return $this->estado;
  125. }
  126. public function setEstado(?string $estado): static
  127. {
  128. $this->estado = $estado;
  129. return $this;
  130. }
  131. public function getMonto(): ?float
  132. {
  133. return $this->monto;
  134. }
  135. public function setMonto(?float $monto): static
  136. {
  137. $this->monto = $monto;
  138. return $this;
  139. }
  140. public function getFechaFinal()
  141. {
  142. return $this->fechaFinal;
  143. }
  144. public function setFechaFinal($fechaFinal): static
  145. {
  146. $this->fechaFinal = $fechaFinal;
  147. return $this;
  148. }
  149. public function getCreatedAt()
  150. {
  151. return $this->createdAt;
  152. }
  153. public function setCreatedAt($createdAt): static
  154. {
  155. $this->createdAt = $createdAt;
  156. return $this;
  157. }
  158. public function getUpdatedAt()
  159. {
  160. return $this->updatedAt;
  161. }
  162. public function setUpdatedAt($updatedAt): static
  163. {
  164. $this->updatedAt = $updatedAt;
  165. return $this;
  166. }
  167. public function getBbvaSiniestroId(): ?int
  168. {
  169. return $this->bbvaSiniestroId;
  170. }
  171. public function setBbvaSiniestroId(?int $bbvaSiniestroId): static
  172. {
  173. $this->bbvaSiniestroId = $bbvaSiniestroId;
  174. return $this;
  175. }
  176. public function getBbvaSiniestroIdDate()
  177. {
  178. return $this->bbvaSiniestroIdDate;
  179. }
  180. public function setBbvaSiniestroIdDate($bbvaSiniestroIdDate): static
  181. {
  182. $this->bbvaSiniestroIdDate = $bbvaSiniestroIdDate;
  183. return $this;
  184. }
  185. public function getMascotaId(): ?MascotasView
  186. {
  187. return $this->mascotaId;
  188. }
  189. public function setMascotaId(?MascotasView $mascotaId): static
  190. {
  191. $this->mascotaId = $mascotaId;
  192. return $this;
  193. }
  194. public function getCompania(): ?int
  195. {
  196. return $this->compania;
  197. }
  198. public function setCompania(?int $compania): self
  199. {
  200. $this->compania = $compania;
  201. return $this;
  202. }
  203. public function getTipo(): ?string
  204. {
  205. return $this->tipo;
  206. }
  207. public function setTipo(?string $tipo): self
  208. {
  209. $this->tipo = $tipo;
  210. return $this;
  211. }
  212. }