30 lines
571 B
PHP
30 lines
571 B
PHP
<?php
|
|
namespace Framework\Session;
|
|
|
|
interface SessionInterface
|
|
{
|
|
|
|
/**
|
|
* Récupère une information en Session
|
|
* @param string $key
|
|
* @param mixed $default
|
|
* @return mixed
|
|
*/
|
|
public function get(string $key, $default = null);
|
|
|
|
/**
|
|
* Ajoute une information en Session
|
|
*
|
|
* @param string $key
|
|
* @param $value
|
|
* @return mixed
|
|
*/
|
|
public function set(string $key, $value): void;
|
|
|
|
/**
|
|
* Supprime une clef en session
|
|
* @param string $key
|
|
*/
|
|
public function delete(string $key): void;
|
|
}
|