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. */ public function setStatus(int $status): self { $this->status = $status; return $this; } /** * Get status. */ public function getStatus(): int { 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; } public function isTutor(): bool { return $this->tutor; } public function setTutor(bool $tutor): self { $this->tutor = $tutor; return $this; } /** * Set userCourseCat. * * @param int $userCourseCat */ public function setUserCourseCat($userCourseCat): self { $this->userCourseCat = $userCourseCat; return $this; } /** * Get userCourseCat. * * @return int */ public function getUserCourseCat() { return $this->userCourseCat; } /** * Set legalAgreement. * * @param int $legalAgreement */ public function setLegalAgreement($legalAgreement): self { $this->legalAgreement = $legalAgreement; return $this; } /** * Get legalAgreement. * * @return int */ public function getLegalAgreement() { return $this->legalAgreement; } /** * Get relation_type list. */ public static function getRelationTypeList(): array { return [ '0' => '', COURSE_RELATION_TYPE_RRHH => 'drh', ]; } /** * Get status list. */ public static function getStatusList(): array { return [ User::COURSE_MANAGER => 'Teacher', User::STUDENT => 'Student', //User::DRH => 'DRH' ]; } }