Protokoll #16883

ID16883
Zeitstempel2025-12-25 20:13:33.863897
Clientroot
IP145.224.72.140
Modellclaude-sonnet-4-20250514
Statuscompleted
Tokens971 (Input: 40, Output: 931)
Dauer77 ms
Request-Zeit2025-12-25 20:13:33.863897
Response-Zeit2025-12-25 20:13:33.941302

Request

{
    "event": "PreToolUse",
    "tool_name": "Read",
    "tool_input": {
        "file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Entity\/ChunkTaxonomyMapping.php"
    }
}

Response

{
    "tool_response": {
        "type": "text",
        "file": {
            "filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Entity\/ChunkTaxonomyMapping.php",
            "content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Domain\\Entity;\n\n\/\/ @responsibility: Mapping zwischen Chunk und Taxonomie-Begriff\n\nuse Domain\\ValueObject\\Confidence;\nuse Domain\\ValueObject\\MappingSource;\n\nclass ChunkTaxonomyMapping\n{\n    private ?int $id = null;\n    private int $chunkId;\n    private int $taxonomyTermId;\n    private Confidence $confidence;\n    private MappingSource $source;\n    private \\DateTimeImmutable $createdAt;\n\n    public function __construct()\n    {\n        $this->createdAt = new \\DateTimeImmutable();\n        $this->confidence = Confidence::medium();\n        $this->source = MappingSource::AUTO;\n    }\n\n    \/\/ Getters\n    public function getId(): ?int\n    {\n        return $this->id;\n    }\n\n    public function getChunkId(): int\n    {\n        return $this->chunkId;\n    }\n\n    public function getTaxonomyTermId(): int\n    {\n        return $this->taxonomyTermId;\n    }\n\n    public function getConfidence(): Confidence\n    {\n        return $this->confidence;\n    }\n\n    public function getSource(): MappingSource\n    {\n        return $this->source;\n    }\n\n    public function getCreatedAt(): \\DateTimeImmutable\n    {\n        return $this->createdAt;\n    }\n\n    \/\/ Setters\n    public function setId(int $id): self\n    {\n        $this->id = $id;\n\n        return $this;\n    }\n\n    public function setChunkId(int $chunkId): self\n    {\n        $this->chunkId = $chunkId;\n\n        return $this;\n    }\n\n    public function setTaxonomyTermId(int $taxonomyTermId): self\n    {\n        $this->taxonomyTermId = $taxonomyTermId;\n\n        return $this;\n    }\n\n    public function setConfidence(Confidence $confidence): self\n    {\n        $this->confidence = $confidence;\n\n        return $this;\n    }\n\n    public function setConfidenceFromFloat(float $value): self\n    {\n        $this->confidence = Confidence::fromFloat($value);\n\n        return $this;\n    }\n\n    public function setSource(MappingSource $source): self\n    {\n        $this->source = $source;\n\n        return $this;\n    }\n\n    public function setCreatedAt(\\DateTimeImmutable $createdAt): self\n    {\n        $this->createdAt = $createdAt;\n\n        return $this;\n    }\n\n    public function toArray(): array\n    {\n        return [\n            'id' => $this->id,\n            'chunk_id' => $this->chunkId,\n            'taxonomy_term_id' => $this->taxonomyTermId,\n            'confidence' => $this->confidence->value(),\n            'source' => $this->source->value,\n            'created_at' => $this->createdAt->format('Y-m-d H:i:s'),\n        ];\n    }\n\n    public static function fromArray(array $data): self\n    {\n        $mapping = new self();\n\n        if (isset($data['id'])) {\n            $mapping->setId((int) $data['id']);\n        }\n        if (isset($data['chunk_id'])) {\n            $mapping->setChunkId((int) $data['chunk_id']);\n        }\n        if (isset($data['taxonomy_term_id'])) {\n            $mapping->setTaxonomyTermId((int) $data['taxonomy_term_id']);\n        }\n        if (isset($data['confidence'])) {\n            $mapping->setConfidenceFromFloat((float) $data['confidence']);\n        }\n        if (isset($data['source'])) {\n            $mapping->setSource(MappingSource::from($data['source']));\n        }\n        if (isset($data['created_at'])) {\n            $mapping->setCreatedAt(new \\DateTimeImmutable($data['created_at']));\n        }\n\n        return $mapping;\n    }\n}\n",
            "numLines": 147,
            "startLine": 1,
            "totalLines": 147
        }
    }
}
← Vorheriger Zur Liste Nächster →