grade = trim($grade); $this->score = max(0.0, min(1.0, $score)); $this->strengths = array_values($strengths); $this->weaknesses = array_values($weaknesses); $this->missingInformation = array_values($missingInformation); } public function getGrade(): string { return $this->grade; } public function getScore(): float { return $this->score; } public function getStrengths(): array { return $this->strengths; } public function getWeaknesses(): array { return $this->weaknesses; } public function getMissingInformation(): array { return $this->missingInformation; } }