-
Notifications
You must be signed in to change notification settings - Fork 126
Expand file tree
/
Copy pathStorageInterface.php
More file actions
41 lines (34 loc) · 814 Bytes
/
Copy pathStorageInterface.php
File metadata and controls
41 lines (34 loc) · 814 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
41
<?php
namespace Craue\FormFlowBundle\Storage;
/**
* @author Toni Uebernickel <tuebernickel@gmail.com>
* @copyright 2011-2015 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 boolean
*/
function has($key);
/**
* Delete the stored data of the given key.
* @param string $key
* @return mixed The removed value.
*/
function remove($key);
}