forked from craue/CraueFormFlowBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStorageInterface.php
More file actions
40 lines (33 loc) · 774 Bytes
/
StorageInterface.php
File metadata and controls
40 lines (33 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
namespace Craue\FormFlowBundle\Storage;
/**
* @author Toni Uebernickel <[email protected]>
* @copyright 2011-2025 Christian Raue
* @license http://opensource.org/licenses/mit-license.php MIT License
*/
interface StorageInterface {
/**
* Store the given value under the given key.
* @param string $key
* @param mixed $value
*/
function set($key, $value);
/**
* Retrieve the data stored under the given key.
* @param string $key
* @param mixed $default
* @return mixed
*/
function get($key, $default = null);
/**
* Checks if data is stored for the given key.
* @param string $key
* @return bool
*/
function has($key);
/**
* Delete the stored data of the given key.
* @param string $key
*/
function remove($key);
}