<?php
declare(strict_types=1);
namespace UseCases\Chat;
// @responsibility: Deletes chat sessions
use Domain\Repository\ChatSessionRepositoryInterface;
final class DeleteChatSessionUseCase implements DeleteChatSessionUseCaseInterface
{
public function __construct(
private ChatSessionRepositoryInterface $sessionRepo
) {
}
public function deleteSession(int $sessionId): void
{
$this->sessionRepo->delete($sessionId);
}
}