src/Entity/Mensaje.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7. * @ORM\Entity
  8. * @ORM\Table(name="mensaje")
  9. */
  10. class Mensaje
  11. {
  12. /**
  13. * @ORM\Id
  14. * @ORM\Column(type="integer")
  15. * @ORM\GeneratedValue(strategy="AUTO")
  16. */
  17. private $id;
  18. /**
  19. * @ORM\Column(type="integer", nullable=true, name="participante_en_conversacion_propietario_contenido")
  20. */
  21. private $participanteEnConversacionPropietarioContenido;
  22. /**
  23. * @ORM\Column(type="integer", nullable=true, name="participante_en_conversacion_conversacion")
  24. */
  25. private $participanteEnConversacionConversacion;
  26. /**
  27. * @ORM\Column(type="string", nullable=false)
  28. */
  29. private $texto;
  30. /**
  31. * @ORM\Column(type="date", nullable=false, name="fecha_envio")
  32. */
  33. private $fechaEnvio;
  34. /**
  35. * @ORM\Column(type="boolean", nullable=true)
  36. */
  37. private $leido;
  38. /**
  39. * @ORM\Column(type="string", nullable=true)
  40. */
  41. private $tipo;
  42. /**
  43. * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  44. */
  45. private $deletedAt;
  46. /**
  47. * @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2024-01-01 00:00:00"})
  48. * @Gedmo\Timestampable(on="update")
  49. */
  50. private $updatedAt;
  51. /**
  52. * @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2024-01-01 00:00:00"})
  53. * @Gedmo\Timestampable(on="create")
  54. */
  55. private $createdAt;
  56. public function getId(): ?int
  57. {
  58. return $this->id;
  59. }
  60. public function setId($id)
  61. {
  62. $this->id = $id;
  63. return $this;
  64. }
  65. public function getParticipanteEnConversacionPropietarioContenido(): ?int
  66. {
  67. return $this->participanteEnConversacionPropietarioContenido;
  68. }
  69. public function setParticipanteEnConversacionPropietarioContenido(?int $participanteEnConversacionPropietarioContenido): static
  70. {
  71. $this->participanteEnConversacionPropietarioContenido = $participanteEnConversacionPropietarioContenido;
  72. return $this;
  73. }
  74. public function getParticipanteEnConversacionConversacion(): ?int
  75. {
  76. return $this->participanteEnConversacionConversacion;
  77. }
  78. public function setParticipanteEnConversacionConversacion(?int $participanteEnConversacionConversacion): static
  79. {
  80. $this->participanteEnConversacionConversacion = $participanteEnConversacionConversacion;
  81. return $this;
  82. }
  83. public function getTexto(): ?string
  84. {
  85. return $this->texto;
  86. }
  87. public function setTexto(string $texto): static
  88. {
  89. $this->texto = $texto;
  90. return $this;
  91. }
  92. public function getFechaEnvio(): ?\DateTimeInterface
  93. {
  94. return $this->fechaEnvio;
  95. }
  96. public function setFechaEnvio(\DateTimeInterface $fechaEnvio): static
  97. {
  98. $this->fechaEnvio = $fechaEnvio;
  99. return $this;
  100. }
  101. public function isLeido(): ?bool
  102. {
  103. return $this->leido;
  104. }
  105. public function setLeido(?bool $leido): static
  106. {
  107. $this->leido = $leido;
  108. return $this;
  109. }
  110. public function getTipo(): ?string
  111. {
  112. return $this->tipo;
  113. }
  114. public function setTipo(?string $tipo): static
  115. {
  116. $this->tipo = $tipo;
  117. return $this;
  118. }
  119. public function getDeletedAt(): ?\DateTimeInterface
  120. {
  121. return $this->deletedAt;
  122. }
  123. public function setDeletedAt(?\DateTimeInterface $deletedAt): static
  124. {
  125. $this->deletedAt = $deletedAt;
  126. return $this;
  127. }
  128. public function getUpdatedAt(): ?\DateTimeInterface
  129. {
  130. return $this->updatedAt;
  131. }
  132. public function setUpdatedAt(\DateTimeInterface $updatedAt): static
  133. {
  134. $this->updatedAt = $updatedAt;
  135. return $this;
  136. }
  137. public function getCreatedAt(): ?\DateTimeInterface
  138. {
  139. return $this->createdAt;
  140. }
  141. public function setCreatedAt(\DateTimeInterface $createdAt): static
  142. {
  143. $this->createdAt = $createdAt;
  144. return $this;
  145. }
  146. }