src/CoreBundle/Entity/SelfStudyExamQuiz.php line 13

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Table("self_study_exam_quiz")
  8. * @ORM\Entity
  9. */
  10. class SelfStudyExamQuiz
  11. {
  12. /**
  13. * @var int
  14. *
  15. * @ORM\Column(name="id", type="integer")
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="AUTO")
  18. */
  19. private int $id;
  20. /**
  21. * @var string
  22. *
  23. * @ORM\Column(name="display_name", type="string", length=255)
  24. */
  25. private string $displayName;
  26. /**
  27. * @var Quiz
  28. *
  29. * @ORM\ManyToOne(targetEntity="CoreBundle\Entity\Quiz")
  30. * @ORM\JoinColumn(name="quiz", referencedColumnName="id")
  31. */
  32. private Quiz $quiz;
  33. /**
  34. * @var SelfStudy
  35. *
  36. * @ORM\ManyToOne(targetEntity="CoreBundle\Entity\SelfStudy", inversedBy="selfStudyExamQuizzes")
  37. * @ORM\JoinColumn(name="self_study_id", referencedColumnName="id")
  38. */
  39. private SelfStudy $selfStudy;
  40. /**
  41. * @var int $totalDuration
  42. *
  43. * @ORM\Column(name="total_duration", type="integer")
  44. */
  45. private int $totalDuration;
  46. /**
  47. * @var int $durationWithoutCAS
  48. *
  49. * @ORM\Column(name="duration_without_cas", type="integer")
  50. */
  51. private int $durationWithoutCAS;
  52. private ArrayCollection $selfStudyCategories;
  53. private ArrayCollection $typicalExamProblems;
  54. public function __construct()
  55. {
  56. $this->selfStudyCategories = new ArrayCollection();
  57. $this->typicalExamProblems = new ArrayCollection();
  58. }
  59. public function getId(): int
  60. {
  61. return $this->id;
  62. }
  63. public function getDisplayName(): string
  64. {
  65. return $this->displayName;
  66. }
  67. public function getQuiz(): Quiz
  68. {
  69. return $this->quiz;
  70. }
  71. public function getTotalDuration(): int
  72. {
  73. return $this->totalDuration;
  74. }
  75. public function getDurationWithoutCAS(): int
  76. {
  77. return $this->durationWithoutCAS;
  78. }
  79. }