{
"event": "PreToolUse",
"tool_name": "Edit",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php",
"old_string": "<?php\n\nnamespace Domain\\Repository;\n\n\/**\n * Interface for Content\/Order Repository operations.\n *\/\ninterface ContentRepositoryInterface",
"new_string": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Domain\\Repository;\n\n\/\/ @responsibility: Vertrag für Content-Order-Persistenz\n\ninterface ContentRepositoryInterface"
}
}
{
"tool_response": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php",
"oldString": "<?php\n\nnamespace Domain\\Repository;\n\n\/**\n * Interface for Content\/Order Repository operations.\n *\/\ninterface ContentRepositoryInterface",
"newString": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Domain\\Repository;\n\n\/\/ @responsibility: Vertrag für Content-Order-Persistenz\n\ninterface ContentRepositoryInterface",
"originalFile": "<?php\n\nnamespace Domain\\Repository;\n\n\/**\n * Interface for Content\/Order Repository operations.\n *\/\ninterface ContentRepositoryInterface\n{\n \/**\n * @param array<string, mixed> $filters\n * @return array<int, array<string, mixed>>\n *\/\n public function findAllOrders(array $filters = [], int $limit = 50, int $offset = 0): array;\n\n \/**\n * @return array<string, mixed>|null\n *\/\n public function findOrder(int $id): ?array;\n\n \/**\n * @return array{model: string, collections: array<string>, context_limit: int, author_profile_id: int|null, contract_id: int|null, structure_id: int|null}\n *\/\n public function getLastOrderSettings(): array;\n\n \/**\n * @param array<string, mixed> $data\n *\/\n public function createOrder(array $data): int;\n\n public function updateOrderStatus(int $id, string $status): void;\n\n \/**\n * @param array<string, mixed> $data\n *\/\n public function updateOrder(int $id, array $data): bool;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function findVersionsByOrder(int $orderId): array;\n\n \/**\n * @return array<string, mixed>|null\n *\/\n public function findLatestVersion(int $orderId): ?array;\n\n \/**\n * @return array<string, mixed>|null\n *\/\n public function findVersion(int $id): ?array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function findCritiquesByVersion(int $versionId): array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function findSourcesByOrder(int $orderId): array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function findAllProfiles(): array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function findAllContracts(): array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function findAllStructures(): array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function findAllCritics(): array;\n\n \/**\n * @return array<string, mixed>\n *\/\n public function getStatistics(): array;\n}\n",
"structuredPatch": [
{
"oldStart": 1,
"oldLines": 10,
"newStart": 1,
"newLines": 11,
"lines": [
" <?php",
" ",
"+declare(strict_types=1);",
"+",
" namespace Domain\\Repository;",
" ",
"-\/**",
"- * Interface for Content\/Order Repository operations.",
"- *\/",
"+\/\/ @responsibility: Vertrag für Content-Order-Persistenz",
"+",
" interface ContentRepositoryInterface",
" {",
" \/**"
]
}
],
"userModified": false,
"replaceAll": false
}
}