userCourseCat = 0; $this->sort = 0; $this->tutor = false; $this->status = User::STUDENT; } public function __toString(): string { return (string) $this->getCourse()->getCode(); } public function getId(): int { return $this->id; } public function setCourse(Course $course): self { $this->course = $course; return $this; } public function getCourse(): Course { return $this->course; } public function setRelationType(int $relationType): self { $this->relationType = $relationType; return $this; } public function getRelationType(): int { return $this->relationType; } public function setStatus(int $status): self { $this->status = $status; return $this; } public function getStatus(): int { return $this->status; } public function setSort(int $sort): self { $this->sort = $sort; return $this; } public function getSort(): ?int { return $this->sort; } public function isTutor(): ?bool { return $this->tutor; } public function setTutor(bool $tutor): self { $this->tutor = $tutor; return $this; } public function setUserCourseCat(int $userCourseCat): self { $this->userCourseCat = $userCourseCat; return $this; } public function getUserCourseCat(): ?int { return $this->userCourseCat; } public function setLegalAgreement(int $legalAgreement): self { $this->legalAgreement = $legalAgreement; return $this; } public function getLegalAgreement(): ?int { return $this->legalAgreement; } public function getUser(): User { return $this->user; } public function setUser(User $user): self { $this->user = $user; return $this; } /** * 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' ]; } }