for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/* For licensing terms, see /license.txt */
namespace Chamilo\CourseBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Quiz rel question categories.
*
* @ORM\Table(name="c_quiz_rel_category")
* @ORM\Entity
*/
class CQuizRelQuestionCategory
{
* @ORM\Column(name="iid", type="bigint")
* @ORM\Id
* @ORM\GeneratedValue
protected int $iid;
* @ORM\ManyToOne(targetEntity="CQuizQuestionCategory", cascade={"persist"})
* @ORM\JoinColumn(name="category_id", referencedColumnName="iid", onDelete="CASCADE")
protected CQuizQuestionCategory $category;
* @ORM\ManyToOne(targetEntity="CQuiz", cascade={"persist"})
* @ORM\JoinColumn(name="exercise_id", referencedColumnName="iid", onDelete="CASCADE")
protected CQuiz $quiz;
* @ORM\Column(name="count_questions", type="integer", nullable=false)
protected int $countQuestions;
* @return int
public function getIid()
return $this->iid;
}
public function getCategory(): CQuizQuestionCategory
return $this->category;
public function getQuiz(): CQuiz
return $this->quiz;
public function getCountQuestions(): int
return $this->countQuestions;
public function setCountQuestions(int $countQuestions): self
$this->countQuestions = $countQuestions;
return $this;