| 1 |
<?php |
| 2 |
/*! |
| 3 |
* Hybridauth |
| 4 |
* https://hybridauth.github.io | https://github.com/hybridauth/hybridauth |
| 5 |
* (c) 2017 Hybridauth authors | https://hybridauth.github.io/license.html |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace Hybridauth\Storage; |
| 9 |
|
| 10 |
/** |
| 11 |
* Hybridauth storage manager interface |
| 12 |
*/ |
| 13 |
interface StorageInterface |
| 14 |
{ |
| 15 |
/** |
| 16 |
* Retrieve a item from storage |
| 17 |
* |
| 18 |
* @param string $key |
| 19 |
* |
| 20 |
* @return mixed |
| 21 |
*/ |
| 22 |
public function get($key); |
| 23 |
|
| 24 |
/** |
| 25 |
* Add or Update an item to storage |
| 26 |
* |
| 27 |
* @param string $key |
| 28 |
* @param string $value |
| 29 |
*/ |
| 30 |
public function set($key, $value); |
| 31 |
|
| 32 |
/** |
| 33 |
* Delete an item from storage |
| 34 |
* |
| 35 |
* @param string $key |
| 36 |
*/ |
| 37 |
public function delete($key); |
| 38 |
|
| 39 |
/** |
| 40 |
* Delete a item from storage |
| 41 |
* |
| 42 |
* @param string $key |
| 43 |
*/ |
| 44 |
public function deleteMatch($key); |
| 45 |
|
| 46 |
/** |
| 47 |
* Clear all items in storage |
| 48 |
*/ |
| 49 |
public function clear(); |
| 50 |
} |
| 51 |
|