{
"event": "PostToolUse",
"tool_name": "Read",
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/ValueObject\/Confidence.php",
"content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Domain\\ValueObject;\n\n\/\/ @responsibility: Konfidenzwert (0.0-1.0) für Taxonomie-Mappings\n\nfinal class Confidence\n{\n private float $value;\n\n public function __construct(float $value)\n {\n if ($value < 0.0 || $value > 1.0) {\n throw new \\InvalidArgumentException(\n sprintf('Confidence must be between 0.0 and 1.0, got %f', $value)\n );\n }\n $this->value = $value;\n }\n\n public static function fromFloat(float $value): self\n {\n return new self($value);\n }\n\n public static function high(): self\n {\n return new self(0.9);\n }\n\n public static function medium(): self\n {\n return new self(0.7);\n }\n\n public static function low(): self\n {\n return new self(0.5);\n }\n\n public function value(): float\n {\n return $this->value;\n }\n\n public function isHigh(): bool\n {\n return $this->value >= 0.8;\n }\n\n public function isMedium(): bool\n {\n return $this->value >= 0.5 && $this->value < 0.8;\n }\n\n public function isLow(): bool\n {\n return $this->value < 0.5;\n }\n\n public function asPercentage(): int\n {\n return (int) round($this->value * 100);\n }\n}\n",
"numLines": 68,
"startLine": 1,
"totalLines": 68
}
}
}