Backup #1903
| ID | 1903 |
| Dateipfad | /var/www/dev.campus.systemische-tools.de/src/Domain/Repository/RelationRepositoryInterface.php |
| Version | 2 |
| Typ |
modified |
| Größe | 1.5 KB |
| Hash | 7d00d00fd36f4e89a9f262156c59888fb2d4ecf23e8661184c476f1a90bc6c22 |
| Datum | 2025-12-28 01:04:16 |
| Geändert von | claude-code-hook |
| Grund | Claude Code Pre-Hook Backup vor Edit-Operation |
| Datei existiert |
Ja
|
Dateiinhalt
<?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 = 100): 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;
}
Vollständig herunterladen
Aktionen
Andere Versionen dieser Datei
| ID |
Version |
Typ |
Größe |
Datum |
| 1903 |
2 |
modified |
1.5 KB |
2025-12-28 01:04 |
| 1897 |
1 |
modified |
1.5 KB |
2025-12-28 01:03 |
← Zurück zur Übersicht