Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace Dynart\Micro;
4
5/**
6 * Session handler
7 */
8interface SessionInterface {
9    /**
10     * Destroys the session
11     */
12    public function destroy(): void;
13
14    /**
15     * Returns the session ID
16     */
17    public function id(): string;
18
19    /**
20     * Returns with a session value by name or default
21     */
22    public function get(string $name, mixed $default = null): mixed;
23
24    /**
25     * Sets a session variable
26     */
27    public function set(string $name, mixed $value): void;
28}