Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Contracts/Repository/SessionRepositoryInterface.php
10279 views
1
<?php
2
3
namespace Pterodactyl\Contracts\Repository;
4
5
use Illuminate\Support\Collection;
6
7
interface SessionRepositoryInterface extends RepositoryInterface
8
{
9
/**
10
* Return all the active sessions for a user.
11
*/
12
public function getUserSessions(int $user): Collection;
13
14
/**
15
* Delete a session for a given user.
16
*/
17
public function deleteUserSession(int $user, string $session): ?int;
18
}
19
20