| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | interface elFinderSessionInterface |
||
|
|
|||
| 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 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.