quizQuestionRelCategoryList = new ArrayCollection(); } public function setParent(CQuizCategory $parent = null) { $this->parent = $parent; } public function getParent() { return $this->parent; } public function getQuestions() { $questions = new ArrayCollection(); foreach ($this->quizQuestionRelCategoryList as $relQuestion) { $questions[] = $relQuestion->getQuestion(); } return $questions; } /** * Set cId * * @param integer $cId * @return CQuizQuestionCategory */ public function setCId($cId) { $this->cId = $cId; return $this; } /** * Get cId * * @return integer */ public function getCId() { return $this->cId; } /** * Set id * * @param integer $id * @return CQuizQuestionCategory */ public function setIid($id) { $this->iid = $id; return $this; } /** * Get id * * @return integer */ public function getIid() { return $this->iid; } /** * Set title * * @param string $title * @return CQuizQuestionCategory */ public function setTitle($title) { $this->title = $title; return $this; } /** * Get title * * @return string */ public function getTitle() { return $this->title; } /** * Set description * * @param string $description * @return CQuizQuestionCategory */ public function setDescription($description) { $this->description = $description; return $this; } /** * Get description * * @return string */ public function getDescription() { return $this->description; } /** * Set cId * * @param integer $cId * @return CQuizQuestionCategory */ public function setParentId($id) { $this->parentId = $id; return $this; } /** * Get cId * * @return integer */ public function getParentId() { return $this->parentId; } /** * @return integer */ public function getVisibility() { return $this->visibility; } /** * @param $visibility * @return $this */ public function setVisibility($visibility) { $this->visibility = $visibility; return $this; } }