20 lines
376 B
PHP
20 lines
376 B
PHP
<?php
|
|
|
|
namespace MintyPHP\Http;
|
|
|
|
interface SessionStoreInterface
|
|
{
|
|
public function get(string $key, mixed $default = null): mixed;
|
|
|
|
public function set(string $key, mixed $value): void;
|
|
|
|
public function has(string $key): bool;
|
|
|
|
public function remove(string $key): void;
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function all(): array;
|
|
}
|