StopwordRepositoryInterface.php
- Pfad:
src/Domain/Repository/StopwordRepositoryInterface.php - Namespace: Domain\Repository
- Zeilen: 68 | Größe: 1,518 Bytes
- Geändert: 2025-12-27 00:19:04 | 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.
Klassen 1
-
StopwordRepositoryInterfaceinterface Zeile 9
Funktionen 9
-
findAll()public Zeile 16 -
find()public Zeile 23 -
getCanonicalForms()public Zeile 30 -
isStopword()public Zeile 35 -
create()public Zeile 42 -
update()public Zeile 49 -
delete()public Zeile 54 -
toggleActive()public Zeile 59 -
getStats()public Zeile 66
Verwendet von 5
- ContentServiceProvider.php use
- StopwordController.php use
- StopwordController.php constructor
- StopwordRepository.php implements
- StopwordRepository.php use
Versionen 1
-
v1
2025-12-27 00:19 | 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 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{total: int, active: int, by_category: array<string, array{count: int, active: int}>}
*/
public function getStats(): array;
}