Backup #1897

ID1897
Dateipfad/var/www/dev.campus.systemische-tools.de/src/Domain/Repository/RelationRepositoryInterface.php
Version1
Typ modified
Größe1.5 KB
Hash32d7a8c987d6c6c68b8ead9120df324986779d494d0695e4e8f687b80857a543
Datum2025-12-28 01:03:17
Geändert vonclaude-code-hook
GrundClaude 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)

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

Herunterladen

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