src/Entity/ParticipanteChat.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Entity
  8. */
  9. class ParticipanteChat
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\Column(type="integer")
  14. * @ORM\GeneratedValue(strategy="AUTO")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\Column(type="string", nullable=true)
  19. */
  20. private $participante;
  21. /**
  22. * @ORM\Column(type="string", nullable=true)
  23. */
  24. private $uuid;
  25. /**
  26. * @ORM\ManyToOne(targetEntity=\App\Entity\Chat::class, inversedBy="participanteChats")
  27. * @ORM\JoinColumn(name="chat_id", referencedColumnName="id")
  28. */
  29. private $chat;
  30. public function getId(): ?int
  31. {
  32. return $this->id;
  33. }
  34. public function setId($id)
  35. {
  36. $this->id = $id;
  37. return $this;
  38. }
  39. public function getParticipante(): ?string
  40. {
  41. return $this->participante;
  42. }
  43. public function setParticipante(?string $participante): static
  44. {
  45. $this->participante = $participante;
  46. return $this;
  47. }
  48. public function getUuid(): ?string
  49. {
  50. return $this->uuid;
  51. }
  52. public function setUuid(?string $uuid): static
  53. {
  54. $this->uuid = $uuid;
  55. return $this;
  56. }
  57. public function getChat(): ?Chat
  58. {
  59. return $this->chat;
  60. }
  61. public function setChat(?Chat $chat): static
  62. {
  63. $this->chat = $chat;
  64. return $this;
  65. }
  66. }