| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* OAuth storage handler interface |
| 5 |
* @author Ben Tadiar <ben@handcraftedbyben.co.uk> |
| 6 |
* @link https://github.com/benthedesigner/dropbox |
| 7 |
* @package Dropbox\OAuth |
| 8 |
* @subpackage Storage |
| 9 |
*/ |
| 10 |
|
| 11 |
interface Dropbox_StorageInterface |
| 12 |
{ |
| 13 |
/** |
| 14 |
* Get a token by type |
| 15 |
* @param string $type Token type to retrieve |
| 16 |
*/ |
| 17 |
public function get($type); |
| 18 |
|
| 19 |
/** |
| 20 |
* Set a token by type |
| 21 |
* @param \stdClass $token Token object to set |
| 22 |
* @param string $type Token type |
| 23 |
*/ |
| 24 |
public function set($token, $type); |
| 25 |
|
| 26 |
/** |
| 27 |
* Delete tokens for the current session/user |
| 28 |
*/ |
| 29 |
public function delete(); |
| 30 |
} |
| 31 |
|