| Total Complexity | 5 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | class CQuizRelQuestionCategory |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @ORM\Column(name="iid", type="bigint") |
||
| 21 | * @ORM\Id |
||
| 22 | * @ORM\GeneratedValue |
||
| 23 | */ |
||
| 24 | protected int $iid; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @ORM\ManyToOne(targetEntity="CQuizQuestionCategory", cascade={"persist"}) |
||
| 28 | * @ORM\JoinColumn(name="category_id", referencedColumnName="iid", onDelete="CASCADE") |
||
| 29 | */ |
||
| 30 | protected CQuizQuestionCategory $category; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @ORM\ManyToOne(targetEntity="CQuiz", cascade={"persist"}) |
||
| 34 | * @ORM\JoinColumn(name="exercise_id", referencedColumnName="iid", onDelete="CASCADE") |
||
| 35 | */ |
||
| 36 | protected CQuiz $quiz; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @ORM\Column(name="count_questions", type="integer", nullable=false) |
||
| 40 | */ |
||
| 41 | protected int $countQuestions; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return int |
||
| 45 | */ |
||
| 46 | public function getIid() |
||
| 47 | { |
||
| 48 | return $this->iid; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getCategory(): CQuizQuestionCategory |
||
| 54 | } |
||
| 55 | |||
| 56 | public function getQuiz(): CQuiz |
||
| 57 | { |
||
| 58 | return $this->quiz; |
||
| 59 | } |
||
| 60 | |||
| 61 | public function getCountQuestions(): int |
||
| 64 | } |
||
| 65 | |||
| 66 | public function setCountQuestions(int $countQuestions): self |
||
| 73 |