userCourseCat = 0; } /** * @return string */ public function __toString() { return (string) $this->getCourse()->getCode(); } /** * @return int */ public function getId() { return $this->id; } public function setCourse(Course $course): self { $this->course = $course; return $this; } /** * Get Course. * * @return Course */ public function getCourse() { return $this->course; } public function setUser(User $user): self { $this->user = $user; return $this; } /** * Get User. */ public function getUser(): User { return $this->user; } /** * Set relationType. */ public function setRelationType(int $relationType): self { $this->relationType = $relationType; return $this; } /** * Get relationType. */ public function getRelationType(): int { return $this->relationType; } /** * Set status. * * @param bool $status */ public function setStatus($status): self { $this->status = $status; return $this; } /** * Get status. * * @return bool */ public function getStatus() { return $this->status; } /** * Set sort. * * @param int $sort */ public function setSort($sort): self { $this->sort = $sort; return $this; } /** * Get sort. * * @return int */ public function getSort() { return $this->sort; } /** * @return bool */ public function isTutor() { return $this->tutor; } /** * @param bool $tutor */ public function setTutor($tutor) { $this->tutor = $tutor; return $this; } /** * Set userCourseCat. * * @param int $userCourseCat * * @return CourseRelUser */ public function setUserCourseCat($userCourseCat) { $this->userCourseCat = $userCourseCat; return $this; } /** * Get userCourseCat. * * @return int */ public function getUserCourseCat() { return $this->userCourseCat; } /** * Set legalAgreement. * * @param int $legalAgreement * * @return CourseRelUser */ public function setLegalAgreement($legalAgreement) { $this->legalAgreement = $legalAgreement; return $this; } /** * Get legalAgreement. * * @return int */ public function getLegalAgreement() { return $this->legalAgreement; } /** * Get relation_type list. * * @return array */ public static function getRelationTypeList() { return [ '0' => '', COURSE_RELATION_TYPE_RRHH => 'drh', ]; } /** * Get status list. * * @return array */ public static function getStatusList() { return [ User::COURSE_MANAGER => 'Teacher', User::STUDENT => 'Student', //User::DRH => 'DRH' ]; } }