src/Entity/Referencia.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Symfony\Component\Uid\Uuid;
  6. /**
  7. * @ORM\Entity(repositoryClass="App\Repository\ReferenciaRepository")
  8. * @ORM\Table(name="referencia", schema="perseo")
  9. * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  10. */
  11. class Referencia
  12. {
  13. /**
  14. * @ORM\Id
  15. * @ORM\Column(type="uuid", unique=true)
  16. * @ORM\GeneratedValue(strategy="CUSTOM")
  17. * @ORM\CustomIdGenerator(class="doctrine.uuid_generator")
  18. */
  19. protected $id;
  20. /**
  21. * @ORM\Column(type="boolean", nullable=true)
  22. */
  23. protected $caja;
  24. /**
  25. * @ORM\Column(type="boolean", nullable=true)
  26. */
  27. protected $papeles;
  28. /**
  29. * @ORM\Column(type="float", nullable=true, precision=2)
  30. */
  31. protected $precio;
  32. /**
  33. * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  34. */
  35. protected $deletedAt;
  36. /**
  37. * @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2022-01-01 00:00:00"})
  38. * @Gedmo\Timestampable(on="update")
  39. */
  40. protected $updatedAt;
  41. /**
  42. * @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2022-01-01 00:00:00"})
  43. * @Gedmo\Timestampable(on="create")
  44. */
  45. protected $createdAt;
  46. /**
  47. * @ORM\ManyToOne(targetEntity="App\Entity\Canal", inversedBy="referencias")
  48. * @ORM\JoinColumn(name="canal_id", referencedColumnName="id")
  49. */
  50. protected $canal;
  51. /**
  52. * @ORM\ManyToOne(targetEntity="App\Entity\ValoracionesRelojes", inversedBy="referencias")
  53. * @ORM\JoinColumn(name="valoraciones_relojes_id", referencedColumnName="id")
  54. */
  55. protected $valoracionReloj;
  56. public function getId(): ?Uuid
  57. {
  58. return $this->id;
  59. }
  60. public function setId(int $id): self
  61. {
  62. $this->id = $id;
  63. return $this;
  64. }
  65. public function getCaja(): ?bool
  66. {
  67. return $this->caja;
  68. }
  69. public function setCaja(?bool $caja): self
  70. {
  71. $this->caja = $caja;
  72. return $this;
  73. }
  74. public function getPapeles(): ?bool
  75. {
  76. return $this->papeles;
  77. }
  78. public function setPapeles(?bool $papeles): self
  79. {
  80. $this->papeles = $papeles;
  81. return $this;
  82. }
  83. public function getPrecio(): ?float
  84. {
  85. return $this->precio;
  86. }
  87. public function setPrecio(?float $precio): self
  88. {
  89. $this->precio = $precio;
  90. return $this;
  91. }
  92. public function getDeletedAt(): ?\DateTimeInterface
  93. {
  94. return $this->deletedAt;
  95. }
  96. public function setDeletedAt(?\DateTimeInterface $deletedAt): self
  97. {
  98. $this->deletedAt = $deletedAt;
  99. return $this;
  100. }
  101. public function getUpdatedAt(): ?\DateTimeInterface
  102. {
  103. return $this->updatedAt;
  104. }
  105. public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  106. {
  107. $this->updatedAt = $updatedAt;
  108. return $this;
  109. }
  110. public function getCreatedAt(): ?\DateTimeInterface
  111. {
  112. return $this->createdAt;
  113. }
  114. public function setCreatedAt(\DateTimeInterface $createdAt): self
  115. {
  116. $this->createdAt = $createdAt;
  117. return $this;
  118. }
  119. public function getCanal(): ?Canal
  120. {
  121. return $this->canal;
  122. }
  123. public function setCanal(?Canal $canal): self
  124. {
  125. $this->canal = $canal;
  126. return $this;
  127. }
  128. public function getValoracionReloj(): ?ValoracionesRelojes
  129. {
  130. return $this->valoracionReloj;
  131. }
  132. public function setValoracionReloj(?ValoracionesRelojes $valoracionReloj): self
  133. {
  134. $this->valoracionReloj = $valoracionReloj;
  135. return $this;
  136. }
  137. }