locked = 0; $this->visible = 1; } public function setTitle(string $title): self { $this->title = $title; return $this; } /** * Get title. * * @return string */ public function getTitle() { return $this->title; } public function setDescription(?string $description): self { $this->description = $description; return $this; } /** * Get description. * * @return string */ public function getDescription() { return $this->description; } public function setCreatedAt(DateTime $createdAt): self { $this->createdAt = $createdAt; return $this; } /** * Get createdAt. * * @return DateTime */ public function getCreatedAt() { return $this->createdAt; } public function setWeight(float $weight): self { $this->weight = $weight; return $this; } /** * Get weight. * * @return float */ public function getWeight() { return $this->weight; } public function setMax(float $max): self { $this->max = $max; return $this; } /** * Get max. * * @return float */ public function getMax() { return $this->max; } public function setVisible(int $visible): self { $this->visible = $visible; return $this; } /** * Get visible. * * @return int */ public function getVisible() { return $this->visible; } public function setType(string $type): self { $this->type = $type; return $this; } /** * Get type. * * @return string */ public function getType() { return $this->type; } public function setLocked(int $locked): self { $this->locked = $locked; return $this; } /** * Get locked. * * @return int */ public function getLocked() { return $this->locked; } /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * @return float */ public function getBestScore() { return $this->bestScore; } public function setBestScore(float $bestScore): self { $this->bestScore = $bestScore; return $this; } /** * @return float */ public function getAverageScore() { return $this->averageScore; } public function setAverageScore(float $averageScore): self { $this->averageScore = $averageScore; return $this; } /** * @return array */ public function getUserScoreList() { if (empty($this->userScoreList)) { return []; } return $this->userScoreList; } /** * @return GradebookEvaluation */ public function setUserScoreList(array $userScoreList) { $this->userScoreList = $userScoreList; return $this; } /** * @return float */ public function getScoreWeight() { return $this->scoreWeight; } /** * @return GradebookEvaluation */ public function setScoreWeight(float $scoreWeight) { $this->scoreWeight = $scoreWeight; return $this; } public function getCategory(): GradebookCategory { return $this->category; } public function setCategory(GradebookCategory $category): self { $this->category = $category; return $this; } }