elFinderSessionInterface
last analyzed

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 49
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
start() 0 1 ?
close() 0 1 ?
get() 0 1 ?
set() 0 1 ?
remove() 0 1 ?
1
<?php
2
3
/**
4
 * elFinder - file manager for web.
5
 * Session Wrapper Interface.
6
 *
7
 * @author Naoki Sawada
8
 **/
9
interface elFinderSessionInterface
0 ignored issues
show
Coding Style Compatibility introduced by
Each interface must be in a namespace of at least one level (a top-level vendor name)

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
10
{
11
    /**
12
     * Session start.
13
     *
14
     * @return  self
15
     **/
16
    public function start();
17
18
    /**
19
     * Session write & close.
20
     *
21
     * @return  self
22
     **/
23
    public function close();
24
25
    /**
26
     * Get session data.
27
     *
28
     * This method must be equipped with an automatic start / close.
29
     *
30
     * @param   string  $key   Target key
31
     * @param   mixed   $empty Return value of if session target key does not exist
32
     *
33
     * @return  mixed
34
     **/
35
    public function get($key, $empty = '');
36
37
    /**
38
     * Set session data.
39
     *
40
     * This method must be equipped with an automatic start / close.
41
     *
42
     * @param   string  $key   Target key
43
     * @param   mixed   $data  Value
44
     *
45
     * @return  self
46
     **/
47
    public function set($key, $data);
48
49
    /**
50
     * Get session data.
51
     *
52
     * @param   string  $key   Target key
53
     *
54
     * @return  self
55
     **/
56
    public function remove($key);
57
}
58