{
"event": "PreToolUse",
"tool_name": "Edit",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/DokumentationRepositoryInterface.php",
"old_string": " \/**\n * @return array{total: int, by_depth: array<int, array{depth: int, count: int}>, by_status: array<int, array{status: string, count: int}>}\n *\/\n public function getStatistics(): array;\n}",
"new_string": " \/**\n * @return array{total: int, by_depth: array<int, array{depth: int, count: int}>, by_status: array<int, array{status: string, count: int}>}\n *\/\n public function getStatistics(): array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function findAll(\n ?string $status = null,\n ?int $parentId = null,\n ?string $search = null,\n int $limit = 50,\n int $offset = 0\n ): array;\n\n public function count(\n ?string $status = null,\n ?int $parentId = null,\n ?string $search = null\n ): int;\n\n \/**\n * @param array<string, mixed> $data\n *\/\n public function create(array $data): int;\n\n \/**\n * @param array<string, mixed> $data\n *\/\n public function update(int $id, array $data): void;\n\n public function delete(int $id): void;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function getTree(): array;\n}"
}
}
{
"tool_response": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/DokumentationRepositoryInterface.php",
"oldString": " \/**\n * @return array{total: int, by_depth: array<int, array{depth: int, count: int}>, by_status: array<int, array{status: string, count: int}>}\n *\/\n public function getStatistics(): array;\n}",
"newString": " \/**\n * @return array{total: int, by_depth: array<int, array{depth: int, count: int}>, by_status: array<int, array{status: string, count: int}>}\n *\/\n public function getStatistics(): array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function findAll(\n ?string $status = null,\n ?int $parentId = null,\n ?string $search = null,\n int $limit = 50,\n int $offset = 0\n ): array;\n\n public function count(\n ?string $status = null,\n ?int $parentId = null,\n ?string $search = null\n ): int;\n\n \/**\n * @param array<string, mixed> $data\n *\/\n public function create(array $data): int;\n\n \/**\n * @param array<string, mixed> $data\n *\/\n public function update(int $id, array $data): void;\n\n public function delete(int $id): void;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function getTree(): array;\n}",
"originalFile": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Domain\\Repository;\n\n\/\/ @responsibility: Vertrag für Dokumentations-Persistenz\n\ninterface DokumentationRepositoryInterface\n{\n \/**\n * @return array<string, mixed>|null\n *\/\n public function findById(int $id): ?array;\n\n \/**\n * @return array<string, mixed>|null\n *\/\n public function findByPath(string $path): ?array;\n\n \/**\n * @return array<string, mixed>|null\n *\/\n public function findBySlug(string $slug, ?int $parentId = null): ?array;\n\n \/**\n * @return array<string, mixed>|null\n *\/\n public function findDocBySlug(string $slug): ?array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function findChildren(int $parentId): array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function findRootDocuments(): array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function getHierarchy(): array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function getBreadcrumb(int $docId): array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function getSiblings(int $docId): array;\n\n \/**\n * @return array{total: int, by_depth: array<int, array{depth: int, count: int}>, by_status: array<int, array{status: string, count: int}>}\n *\/\n public function getStatistics(): array;\n}\n",
"structuredPatch": [
{
"oldStart": 57,
"oldLines": 4,
"newStart": 57,
"newLines": 38,
"lines": [
" * @return array{total: int, by_depth: array<int, array{depth: int, count: int}>, by_status: array<int, array{status: string, count: int}>}",
" *\/",
" public function getStatistics(): array;",
"+",
"+ \/**",
"+ * @return array<int, array<string, mixed>>",
"+ *\/",
"+ public function findAll(",
"+ ?string $status = null,",
"+ ?int $parentId = null,",
"+ ?string $search = null,",
"+ int $limit = 50,",
"+ int $offset = 0",
"+ ): array;",
"+",
"+ public function count(",
"+ ?string $status = null,",
"+ ?int $parentId = null,",
"+ ?string $search = null",
"+ ): int;",
"+",
"+ \/**",
"+ * @param array<string, mixed> $data",
"+ *\/",
"+ public function create(array $data): int;",
"+",
"+ \/**",
"+ * @param array<string, mixed> $data",
"+ *\/",
"+ public function update(int $id, array $data): void;",
"+",
"+ public function delete(int $id): void;",
"+",
"+ \/**",
"+ * @return array<int, array<string, mixed>>",
"+ *\/",
"+ public function getTree(): array;",
" }"
]
}
],
"userModified": false,
"replaceAll": false
}
}