{
"event": "PreToolUse",
"tool_name": "Write",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/SeiteExplorerRepositoryInterface.php",
"content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Domain\\Repository;\n\n\/\/ @responsibility: Interface für Seiten-Explorer-Operationen (Unterseiten mit Stats)\n\ninterface SeiteExplorerRepositoryInterface\n{\n \/**\n * Count all pages (depth > 0).\n *\/\n public function countSeiten(): int;\n\n \/**\n * Count pages with filters.\n *\/\n public function countSeitenFiltered(string $search = '', string $parentId = ''): int;\n\n \/**\n * Get pages with filters (no pagination).\n *\n * @return array<array<string, mixed>>\n *\/\n public function getSeitenFiltered(string $search = '', string $parentId = ''): array;\n\n \/**\n * Get pages with pagination and filters.\n *\n * @return array<array<string, mixed>>\n *\/\n public function getSeitenPaginated(\n string $search = '',\n string $parentId = '',\n int $limit = 50,\n int $offset = 0\n ): array;\n\n \/**\n * Get page with parent info.\n *\n * @return array<string, mixed>|null\n *\/\n public function getSeiteWithParent(int $id): ?array;\n\n \/**\n * Get child pages with stats for a parent document.\n *\n * @return array<array<string, mixed>>\n *\/\n public function getSeitenWithStatsForParent(int $parentId): array;\n\n \/**\n * Get child pages (simple).\n *\n * @return array<array<string, mixed>>\n *\/\n public function getUnterseiten(int $parentId): array;\n\n \/**\n * Build breadcrumb for a page.\n *\n * @param array<string, mixed> $seite\n * @return array<array{id: int, title: string, path: string, depth: int}>\n *\/\n public function buildBreadcrumb(array $seite): array;\n\n \/**\n * Get taxonomy aggregation for document tree.\n *\n * @return array<array{taxonomy_category: string, count: int}>\n *\/\n public function getTaxonomyForDokumentTree(int $dokumentId): array;\n}\n"
}
}
{
"tool_response": {
"type": "create",
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/SeiteExplorerRepositoryInterface.php",
"content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Domain\\Repository;\n\n\/\/ @responsibility: Interface für Seiten-Explorer-Operationen (Unterseiten mit Stats)\n\ninterface SeiteExplorerRepositoryInterface\n{\n \/**\n * Count all pages (depth > 0).\n *\/\n public function countSeiten(): int;\n\n \/**\n * Count pages with filters.\n *\/\n public function countSeitenFiltered(string $search = '', string $parentId = ''): int;\n\n \/**\n * Get pages with filters (no pagination).\n *\n * @return array<array<string, mixed>>\n *\/\n public function getSeitenFiltered(string $search = '', string $parentId = ''): array;\n\n \/**\n * Get pages with pagination and filters.\n *\n * @return array<array<string, mixed>>\n *\/\n public function getSeitenPaginated(\n string $search = '',\n string $parentId = '',\n int $limit = 50,\n int $offset = 0\n ): array;\n\n \/**\n * Get page with parent info.\n *\n * @return array<string, mixed>|null\n *\/\n public function getSeiteWithParent(int $id): ?array;\n\n \/**\n * Get child pages with stats for a parent document.\n *\n * @return array<array<string, mixed>>\n *\/\n public function getSeitenWithStatsForParent(int $parentId): array;\n\n \/**\n * Get child pages (simple).\n *\n * @return array<array<string, mixed>>\n *\/\n public function getUnterseiten(int $parentId): array;\n\n \/**\n * Build breadcrumb for a page.\n *\n * @param array<string, mixed> $seite\n * @return array<array{id: int, title: string, path: string, depth: int}>\n *\/\n public function buildBreadcrumb(array $seite): array;\n\n \/**\n * Get taxonomy aggregation for document tree.\n *\n * @return array<array{taxonomy_category: string, count: int}>\n *\/\n public function getTaxonomyForDokumentTree(int $dokumentId): array;\n}\n",
"structuredPatch": [],
"originalFile": null
}
}