src/Entity/ChatCensorshipJournal.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ChatCensorshipJournalRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7. * @ORM\Entity(repositoryClass=ChatCensorshipJournalRepository::class)
  8. */
  9. class ChatCensorshipJournal
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. * @Groups({"CensorshipList"})
  16. */
  17. private $id;
  18. /**
  19. * @ORM\Column(type="datetime", nullable=true)
  20. * @Groups({"CensorshipList"})
  21. */
  22. private $createdAt;
  23. /**
  24. * @ORM\ManyToOne(targetEntity=Teacher::class, inversedBy="chatCensorshipJournals")
  25. * @Groups({"CensorshipList"})
  26. */
  27. private $teacher;
  28. /**
  29. * @ORM\ManyToOne(targetEntity=Guardian::class, inversedBy="chatCensorshipJournals")
  30. * @Groups({"CensorshipList"})
  31. */
  32. private $guardian;
  33. /**
  34. * @ORM\Column(type="text", nullable=true)
  35. * @Groups({"CensorshipList"})
  36. */
  37. private $message;
  38. /**
  39. * @ORM\Column(type="string", length=255, nullable=true)
  40. * @Groups({"CensorshipList"})
  41. */
  42. private $status;
  43. /**
  44. * @ORM\ManyToOne(targetEntity=Admin::class, inversedBy="chatCensorshipJournals")
  45. * @Groups({"CensorshipList"})
  46. */
  47. private $hr;
  48. /**
  49. * @ORM\Column(type="text", nullable=true)
  50. * @Groups({"CensorshipList"})
  51. */
  52. private $comment;
  53. /**
  54. * @ORM\Column(type="string", length=255, nullable=true)
  55. * @Groups({"CensorshipList"})
  56. */
  57. private $sentBy;
  58. public function getId(): ?int
  59. {
  60. return $this->id;
  61. }
  62. public function getCreatedAt(): ?\DateTimeInterface
  63. {
  64. return $this->createdAt;
  65. }
  66. public function setCreatedAt(?\DateTimeInterface $createdAt): self
  67. {
  68. $this->createdAt = $createdAt;
  69. return $this;
  70. }
  71. public function getTeacher(): ?Teacher
  72. {
  73. return $this->teacher;
  74. }
  75. public function setTeacher(?Teacher $teacher): self
  76. {
  77. $this->teacher = $teacher;
  78. return $this;
  79. }
  80. public function getGuardian(): ?Guardian
  81. {
  82. return $this->guardian;
  83. }
  84. public function setGuardian(?Guardian $guardian): self
  85. {
  86. $this->guardian = $guardian;
  87. return $this;
  88. }
  89. public function getMessage(): ?string
  90. {
  91. return $this->message;
  92. }
  93. public function setMessage(?string $message): self
  94. {
  95. $this->message = $message;
  96. return $this;
  97. }
  98. public function getStatus(): ?string
  99. {
  100. return $this->status;
  101. }
  102. public function setStatus(?string $status): self
  103. {
  104. $this->status = $status;
  105. return $this;
  106. }
  107. public function getHr(): ?Admin
  108. {
  109. return $this->hr;
  110. }
  111. public function setHr(?Admin $hr): self
  112. {
  113. $this->hr = $hr;
  114. return $this;
  115. }
  116. public function getComment(): ?string
  117. {
  118. return $this->comment;
  119. }
  120. public function setComment(?string $comment): self
  121. {
  122. $this->comment = $comment;
  123. return $this;
  124. }
  125. public function getSentBy(): ?string
  126. {
  127. return $this->sentBy;
  128. }
  129. public function setSentBy(?string $sentBy): self
  130. {
  131. $this->sentBy = $sentBy;
  132. return $this;
  133. }
  134. }