Backup #1601

ID1601
Dateipfad/var/www/dev.campus.systemische-tools.de/src/Domain/Repository/StopwordRepositoryInterface.php
Version1
Typ modified
Größe1.4 KB
Hashbc13d14307b9dda04820845b184483165bcdd0e78c2aee555a6fcaba83cf119b
Datum2025-12-27 00:19:04
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 Stopword-Persistenz (Entity-Extraction Filter)

interface StopwordRepositoryInterface
{
    /**
     * Find all stopwords with optional filtering.
     *
     * @return array<int, array<string, mixed>>
     */
    public function findAll(bool $activeOnly = true, ?string $category = null): array;

    /**
     * Find stopword by ID.
     *
     * @return array<string, mixed>|null
     */
    public function find(int $id): ?array;

    /**
     * Get all canonical forms for fast lookup.
     *
     * @return array<string> List of canonical stopword forms
     */
    public function getCanonicalForms(bool $activeOnly = true): array;

    /**
     * Check if a word is a stopword.
     */
    public function isStopword(string $word): bool;

    /**
     * Create a new stopword.
     *
     * @param array<string, mixed> $data
     */
    public function create(array $data): int;

    /**
     * Update a stopword.
     *
     * @param array<string, mixed> $data
     */
    public function update(int $id, array $data): bool;

    /**
     * Delete a stopword.
     */
    public function delete(int $id): bool;

    /**
     * Toggle active status.
     */
    public function toggleActive(int $id): bool;

    /**
     * Get statistics by category.
     *
     * @return array<string, int>
     */
    public function getStats(): array;
}

Vollständig herunterladen

Aktionen

Herunterladen

← Zurück zur Übersicht