src/Entity/TeacherQRCode.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TeacherQRCodeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7. * @ORM\Entity(repositoryClass=TeacherQRCodeRepository::class)
  8. */
  9. class TeacherQRCode
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. */
  16. private int $id;
  17. /**
  18. * @ORM\Column(type="boolean", nullable=true)
  19. */
  20. private ?bool $checked = null;
  21. /**
  22. * @ORM\Column(type="string", length=255, nullable=true)
  23. */
  24. private ?string $documentPath = null;
  25. /**
  26. * @ORM\OneToOne(targetEntity=Teacher::class, inversedBy="qrCode", cascade={"persist", "remove"})
  27. */
  28. private Teacher $teacher;
  29. /**
  30. * @ORM\Column(type="datetime", nullable=true)
  31. */
  32. private ?\DateTimeInterface $uploadedAt = null;
  33. /**
  34. * @ORM\Column(type="datetime", nullable=true)
  35. */
  36. private ?\DateTimeInterface $updatedAt = null;
  37. /**
  38. * @ORM\Column(type="text", nullable=true)
  39. */
  40. private ?string $comment = null;
  41. /**
  42. * @ORM\Column(type="integer", nullable=true)
  43. */
  44. private ?int $notificationLevel = null;
  45. /**
  46. * @ORM\Column(type="datetime", nullable=true)
  47. */
  48. private ?\DateTimeInterface $notifiedAt = null;
  49. public function getId(): int
  50. {
  51. return $this->id;
  52. }
  53. public function setId(int $id): void
  54. {
  55. $this->id = $id;
  56. }
  57. public function getChecked(): ?bool
  58. {
  59. return $this->checked;
  60. }
  61. public function setChecked(?bool $checked): void
  62. {
  63. $this->checked = $checked;
  64. }
  65. public function getDocumentPath(): ?string
  66. {
  67. return $this->documentPath;
  68. }
  69. public function setDocumentPath(?string $documentPath): void
  70. {
  71. $this->documentPath = $documentPath;
  72. }
  73. public function getTeacher(): Teacher
  74. {
  75. return $this->teacher;
  76. }
  77. public function setTeacher(Teacher $teacher): void
  78. {
  79. $this->teacher = $teacher;
  80. }
  81. public function getUploadedAt(): ?\DateTimeInterface
  82. {
  83. return $this->uploadedAt;
  84. }
  85. public function setUploadedAt(?\DateTimeInterface $uploadedAt): void
  86. {
  87. $this->uploadedAt = $uploadedAt;
  88. }
  89. public function getUpdatedAt(): ?\DateTimeInterface
  90. {
  91. return $this->updatedAt;
  92. }
  93. public function setUpdatedAt(?\DateTimeInterface $updatedAt): void
  94. {
  95. $this->updatedAt = $updatedAt;
  96. }
  97. public function getComment(): ?string
  98. {
  99. return $this->comment;
  100. }
  101. public function setComment(?string $comment): void
  102. {
  103. $this->comment = $comment;
  104. }
  105. public function getNotificationLevel(): ?int
  106. {
  107. return $this->notificationLevel;
  108. }
  109. public function setNotificationLevel(?int $notificationLevel): void
  110. {
  111. $this->notificationLevel = $notificationLevel;
  112. }
  113. public function getNotifiedAt(): ?\DateTimeInterface
  114. {
  115. return $this->notifiedAt;
  116. }
  117. public function setNotifiedAt(?\DateTimeInterface $notifiedAt): void
  118. {
  119. $this->notifiedAt = $notifiedAt;
  120. }
  121. }