GetChatSessionUseCaseInterface.php
- Pfad:
src/UseCases/Chat/GetChatSessionUseCaseInterface.php - Namespace: UseCases\Chat
- Zeilen: 85 | Größe: 1,833 Bytes
- Geändert: 2025-12-25 17:33:02 | Gescannt: 2025-12-31 10:22:15
Code Hygiene Score: 98
- Dependencies: 100 (25%)
- LOC: 100 (20%)
- Methods: 90 (20%)
- Secrets: 100 (15%)
- Classes: 100 (10%)
- Magic Numbers: 100 (10%)
Keine Issues gefunden.
Dependencies 2
- use Domain\Entity\ChatMessage
- use Domain\Entity\ChatSession
Klassen 1
-
GetChatSessionUseCaseInterfaceinterface Zeile 12
Funktionen 11
-
getSession()public Zeile 17 -
getAllSessions()public Zeile 24 -
getAllSessionsWithStats()public Zeile 31 -
getMessages()public Zeile 38 -
getAuthorProfiles()public Zeile 45 -
getSystemPrompts()public Zeile 52 -
getOutputStructures()public Zeile 59 -
getStructure()public Zeile 66 -
getAvailableCollections()public Zeile 73 -
getSystemPromptById()public Zeile 78 -
getDefaultSystemPrompt()public Zeile 83
Verwendet von 4
- ChatController.php constructor
- ChatController.php use
- ChatServiceProvider.php use
- GetChatSessionUseCase.php implements
Versionen 1
-
v1
2025-12-25 17:33 | claude-code-hook | modified
Claude Code Pre-Hook Backup vor Edit-Operation
Code
<?php
declare(strict_types=1);
namespace UseCases\Chat;
// @responsibility: Interface for retrieving chat session data
use Domain\Entity\ChatMessage;
use Domain\Entity\ChatSession;
interface GetChatSessionUseCaseInterface
{
/**
* Get session by UUID.
*/
public function getSession(string $uuid): ?ChatSession;
/**
* Get all sessions as entities.
*
* @return array<int, ChatSession>
*/
public function getAllSessions(int $limit = 50): array;
/**
* Get all sessions with stats as arrays.
*
* @return array<int, array<string, mixed>>
*/
public function getAllSessionsWithStats(int $limit = 50): array;
/**
* Get messages for a session.
*
* @return array<int, ChatMessage>
*/
public function getMessages(int $sessionId): array;
/**
* Get author profiles.
*
* @return array<int, array<string, mixed>>
*/
public function getAuthorProfiles(): array;
/**
* Get system prompts.
*
* @return array<int, array<string, mixed>>
*/
public function getSystemPrompts(): array;
/**
* Get output structures.
*
* @return array<int, array<string, mixed>>
*/
public function getOutputStructures(): array;
/**
* Get a single structure by ID.
*
* @return array<string, mixed>|null
*/
public function getStructure(int $id): ?array;
/**
* Get available collections.
*
* @return array<int, array<string, mixed>>
*/
public function getAvailableCollections(): array;
/**
* Get system prompt by ID, or default if not found.
*/
public function getSystemPromptById(?int $id): string;
/**
* Get default system prompt.
*/
public function getDefaultSystemPrompt(): string;
}