$this->paper, 'student' => $this->student, 'questions' => $this->questions, 'mastery' => $this->mastery, 'insights' => $this->insights, 'recommendations' => $this->recommendations, 'analysis_id' => $this->analysisId, ]; } /** * 获取试卷信息 */ public function getPaperInfo(): array { return [ 'id' => $this->paper['id'] ?? null, 'name' => $this->paper['name'] ?? '', 'total_questions' => $this->paper['total_questions'] ?? 0, 'total_score' => $this->paper['total_score'] ?? 0, ]; } /** * 获取学生信息 */ public function getStudentInfo(): array { return [ 'id' => $this->student['id'] ?? '', 'name' => $this->student['name'] ?? '', 'grade' => $this->student['grade'] ?? '', 'class' => $this->student['class'] ?? '', ]; } /** * 获取整体掌握度 */ public function getOverallMastery(): float { return $this->mastery['average'] ?? 0.0; } /** * 获取薄弱知识点 */ public function getWeakKnowledgePoints(): array { return $this->mastery['weak_list'] ?? []; } /** * 获取题目数量 */ public function getQuestionCount(): int { return count($this->questions); } /** * 判断是否有分析数据 */ public function hasAnalysisData(): bool { return !empty($this->insights) || !empty($this->mastery['items']); } }