{
"event": "PostToolUse",
"tool_name": "Read",
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ChunkRepository.php",
"content": " return $stmt->fetchAll(PDO::FETCH_ASSOC) ?: [];\n }\n\n \/**\n * {@inheritDoc}\n *\/\n public function getTextSemantics(int $chunkId): ?array\n {\n $stmt = $this->db->prepare(\n 'SELECT statement_form, intent, frame, is_negated, discourse_role, model_used\n FROM chunk_text_semantics\n WHERE chunk_id = :chunk_id'\n );\n $stmt->execute(['chunk_id' => $chunkId]);\n $result = $stmt->fetch(PDO::FETCH_ASSOC);\n\n if ($result === false) {\n return null;\n }\n\n \/\/ Convert is_negated to boolean\n $result['is_negated'] = (bool) $result['is_negated'];\n\n return $result;\n }\n}\n",
"numLines": 27,
"startLine": 215,
"totalLines": 241
}
}
}