TRF Certest first commit

This commit is contained in:
2025-02-26 08:57:46 +01:00
commit 3ce064a108
2524 changed files with 475404 additions and 0 deletions
@@ -0,0 +1,33 @@
<?php
namespace Vanguard\Repositories\Session;
use Illuminate\Support\Collection;
interface SessionRepository
{
/**
* Find session by id.
*/
public function find(string $sessionId): ?\stdClass;
/**
* Get all active sessions for specified user.
*/
public function getUserSessions(int $userId): Collection;
/**
* Get number of active sessions for the specified user.
*/
public function getActiveSessionsCount(int $userId): int;
/**
* Invalidate specified session for provided user
*/
public function invalidateSession(string $sessionId): void;
/**
* Invalidate all sessions for user with given id.
*/
public function invalidateAllSessionsForUser(int $userId): void;
}