src/CoreBundle/Entity/Dictate.php line 12

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Table("dictate")
  6. * @ORM\Entity(repositoryClass="CoreBundle\Entity\DictateRepository")
  7. */
  8. class Dictate
  9. {
  10. /**
  11. * @var int
  12. *
  13. * @ORM\Column(name="id", type="integer")
  14. * @ORM\Id
  15. * @ORM\GeneratedValue(strategy="AUTO")
  16. */
  17. private $id;
  18. /**
  19. * @var string
  20. *
  21. * @ORM\Column(name="introduction", type="string", length=255, nullable=true)
  22. */
  23. private $introduction;
  24. /**
  25. * @var string
  26. *
  27. * @ORM\Column(name="image", type="string", length=128, nullable=true)
  28. */
  29. private $image;
  30. /**
  31. * @var string
  32. *
  33. * @ORM\Column(name="text", type="string", length=4000, nullable=false)
  34. */
  35. private $text;
  36. /**
  37. * @var string
  38. *
  39. * @ORM\Column(name="sound_path", type="string", length=128, nullable=true)
  40. */
  41. private $soundPath;
  42. /**
  43. * @var int
  44. *
  45. * @ORM\Column(name="level", type="integer", nullable=false)
  46. */
  47. private $level;
  48. /**
  49. * @var ClassroomType
  50. *
  51. * @ORM\ManyToOne(targetEntity="CoreBundle\Entity\ClassroomType")
  52. * @ORM\JoinColumn(name="classroom_type", referencedColumnName="id")
  53. */
  54. private $classroomType;
  55. /**
  56. * @var array
  57. *
  58. * @ORM\Column(name="color_wrong_count_threshold", type="simple_array", nullable=true)
  59. */
  60. private $colorWrongCountThreshold;
  61. /**
  62. * @var bool
  63. *
  64. * @ORM\Column(name="is_case_insensitive", type="boolean", options={"default": false})
  65. */
  66. private $isCaseInsensitive = false;
  67. /**
  68. * @return int
  69. */
  70. public function getId(): int
  71. {
  72. return $this->id;
  73. }
  74. /**
  75. * @param int $id
  76. */
  77. public function setId(int $id): void
  78. {
  79. $this->id = $id;
  80. }
  81. /**
  82. * @return string
  83. */
  84. public function getIntroduction(): string
  85. {
  86. return $this->introduction;
  87. }
  88. /**
  89. * @param string $introduction
  90. */
  91. public function setIntroduction(string $introduction): void
  92. {
  93. $this->introduction = $introduction;
  94. }
  95. /**
  96. * @return string
  97. */
  98. public function getImage(): string
  99. {
  100. return $this->image;
  101. }
  102. /**
  103. * @param string $image
  104. */
  105. public function setImage(string $image): void
  106. {
  107. $this->image = $image;
  108. }
  109. /**
  110. * @return string
  111. */
  112. public function getText(): string
  113. {
  114. return $this->text;
  115. }
  116. /**
  117. * @param string $text
  118. */
  119. public function setText(string $text): void
  120. {
  121. $this->text = $text;
  122. }
  123. /**
  124. * @return string
  125. */
  126. public function getSoundPath(): string
  127. {
  128. return $this->soundPath;
  129. }
  130. /**
  131. * @param string $soundPath
  132. */
  133. public function setSoundPath(string $soundPath): void
  134. {
  135. $this->soundPath = $soundPath;
  136. }
  137. /**
  138. * @return int
  139. */
  140. public function getLevel()
  141. {
  142. return $this->level;
  143. }
  144. /**
  145. * @param int $level
  146. */
  147. public function setLevel(int $level): void
  148. {
  149. $this->level = $level;
  150. }
  151. /**
  152. * @return ClassroomType
  153. */
  154. public function getClassroomType()
  155. {
  156. return $this->classroomType;
  157. }
  158. /**
  159. * @param ClassroomType $classroomType
  160. */
  161. public function setClassroomType(ClassroomType $classroomType): void
  162. {
  163. $this->classroomType = $classroomType;
  164. }
  165. public function getColorWrongCountThreshold(): ?array
  166. {
  167. return $this->colorWrongCountThreshold;
  168. }
  169. public function setColorWrongCountThreshold(?array $colorWrongCountThreshold): self
  170. {
  171. $this->colorWrongCountThreshold = $colorWrongCountThreshold;
  172. return $this;
  173. }
  174. /**
  175. * @return bool
  176. */
  177. public function isCaseInsensitive(): bool
  178. {
  179. return $this->isCaseInsensitive;
  180. }
  181. /**
  182. * @param bool $isCaseInsensitive
  183. */
  184. public function setIsCaseInsensitive(bool $isCaseInsensitive): void
  185. {
  186. $this->isCaseInsensitive = $isCaseInsensitive;
  187. }
  188. }