Initial Commit
This commit is contained in:
34
dependencies/jasny/sso/src/Server/SessionInterface.php
vendored
Normal file
34
dependencies/jasny/sso/src/Server/SessionInterface.php
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace WP_Ultimo\Dependencies\Jasny\SSO\Server;
|
||||
|
||||
/**
|
||||
* Interface to start a session.
|
||||
*/
|
||||
interface SessionInterface
|
||||
{
|
||||
/**
|
||||
* @see session_id()
|
||||
*/
|
||||
public function getId() : string;
|
||||
/**
|
||||
* Start a new session.
|
||||
* @see session_start()
|
||||
*
|
||||
* @throws ServerException if session can't be started.
|
||||
*/
|
||||
public function start() : void;
|
||||
/**
|
||||
* Resume an existing session.
|
||||
*
|
||||
* @throws ServerException if session can't be started.
|
||||
* @throws BrokerException if session is expired
|
||||
*/
|
||||
public function resume(string $id) : void;
|
||||
/**
|
||||
* Check if a session is active. (status PHP_SESSION_ACTIVE)
|
||||
* @see session_status()
|
||||
*/
|
||||
public function isActive() : bool;
|
||||
}
|
Reference in New Issue
Block a user