EntityRepositoryInterface.php
- Pfad:
src/Domain/Repository/EntityRepositoryInterface.php - Namespace: Domain\Repository
- Zeilen: 109 | Größe: 2,921 Bytes
- Geändert: 2025-12-28 02:59:39 | Gescannt: 2025-12-31 10:22:15
Code Hygiene Score: 99
- Dependencies: 100 (25%)
- LOC: 95 (20%)
- Methods: 100 (20%)
- Secrets: 100 (15%)
- Classes: 100 (10%)
- Magic Numbers: 100 (10%)
Keine Issues gefunden.
Dependencies 1
- use Domain\Constants
Klassen 1
-
EntityRepositoryInterfaceinterface Zeile 11
Funktionen 14
-
findFiltered()public Zeile 18 -
getStats()public Zeile 25 -
find()public Zeile 32 -
findSynonyms()public Zeile 39 -
getOutgoingRelations()public Zeile 46 -
getIncomingRelations()public Zeile 53 -
findChunks()public Zeile 60 -
findClassifications()public Zeile 67 -
create()public Zeile 74 -
update()public Zeile 79 -
delete()public Zeile 86 -
getTypes()public Zeile 93 -
findAllSimple()public Zeile 100 -
getKnowledgeSemantics()public Zeile 107
Verwendet von 11
- AssignEntityTaxonomyUseCase.php constructor
- AssignEntityTaxonomyUseCase.php use
- ContentServiceProvider.php use
- EntityController.php constructor
- EntityController.php use
- EntityRepository.php implements
- EntityRepository.php use
- RelationController.php constructor
- RelationController.php use
- SemanticExplorerController.php constructor
- SemanticExplorerController.php use
Versionen 3
-
v3
2025-12-28 02:59 | claude-code-hook | modified
Claude Code Pre-Hook Backup vor Edit-Operation -
v2
2025-12-28 01:04 | 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 Entity-Persistenz (Entitäten + Beziehungen zu Chunks/Ontologie)
use Domain\Constants;
interface EntityRepositoryInterface
{
/**
* Holt gefilterte Entitäten mit Statistiken.
*
* @return array<int, array{id: int, name: string, type: string, description: ?string, chunk_count: int, relation_count: int}>
*/
public function findFiltered(string $type = '', string $search = '', int $limit = Constants::DEFAULT_LIMIT): array;
/**
* Holt Entity-Statistiken nach Typ.
*
* @return array<int, array{type: string, count: int}>
*/
public function getStats(): array;
/**
* Findet eine Entity nach ID.
*
* @return array|null
*/
public function find(int $id): ?array;
/**
* Holt Synonyme einer Entity.
*
* @return array<int, array>
*/
public function findSynonyms(int $entityId): array;
/**
* Holt ausgehende Relationen einer Entity.
*
* @return array<int, array>
*/
public function getOutgoingRelations(int $entityId): array;
/**
* Holt eingehende Relationen einer Entity.
*
* @return array<int, array>
*/
public function getIncomingRelations(int $entityId): array;
/**
* Holt Chunks, die eine Entity referenzieren.
*
* @return array<int, array{id: int, content: string, token_count: int, filename: string, relevance_score: float}>
*/
public function findChunks(int $entityId, int $limit = 20): array;
/**
* Holt Ontologie-Klassifikationen einer Entity.
*
* @return array<int, array>
*/
public function findClassifications(int $entityId): array;
/**
* Erstellt eine neue Entity.
*
* @return int ID der neuen Entity
*/
public function create(string $name, string $type, ?string $description = null): int;
/**
* Aktualisiert eine Entity.
*/
public function update(int $id, string $name, string $type, ?string $description = null): bool;
/**
* Löscht eine Entity (nur wenn keine Relationen vorhanden).
*
* @return bool False wenn Relationen vorhanden, True bei Erfolg
*/
public function delete(int $id): bool;
/**
* Holt vordefinierte Entity-Typen.
*
* @return array<string>
*/
public function getTypes(): array;
/**
* Holt alle Entitäten (minimale Daten für Select).
*
* @return array<int, array{id: int, name: string, type: string}>
*/
public function findAllSimple(): array;
/**
* Holt Knowledge-Semantik für eine Entity.
*
* @return array{semantic_role: ?string, functional_category: ?string, context_meaning: ?string, properties: ?string, model_used: ?string}|null
*/
public function getKnowledgeSemantics(int $entityId): ?array;
}