| 1 | <?php |
||
| 9 | class Token |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $key; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $secret; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $key |
||
| 23 | * @param string $secret |
||
| 24 | */ |
||
| 25 | public function __construct($key, $secret) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Generates the basic string serialization of a token that a server |
||
| 33 | * would respond to request_token and access_token calls with |
||
| 34 | * |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function __toString() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getKey() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function getSecret() |
||
| 61 | } |
||
| 62 |