ChunkTaxonomyRepositoryInterface.php
- Pfad:
src/Domain/Repository/ChunkTaxonomyRepositoryInterface.php - Namespace: Domain\Repository
- Zeilen: 62 | Größe: 1,521 Bytes
- Geändert: 2025-12-28 01:03:46 | Gescannt: 2025-12-31 10:22:15
Code Hygiene Score: 100
- Dependencies: 100 (25%)
- LOC: 100 (20%)
- Methods: 100 (20%)
- Secrets: 100 (15%)
- Classes: 100 (10%)
- Magic Numbers: 100 (10%)
Keine Issues gefunden.
Dependencies 2
- use Domain\Constants
- use Domain\Entity\ChunkTaxonomyMapping
Klassen 1
-
ChunkTaxonomyRepositoryInterfaceinterface Zeile 12
Funktionen 8
-
findByChunkId()public Zeile 19 -
findByTaxonomyTermId()public Zeile 26 -
save()public Zeile 31 -
delete()public Zeile 36 -
deleteByChunkId()public Zeile 41 -
getUnmappedChunks()public Zeile 48 -
exists()public Zeile 53 -
countByTaxonomyTerm()public Zeile 60
Verwendet von 10
- AssignChunkTaxonomyUseCase.php constructor
- AssignChunkTaxonomyUseCase.php use
- ChunkTaxonomyRepository.php implements
- ChunkTaxonomyRepository.php use
- ContentServiceProvider.php use
- EnhancedSearchUseCase.php use
- EnhancedSearchUseCase.php constructor
- GetTaxonomyOverviewUseCase.php constructor
- GetTaxonomyOverviewUseCase.php use
- InfrastructureServiceProvider.php use
Versionen 2
-
v2
2025-12-28 01:03 | claude-code-hook | modified
Claude Code Pre-Hook Backup vor Edit-Operation -
v1
2025-12-28 01:02 | claude-code-hook | modified
Claude Code Pre-Hook Backup vor Edit-Operation
Code
<?php
declare(strict_types=1);
namespace Domain\Repository;
// @responsibility: Interface für Chunk-Taxonomie-Mapping Persistenz
use Domain\Constants;
use Domain\Entity\ChunkTaxonomyMapping;
interface ChunkTaxonomyRepositoryInterface
{
/**
* Findet alle Taxonomie-Mappings für einen Chunk.
*
* @return array<ChunkTaxonomyMapping>
*/
public function findByChunkId(int $chunkId): array;
/**
* Findet alle Chunks, die einem Taxonomie-Begriff zugeordnet sind.
*
* @return array<array{chunk_id: int, confidence: float, source: string}>
*/
public function findByTaxonomyTermId(int $termId): array;
/**
* Speichert ein Chunk-Taxonomie-Mapping.
*/
public function save(ChunkTaxonomyMapping $mapping): int;
/**
* Löscht ein Mapping nach ID.
*/
public function delete(int $id): bool;
/**
* Löscht alle Mappings für einen Chunk.
*/
public function deleteByChunkId(int $chunkId): int;
/**
* Findet Chunks ohne Taxonomie-Mapping.
*
* @return array<array{id: int, document_id: int, content: string}>
*/
public function getUnmappedChunks(int $limit = Constants::DEFAULT_LIMIT): array;
/**
* Prüft ob ein Mapping existiert.
*/
public function exists(int $chunkId, int $taxonomyTermId): bool;
/**
* Zählt Mappings pro Taxonomie-Begriff.
*
* @return array<int, int> [term_id => count]
*/
public function countByTaxonomyTerm(): array;
}