Announcement.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AnnouncementRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClass: AnnouncementRepository::class)]
  7. class Announcement
  8. {
  9. #[ORM\Id]
  10. #[ORM\GeneratedValue]
  11. #[ORM\Column]
  12. private ?int $id = null;
  13. #[ORM\Column]
  14. private ?int $year = null;
  15. #[ORM\Column]
  16. private ?int $month = null;
  17. #[ORM\ManyToOne(inversedBy: 'announcements')]
  18. #[ORM\JoinColumn(nullable: false)]
  19. private ?User $editedBy = null;
  20. #[ORM\Column]
  21. private ?\DateTime $editedDate = null;
  22. #[ORM\Column(type: Types::TEXT)]
  23. private ?string $announcement = null;
  24. #[ORM\Column]
  25. private ?bool $showEventDetail = null;
  26. #[ORM\Column]
  27. private ?bool $showAuthors = null;
  28. #[ORM\Column]
  29. private ?bool $sent = null;
  30. public function getId(): ?int
  31. {
  32. return $this->id;
  33. }
  34. public function getYear(): ?int
  35. {
  36. return $this->year;
  37. }
  38. public function setYear(int $year): static
  39. {
  40. $this->year = $year;
  41. return $this;
  42. }
  43. public function getMonth(): ?int
  44. {
  45. return $this->month;
  46. }
  47. public function setMonth(int $month): static
  48. {
  49. $this->month = $month;
  50. return $this;
  51. }
  52. public function getEditedBy(): ?User
  53. {
  54. return $this->editedBy;
  55. }
  56. public function setEditedBy(?User $editedBy): static
  57. {
  58. $this->editedBy = $editedBy;
  59. return $this;
  60. }
  61. public function getEditedDate(): ?\DateTime
  62. {
  63. return $this->editedDate;
  64. }
  65. public function setEditedDate(\DateTime $editedDate): static
  66. {
  67. $this->editedDate = $editedDate;
  68. return $this;
  69. }
  70. public function getAnnouncement(): ?string
  71. {
  72. return $this->announcement;
  73. }
  74. public function setAnnouncement(string $announcement): static
  75. {
  76. $this->announcement = $announcement;
  77. return $this;
  78. }
  79. public function isShowEventDetail(): ?bool
  80. {
  81. return $this->showEventDetail;
  82. }
  83. public function setShowEventDetail(bool $showEventDetail): static
  84. {
  85. $this->showEventDetail = $showEventDetail;
  86. return $this;
  87. }
  88. public function isShowAuthors(): ?bool
  89. {
  90. return $this->showAuthors;
  91. }
  92. public function setShowAuthors(bool $showAuthors): static
  93. {
  94. $this->showAuthors = $showAuthors;
  95. return $this;
  96. }
  97. public function isSent(): ?bool
  98. {
  99. return $this->sent;
  100. }
  101. public function setSent(bool $sent): static
  102. {
  103. $this->sent = $sent;
  104. return $this;
  105. }
  106. }