src/Entity/ModuleNotice.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ModuleNoticeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use JMS\Serializer\Annotation as Serializer;
  6. /**
  7. * @ORM\Entity(repositoryClass=ModuleNoticeRepository::class)
  8. * @Serializer\ExclusionPolicy("ALL")
  9. */
  10. class ModuleNotice extends BaseEntity
  11. {
  12. /**
  13. * @ORM\Id
  14. * @ORM\GeneratedValue
  15. * @ORM\Column(type="integer")
  16. */
  17. private $id;
  18. /**
  19. * @ORM\ManyToOne(targetEntity=Module::class, inversedBy="moduleNotices")
  20. */
  21. private $module;
  22. /**
  23. * @ORM\Column(type="boolean", nullable=true)
  24. */
  25. private $liked;
  26. /**
  27. * @ORM\Column(type="datetime", nullable=true)
  28. */
  29. private $likedAt;
  30. /**
  31. * @ORM\Column(type="integer", nullable=true)
  32. * @Serializer\Expose
  33. */
  34. private $note;
  35. /**
  36. * @ORM\Column(type="datetime", nullable=true)
  37. */
  38. private $notedAt;
  39. /**
  40. * @ORM\Column(type="text", nullable=true)
  41. * @Serializer\Expose
  42. */
  43. private $comment;
  44. /**
  45. * @ORM\Column(type="datetime", nullable=true)
  46. */
  47. private $commentedAt;
  48. /**
  49. * @ORM\Column(type="boolean", nullable=true)
  50. */
  51. private $isAnonymous;
  52. /**
  53. * @ORM\Column(type="boolean", nullable=true)
  54. */
  55. private $isPublished = false;
  56. /**
  57. * @ORM\Column(type="boolean", nullable=true)
  58. */
  59. private $isGeneral;
  60. /**
  61. * @ORM\Column(type="string", length=255, nullable=true)
  62. * @Serializer\Expose
  63. */
  64. private $source;
  65. public function getId(): ?int
  66. {
  67. return $this->id;
  68. }
  69. public function getModule(): ?Module
  70. {
  71. return $this->module;
  72. }
  73. public function setModule(?Module $module): self
  74. {
  75. $this->module = $module;
  76. return $this;
  77. }
  78. public function isLiked(): ?bool
  79. {
  80. return $this->liked;
  81. }
  82. public function setLiked(?bool $liked): self
  83. {
  84. $this->liked = $liked;
  85. return $this;
  86. }
  87. public function getLikedAt(): ?\DateTimeInterface
  88. {
  89. return $this->likedAt;
  90. }
  91. public function setLikedAt(?\DateTimeInterface $likedAt): self
  92. {
  93. $this->likedAt = $likedAt;
  94. return $this;
  95. }
  96. public function getNote(): ?int
  97. {
  98. return $this->note;
  99. }
  100. public function setNote(?int $note): self
  101. {
  102. $this->note = $note;
  103. return $this;
  104. }
  105. public function getNotedAt(): ?\DateTimeInterface
  106. {
  107. return $this->notedAt;
  108. }
  109. public function setNotedAt(?\DateTimeInterface $notedAt): self
  110. {
  111. $this->notedAt = $notedAt;
  112. return $this;
  113. }
  114. public function getComment(): ?string
  115. {
  116. return $this->comment;
  117. }
  118. public function setComment(?string $comment): self
  119. {
  120. $this->comment = $comment;
  121. return $this;
  122. }
  123. public function getCommentedAt(): ?\DateTimeInterface
  124. {
  125. return $this->commentedAt;
  126. }
  127. public function setCommentedAt(?\DateTimeInterface $commentedAt): self
  128. {
  129. $this->commentedAt = $commentedAt;
  130. return $this;
  131. }
  132. public function isIsAnonymous(): ?bool
  133. {
  134. return $this->isAnonymous;
  135. }
  136. public function setIsAnonymous(?bool $isAnonymous): self
  137. {
  138. $this->isAnonymous = $isAnonymous;
  139. return $this;
  140. }
  141. public function isIsPublished(): ?bool
  142. {
  143. return $this->isPublished;
  144. }
  145. public function setIsPublished(?bool $isPublished): self
  146. {
  147. $this->isPublished = $isPublished;
  148. return $this;
  149. }
  150. public function isIsGeneral(): ?bool
  151. {
  152. return $this->isGeneral;
  153. }
  154. public function setIsGeneral(?bool $isGeneral): self
  155. {
  156. $this->isGeneral = $isGeneral;
  157. return $this;
  158. }
  159. public function getSource(): ?string
  160. {
  161. return $this->source;
  162. }
  163. public function setSource(?string $source): self
  164. {
  165. $this->source = $source;
  166. return $this;
  167. }
  168. }