mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-19 21:04:44 +02:00
19 lines
407 B
PHP
19 lines
407 B
PHP
<?php
|
|
|
|
namespace App\Contracts\Repository;
|
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
interface SessionRepositoryInterface extends RepositoryInterface
|
|
{
|
|
/**
|
|
* Return all the active sessions for a user.
|
|
*/
|
|
public function getUserSessions(int $user): Collection;
|
|
|
|
/**
|
|
* Delete a session for a given user.
|
|
*/
|
|
public function deleteUserSession(int $user, string $session): ?int;
|
|
}
|