src/Entity/Message.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MessageRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=MessageRepository::class)
  7. */
  8. class Message
  9. {
  10. /**
  11. * @ORM\Id()
  12. * @ORM\GeneratedValue()
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Utilisateur::class, inversedBy="messages")
  18. * @ORM\JoinColumn(name="agent")
  19. */
  20. private $agent;
  21. /**
  22. * @ORM\ManyToOne(targetEntity=Apprenant::class, inversedBy="messages")
  23. * @ORM\JoinColumn(name="apprenant")
  24. */
  25. private $apprenant;
  26. /**
  27. * @ORM\Column(type="string", length=255)
  28. */
  29. private $emetteur;
  30. /**
  31. * @ORM\Column(type="text")
  32. */
  33. private $corps;
  34. /**
  35. * @ORM\Column(type="string", length=255)
  36. */
  37. private $recepteur;
  38. /**
  39. * @ORM\Column(type="string", length=255)
  40. */
  41. private $date;
  42. public function getId(): ?int
  43. {
  44. return $this->id;
  45. }
  46. public function getAgent(): ?Utilisateur
  47. {
  48. return $this->agent;
  49. }
  50. public function setAgent(?Utilisateur $agent): self
  51. {
  52. $this->agent = $agent;
  53. return $this;
  54. }
  55. public function getApprenant(): ?Apprenant
  56. {
  57. return $this->apprenant;
  58. }
  59. public function setApprenant(?Apprenant $apprenant): self
  60. {
  61. $this->apprenant = $apprenant;
  62. return $this;
  63. }
  64. public function getEmetteur(): ?string
  65. {
  66. return $this->emetteur;
  67. }
  68. public function setEmetteur(string $emetteur): self
  69. {
  70. $this->emetteur = $emetteur;
  71. return $this;
  72. }
  73. public function getCorps(): ?string
  74. {
  75. return $this->corps;
  76. }
  77. public function setCorps(string $corps): self
  78. {
  79. $this->corps = $corps;
  80. return $this;
  81. }
  82. public function getRecepteur(): ?string
  83. {
  84. return $this->recepteur;
  85. }
  86. public function setRecepteur(string $recepteur): self
  87. {
  88. $this->recepteur = $recepteur;
  89. return $this;
  90. }
  91. public function getDate(): ?string
  92. {
  93. return $this->date;
  94. }
  95. public function setDate(string $date): self
  96. {
  97. $this->date = $date;
  98. return $this;
  99. }
  100. }