src/Entity/TeacherPublicProfile.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TeacherPublicProfileRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=TeacherPublicProfileRepository::class)
  7. */
  8. class TeacherPublicProfile
  9. {
  10. const STATUS_IN_REVIEW = 0;
  11. const STATUS_REJECTED = 1;
  12. const STATUS_CONFIRMED = 2;
  13. const STATUS_DELETED = 3;
  14. /**
  15. * @ORM\Id
  16. * @ORM\GeneratedValue
  17. * @ORM\Column(type="integer")
  18. */
  19. private int $id;
  20. /**
  21. * @ORM\ManyToOne(targetEntity=Teacher::class, inversedBy="teacherPublicProfiles")
  22. */
  23. private $teacher;
  24. /**
  25. * @ORM\Column(type="string", length=300)
  26. */
  27. private string $photoPath;
  28. /**
  29. * @ORM\Column(type="boolean")
  30. */
  31. private bool $allowAIEdit;
  32. /**
  33. * @ORM\Column(type="integer")
  34. */
  35. private int $status;
  36. /**
  37. * @ORM\Column(type="datetime")
  38. */
  39. private $createdAt;
  40. /**
  41. * @ORM\Column(type="datetime")
  42. */
  43. private $updatedAt;
  44. /**
  45. * @ORM\Column(type="text")
  46. */
  47. private string $description;
  48. /**
  49. * @ORM\Column(type="text", nullable=true)
  50. */
  51. private ?string $comment = null;
  52. public function __construct()
  53. {
  54. $this->createdAt = new \DateTime();
  55. }
  56. public function getId(): int
  57. {
  58. return $this->id;
  59. }
  60. public function setId(int $id): void
  61. {
  62. $this->id = $id;
  63. }
  64. /**
  65. * @return mixed
  66. */
  67. public function getTeacher()
  68. {
  69. return $this->teacher;
  70. }
  71. /**
  72. * @param mixed $teacher
  73. */
  74. public function setTeacher($teacher): void
  75. {
  76. $this->teacher = $teacher;
  77. }
  78. public function getPhotoPath(): string
  79. {
  80. return $this->photoPath;
  81. }
  82. public function setPhotoPath(string $photoPath): void
  83. {
  84. $this->photoPath = $photoPath;
  85. }
  86. public function isAllowAIEdit(): bool
  87. {
  88. return $this->allowAIEdit;
  89. }
  90. public function setAllowAIEdit(bool $allowAIEdit): void
  91. {
  92. $this->allowAIEdit = $allowAIEdit;
  93. }
  94. public function getStatus(): int
  95. {
  96. return $this->status;
  97. }
  98. public function setStatus(int $status): void
  99. {
  100. $this->status = $status;
  101. }
  102. public function getCreatedAt(): \DateTime
  103. {
  104. return $this->createdAt;
  105. }
  106. public function setCreatedAt(\DateTime $createdAt): void
  107. {
  108. $this->createdAt = $createdAt;
  109. }
  110. /**
  111. * @return mixed
  112. */
  113. public function getUpdatedAt()
  114. {
  115. return $this->updatedAt;
  116. }
  117. /**
  118. * @param mixed $updatedAt
  119. */
  120. public function setUpdatedAt($updatedAt): void
  121. {
  122. $this->updatedAt = $updatedAt;
  123. }
  124. public function getDescription(): string
  125. {
  126. return $this->description;
  127. }
  128. public function setDescription(string $description): void
  129. {
  130. $this->description = $description;
  131. }
  132. public function getComment(): ?string
  133. {
  134. return $this->comment;
  135. }
  136. public function setComment(?string $comment): void
  137. {
  138. $this->comment = $comment;
  139. }
  140. }