RelationRepositoryInterface.php
- Pfad:
src/Domain/Repository/RelationRepositoryInterface.php - Namespace: Domain\Repository
- Zeilen: 65 | Größe: 1,605 Bytes
- Geändert: 2025-12-28 01:04:16 | 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 1
- use Domain\Constants
Klassen 1
-
RelationRepositoryInterfaceinterface Zeile 11
Funktionen 8
-
findFiltered()public Zeile 18 -
getTypes()public Zeile 25 -
getStats()public Zeile 32 -
find()public Zeile 39 -
create()public Zeile 46 -
update()public Zeile 51 -
delete()public Zeile 56 -
getTypesList()public Zeile 63
Verwendet von 7
- ContentServiceProvider.php use
- RelationController.php constructor
- RelationController.php use
- RelationRepository.php use
- RelationRepository.php implements
- SemanticExplorerController.php constructor
- SemanticExplorerController.php use
Versionen 2
-
v2
2025-12-28 01:04 | claude-code-hook | modified
Claude Code Pre-Hook Backup vor Edit-Operation -
v1
2025-12-28 01:03 | 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 Relation-Persistenz (Entity-Beziehungen)
use Domain\Constants;
interface RelationRepositoryInterface
{
/**
* Holt gefilterte Relationen mit Entity-Details.
*
* @return array<int, array{id: int, source_entity_id: int, target_entity_id: int, relation_type: string, strength: float, source_name: string, source_type: string, target_name: string, target_type: string}>
*/
public function findFiltered(string $type = '', int $limit = Constants::DEFAULT_LIMIT): array;
/**
* Holt Relation-Typen mit Count.
*
* @return array<int, array{relation_type: string, count: int}>
*/
public function getTypes(): array;
/**
* Holt Relation-Statistiken.
*
* @return array{total: int, sources: int, targets: int}
*/
public function getStats(): array;
/**
* Findet eine Relation nach ID.
*
* @return array|null
*/
public function find(int $id): ?array;
/**
* Erstellt eine neue Relation.
*
* @return int ID der neuen Relation
*/
public function create(int $sourceId, int $targetId, string $type, float $strength = 1.0): int;
/**
* Aktualisiert eine Relation.
*/
public function update(int $id, string $type, float $strength): bool;
/**
* Löscht eine Relation.
*/
public function delete(int $id): bool;
/**
* Holt vordefinierte Relation-Typen.
*
* @return array<string>
*/
public function getTypesList(): array;
}