src/CoreBundle/Entity/TextbookSubTopicAnswer.php line 11

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Table("textbook_subtopic_answer")
  6. * @ORM\Entity
  7. */
  8. class TextbookSubTopicAnswer
  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="answer_txt", type="string", length=255)
  22. */
  23. private $answerTxt;
  24. /**
  25. * TextbookSubTopicQuestion subTopicQuestion
  26. *
  27. * @ORM\ManyToOne(targetEntity="CoreBundle\Entity\TextbookSubTopicQuestion", inversedBy="answers")
  28. * @ORM\JoinColumn(name="textbook_subtopic_question_id", referencedColumnName="id")
  29. */
  30. private $question;
  31. /**
  32. * @var bool
  33. *
  34. * @ORM\Column(name="is_correct", type="boolean")
  35. */
  36. private $isCorrect;
  37. /**
  38. * @return string
  39. */
  40. public function getAnswerTxt()
  41. {
  42. return $this->answerTxt;
  43. }
  44. public function isCorrect(): bool
  45. {
  46. return $this->isCorrect;
  47. }
  48. /**
  49. * @return int
  50. */
  51. public function getId()
  52. {
  53. return $this->id;
  54. }
  55. }