src/Entity/Historial.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use DateTimeInterface;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Uid\Uuid;
  6. /**
  7. * @ORM\Entity(readOnly=true)
  8. * @ORM\Table(name="historial")
  9. */
  10. class Historial
  11. {
  12. /**
  13. * @ORM\Id
  14. * @ORM\Column(type="uuid", unique=true)
  15. * @ORM\GeneratedValue(strategy="CUSTOM")
  16. * @ORM\CustomIdGenerator(class="doctrine.uuid_generator")
  17. */
  18. private $id = null;
  19. /** @ORM\Column(type="string", nullable=true) */
  20. private $codigo = null;
  21. /** @ORM\Column(type="string", nullable=true) */
  22. private $RIDperseo = null;
  23. /** @ORM\Column(type="integer", nullable=true) */
  24. private $marca_id = null;
  25. /** @ORM\Column(type="string", nullable=true) */
  26. private $marca = null;
  27. /** @ORM\Column(type="string", nullable=true) */
  28. private $modelo = null;
  29. /** @ORM\Column(type="string", nullable=true) */
  30. private $modelo1 = null;
  31. /** @ORM\Column(type="string", nullable=true) */
  32. private $modelo2 = null;
  33. /** @ORM\Column(type="string", nullable=true) */
  34. private $ref = null;
  35. /** @ORM\Column(type="string", nullable=true) */
  36. private $ref1 = null;
  37. /** @ORM\Column(type="string", nullable=true) */
  38. private $ref2 = null;
  39. /** @ORM\Column(type="string", nullable=true) */
  40. private $VIDperseo = null;
  41. /** @ORM\Column(type="datetime", nullable=true) */
  42. private $fecha_valoracion = null;
  43. /** @ORM\Column(type="float", precision=2, nullable=true) */
  44. private $precio_pagar = null;
  45. /** @ORM\Column(type="string", nullable=true) */
  46. private $OCIDperseo = null;
  47. /** @ORM\Column(type="datetime", nullable=true) */
  48. private $fecha_compra = null;
  49. /** @ORM\Column(type="float", precision=2, nullable=true) */
  50. private $precio_compra = null;
  51. /** @ORM\Column(type="string", nullable=true) */
  52. private $OVIDperseo = null;
  53. /** @ORM\Column(type="datetime", nullable=true) */
  54. private $fecha_venta = null;
  55. /** @ORM\Column(type="float", precision=2, nullable=true) */
  56. private $precio_venta = null;
  57. /** @ORM\Column(type="integer", nullable=true) */
  58. private $tiempo_en_espera = null;
  59. /** @ORM\Column(type="string", nullable=true) */
  60. private $PIDperseo = null;
  61. /** @ORM\Column(type="datetime", nullable=true) */
  62. private $fecha_anuncio = null;
  63. /** @ORM\Column(type="datetime", nullable=true) */
  64. private $fecha_promocion = null;
  65. /** @ORM\Column(type="float", precision=2, nullable=true) */
  66. private $precio_promocion = null;
  67. // ---- GETTERS & SETTERS ----
  68. public function getId(): ?Uuid
  69. {
  70. return $this->id;
  71. }
  72. public function setId(?string $id): self
  73. {
  74. $this->id = $id;
  75. return $this;
  76. }
  77. public function getCodigo(): ?string
  78. {
  79. return $this->codigo;
  80. }
  81. public function setCodigo(?string $codigo): self
  82. {
  83. $this->codigo = $codigo;
  84. return $this;
  85. }
  86. public function getRIDperseo(): ?string
  87. {
  88. return $this->RIDperseo;
  89. }
  90. public function setRIDperseo(?string $RIDperseo): self
  91. {
  92. $this->RIDperseo = $RIDperseo;
  93. return $this;
  94. }
  95. public function getMarcaId(): ?int
  96. {
  97. return $this->marca_id;
  98. }
  99. public function setMarcaId(?int $marca_id): self
  100. {
  101. $this->marca_id = $marca_id;
  102. return $this;
  103. }
  104. public function getMarca(): ?string
  105. {
  106. return $this->marca;
  107. }
  108. public function setMarca(?string $marca): self
  109. {
  110. $this->marca = $marca;
  111. return $this;
  112. }
  113. public function getModelo(): ?string
  114. {
  115. return $this->modelo;
  116. }
  117. public function setModelo(?string $modelo): self
  118. {
  119. $this->modelo = $modelo;
  120. return $this;
  121. }
  122. public function getModelo1(): ?string
  123. {
  124. return $this->modelo1;
  125. }
  126. public function setModelo1(?string $modelo1): self
  127. {
  128. $this->modelo1 = $modelo1;
  129. return $this;
  130. }
  131. public function getModelo2(): ?string
  132. {
  133. return $this->modelo2;
  134. }
  135. public function setModelo2(?string $modelo2): self
  136. {
  137. $this->modelo2 = $modelo2;
  138. return $this;
  139. }
  140. public function getRef(): ?string
  141. {
  142. return $this->ref;
  143. }
  144. public function setRef(?string $ref): self
  145. {
  146. $this->ref = $ref;
  147. return $this;
  148. }
  149. public function getRef1(): ?string
  150. {
  151. return $this->ref1;
  152. }
  153. public function setRef1(?string $ref1): self
  154. {
  155. $this->ref1 = $ref1;
  156. return $this;
  157. }
  158. public function getRef2(): ?string
  159. {
  160. return $this->ref2;
  161. }
  162. public function setRef2(?string $ref2): self
  163. {
  164. $this->ref2 = $ref2;
  165. return $this;
  166. }
  167. public function getVIDperseo(): ?string
  168. {
  169. return $this->VIDperseo;
  170. }
  171. public function setVIDperseo(?string $VIDperseo): self
  172. {
  173. $this->VIDperseo = $VIDperseo;
  174. return $this;
  175. }
  176. public function getFechaValoracion(): ?DateTimeInterface
  177. {
  178. return $this->fecha_valoracion;
  179. }
  180. public function setFechaValoracion(?DateTimeInterface $fecha_valoracion): self
  181. {
  182. $this->fecha_valoracion = $fecha_valoracion;
  183. return $this;
  184. }
  185. public function getPrecioPagar(): ?float
  186. {
  187. return $this->precio_pagar;
  188. }
  189. public function setPrecioPagar(?float $precio_pagar): self
  190. {
  191. $this->precio_pagar = $precio_pagar;
  192. return $this;
  193. }
  194. public function getOCIDperseo(): ?string
  195. {
  196. return $this->OCIDperseo;
  197. }
  198. public function setOCIDperseo(?string $OCIDperseo): self
  199. {
  200. $this->OCIDperseo = $OCIDperseo;
  201. return $this;
  202. }
  203. public function getFechaCompra(): ?DateTimeInterface
  204. {
  205. return $this->fecha_compra;
  206. }
  207. public function setFechaCompra(?DateTimeInterface $fecha_compra): self
  208. {
  209. $this->fecha_compra = $fecha_compra;
  210. return $this;
  211. }
  212. public function getPrecioCompra(): ?float
  213. {
  214. return $this->precio_compra;
  215. }
  216. public function setPrecioCompra(?float $precio_compra): self
  217. {
  218. $this->precio_compra = $precio_compra;
  219. return $this;
  220. }
  221. public function getOVIDperseo(): ?string
  222. {
  223. return $this->OVIDperseo;
  224. }
  225. public function setOVIDperseo(?string $OVIDperseo): self
  226. {
  227. $this->OVIDperseo = $OVIDperseo;
  228. return $this;
  229. }
  230. public function getFechaVenta(): ?DateTimeInterface
  231. {
  232. return $this->fecha_venta;
  233. }
  234. public function setFechaVenta(?DateTimeInterface $fecha_venta): self
  235. {
  236. $this->fecha_venta = $fecha_venta;
  237. return $this;
  238. }
  239. public function getPrecioVenta(): ?float
  240. {
  241. return $this->precio_venta;
  242. }
  243. public function setPrecioVenta(?float $precio_venta): self
  244. {
  245. $this->precio_venta = $precio_venta;
  246. return $this;
  247. }
  248. public function getTiempoEnEspera(): ?int
  249. {
  250. return $this->tiempo_en_espera;
  251. }
  252. public function setTiempoEnEspera(?int $tiempo_en_espera): self
  253. {
  254. $this->tiempo_en_espera = $tiempo_en_espera;
  255. return $this;
  256. }
  257. public function getPIDperseo(): ?string
  258. {
  259. return $this->PIDperseo;
  260. }
  261. public function setPIDperseo(?string $PIDperseo): self
  262. {
  263. $this->PIDperseo = $PIDperseo;
  264. return $this;
  265. }
  266. public function getFechaAnuncio(): ?DateTimeInterface
  267. {
  268. return $this->fecha_anuncio;
  269. }
  270. public function setFechaAnuncio(?DateTimeInterface $fecha_anuncio): self
  271. {
  272. $this->fecha_anuncio = $fecha_anuncio;
  273. return $this;
  274. }
  275. public function getFechaPromocion(): ?DateTimeInterface
  276. {
  277. return $this->fecha_promocion;
  278. }
  279. public function setFechaPromocion(?DateTimeInterface $fecha_promocion): self
  280. {
  281. $this->fecha_promocion = $fecha_promocion;
  282. return $this;
  283. }
  284. public function getPrecioPromocion(): ?float
  285. {
  286. return $this->precio_promocion;
  287. }
  288. public function setPrecioPromocion(?float $precio_promocion): self
  289. {
  290. $this->precio_promocion = $precio_promocion;
  291. return $this;
  292. }
  293. }