src/Entity/GuardianSurveyResponse.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GuardianSurveyResponseRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7. * @ORM\Entity(repositoryClass=GuardianSurveyResponseRepository::class)
  8. */
  9. class GuardianSurveyResponse
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. * @Groups({"ResponsesList", "TeacherResponsesList"})
  16. */
  17. private $id;
  18. /**
  19. * @ORM\ManyToOne(targetEntity=Child::class, inversedBy="guardianSurveyResponses")
  20. * @Groups({"ResponsesList", "TeacherResponsesList"})
  21. */
  22. private $child;
  23. /**
  24. * @ORM\ManyToOne(targetEntity=Discipline::class, inversedBy="guardianSurveyResponses")
  25. * @Groups({"ResponsesList", "TeacherResponsesList"})
  26. */
  27. private $discipline;
  28. /**
  29. * @ORM\ManyToOne(targetEntity=Teacher::class, inversedBy="guardianSurveyResponses")
  30. * @Groups({"ResponsesList"})
  31. */
  32. private $teacher;
  33. /**
  34. * @ORM\Column(type="float", nullable=true)
  35. * @Groups({"ResponsesList", "TeacherResponsesList"})
  36. */
  37. private $rating;
  38. /**
  39. * @ORM\Column(type="text", nullable=true)
  40. * @Groups({"ResponsesList", "TeacherResponsesList"})
  41. */
  42. private $comment;
  43. /**
  44. * @ORM\Column(type="datetime", nullable=true)
  45. * @Groups({"ResponsesList"})
  46. */
  47. private $dateFor;
  48. /**
  49. * @ORM\Column(type="datetime", nullable=true)
  50. * @Groups({"ResponsesList"})
  51. */
  52. private $dateFrom;
  53. /**
  54. * @ORM\Column(type="datetime", nullable=true)
  55. * @Groups({"ResponsesList"})
  56. */
  57. private $dateTo;
  58. /**
  59. * @ORM\Column(type="datetime", nullable=true)
  60. * @Groups({"ResponsesList"})
  61. */
  62. private $createdAt;
  63. public function __construct()
  64. {
  65. $this->createdAt = new \DateTime();
  66. }
  67. public function getId(): ?int
  68. {
  69. return $this->id;
  70. }
  71. public function getChild(): ?Child
  72. {
  73. return $this->child;
  74. }
  75. public function setChild(?Child $child): self
  76. {
  77. $this->child = $child;
  78. return $this;
  79. }
  80. public function getDiscipline(): ?Discipline
  81. {
  82. return $this->discipline;
  83. }
  84. public function setDiscipline(?Discipline $discipline): self
  85. {
  86. $this->discipline = $discipline;
  87. return $this;
  88. }
  89. public function getTeacher(): ?Teacher
  90. {
  91. return $this->teacher;
  92. }
  93. public function setTeacher(?Teacher $teacher): self
  94. {
  95. $this->teacher = $teacher;
  96. return $this;
  97. }
  98. public function getRating(): ?float
  99. {
  100. return $this->rating;
  101. }
  102. public function setRating(?float $rating): self
  103. {
  104. $this->rating = $rating;
  105. return $this;
  106. }
  107. public function getComment(): ?string
  108. {
  109. return $this->comment;
  110. }
  111. public function setComment(?string $comment): self
  112. {
  113. $this->comment = $comment;
  114. return $this;
  115. }
  116. public function getDateFor(): ?\DateTimeInterface
  117. {
  118. return $this->dateFor;
  119. }
  120. public function setDateFor(?\DateTimeInterface $dateFor): self
  121. {
  122. $this->dateFor = $dateFor;
  123. return $this;
  124. }
  125. public function getDateFrom(): ?\DateTimeInterface
  126. {
  127. return $this->dateFrom;
  128. }
  129. public function setDateFrom(?\DateTimeInterface $dateFrom): self
  130. {
  131. $this->dateFrom = $dateFrom;
  132. return $this;
  133. }
  134. public function getDateTo(): ?\DateTimeInterface
  135. {
  136. return $this->dateTo;
  137. }
  138. public function setDateTo(?\DateTimeInterface $dateTo): self
  139. {
  140. $this->dateTo = $dateTo;
  141. return $this;
  142. }
  143. public function getCreatedAt(): ?\DateTimeInterface
  144. {
  145. return $this->createdAt;
  146. }
  147. public function setCreatedAt(?\DateTimeInterface $createdAt): self
  148. {
  149. $this->createdAt = $createdAt;
  150. return $this;
  151. }
  152. }