| 1 | <?php |
||
| 8 | class Token |
||
| 9 | { |
||
| 10 | /** @var string */ |
||
| 11 | public $key; |
||
| 12 | /** @var string */ |
||
| 13 | public $secret; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param string $key The OAuth Token |
||
| 17 | * @param string $secret The OAuth Token Secret |
||
| 18 | */ |
||
| 19 | public function __construct($key, $secret) |
||
| 20 | { |
||
| 21 | $this->key = $key; |
||
| 22 | $this->secret = $secret; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Generates the basic string serialization of a token that a server |
||
| 27 | * would respond to request_token and access_token calls with |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function __toString() |
||
| 38 | } |
||
| 39 |