src/Entity/TeacherPreference.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TeacherPreferenceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7. * @ORM\Entity(repositoryClass=TeacherPreferenceRepository::class)
  8. */
  9. class TeacherPreference
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\Column(type="boolean", nullable=true)
  19. * @Groups({"TeacherList"})
  20. */
  21. private $flagRU;
  22. /**
  23. * @ORM\Column(type="boolean", nullable=true)
  24. * @Groups({"TeacherList"})
  25. */
  26. private $flagPL;
  27. /**
  28. * @ORM\Column(type="boolean", nullable=true)
  29. * @Groups({"TeacherList"})
  30. */
  31. private $flagENG;
  32. /**
  33. * @ORM\Column(type="boolean", nullable=true)
  34. * @Groups({"TeacherList"})
  35. */
  36. private $flagIB;
  37. /**
  38. * @ORM\Column(type="boolean", nullable=true)
  39. * @Groups({"TeacherList"})
  40. */
  41. private $flagDyslexia;
  42. /**
  43. * @ORM\Column(type="boolean", nullable=true)
  44. * @Groups({"TeacherList"})
  45. */
  46. private $flagSensitive;
  47. /**
  48. * @ORM\Column(type="integer", nullable=true)
  49. * @Groups({"TeacherList"})
  50. */
  51. private $ielts;
  52. /**
  53. * @ORM\Column(type="boolean", nullable=true)
  54. */
  55. private $flagStrict;
  56. /**
  57. * @ORM\Column(type="string", length=255, nullable=true)
  58. */
  59. private $gender;
  60. /**
  61. * @ORM\Column(type="boolean", nullable=true)
  62. */
  63. private $flagExperienceAtSchool;
  64. /**
  65. * @ORM\OneToOne(targetEntity=Teacher::class, inversedBy="teacherPreference", cascade={"persist", "remove"})
  66. */
  67. private $teacher;
  68. /**
  69. * @ORM\Column(type="boolean", nullable=true)
  70. */
  71. private $flagEconomy;
  72. public function getId(): ?int
  73. {
  74. return $this->id;
  75. }
  76. public function getFlagRU(): ?bool
  77. {
  78. return $this->flagRU;
  79. }
  80. public function setFlagRU(?bool $flagRU): self
  81. {
  82. $this->flagRU = $flagRU;
  83. return $this;
  84. }
  85. public function getFlagPL(): ?bool
  86. {
  87. return $this->flagPL;
  88. }
  89. public function setFlagPL(?bool $flagPL): self
  90. {
  91. $this->flagPL = $flagPL;
  92. return $this;
  93. }
  94. public function getFlagENG(): ?bool
  95. {
  96. return $this->flagENG;
  97. }
  98. public function setFlagENG(?bool $flagENG): self
  99. {
  100. $this->flagENG = $flagENG;
  101. return $this;
  102. }
  103. public function getFlagIB(): ?bool
  104. {
  105. return $this->flagIB;
  106. }
  107. public function setFlagIB(?bool $flagIB): self
  108. {
  109. $this->flagIB = $flagIB;
  110. return $this;
  111. }
  112. public function getFlagDyslexia(): ?bool
  113. {
  114. return $this->flagDyslexia;
  115. }
  116. public function setFlagDyslexia(?bool $flagDyslexia): self
  117. {
  118. $this->flagDyslexia = $flagDyslexia;
  119. return $this;
  120. }
  121. public function getFlagSensitive(): ?bool
  122. {
  123. return $this->flagSensitive;
  124. }
  125. public function setFlagSensitive(?bool $flagSensitive): self
  126. {
  127. $this->flagSensitive = $flagSensitive;
  128. return $this;
  129. }
  130. public function getIelts(): ?int
  131. {
  132. return $this->ielts;
  133. }
  134. public function setIelts(?int $ielts): self
  135. {
  136. $this->ielts = $ielts;
  137. return $this;
  138. }
  139. public function isFlagStrict(): ?bool
  140. {
  141. return $this->flagStrict;
  142. }
  143. public function setFlagStrict(?bool $flagStrict): self
  144. {
  145. $this->flagStrict = $flagStrict;
  146. return $this;
  147. }
  148. public function getGender(): ?string
  149. {
  150. return $this->gender;
  151. }
  152. public function setGender(?string $gender): self
  153. {
  154. $this->gender = $gender;
  155. return $this;
  156. }
  157. public function isFlagExperienceAtSchool(): ?bool
  158. {
  159. return $this->flagExperienceAtSchool;
  160. }
  161. public function setFlagExperienceAtSchool(?bool $flagExperienceAtSchool): self
  162. {
  163. $this->flagExperienceAtSchool = $flagExperienceAtSchool;
  164. return $this;
  165. }
  166. public function getTeacher(): ?Teacher
  167. {
  168. return $this->teacher;
  169. }
  170. public function setTeacher(?Teacher $teacher): self
  171. {
  172. $this->teacher = $teacher;
  173. return $this;
  174. }
  175. public function isFlagEconomy(): ?bool
  176. {
  177. return $this->flagEconomy;
  178. }
  179. public function setFlagEconomy(?bool $flagEconomy): self
  180. {
  181. $this->flagEconomy = $flagEconomy;
  182. return $this;
  183. }
  184. }