| Total Complexity | 3 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class OAuthToken |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | public $key; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | public $secret; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * key = the token |
||
| 19 | * secret = the token secret. |
||
| 20 | */ |
||
| 21 | public function __construct( |
||
| 22 | string $key, |
||
| 23 | string $secret |
||
| 24 | ) { |
||
| 25 | $this->key = $key; |
||
| 26 | $this->secret = $secret; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * generates the basic string serialization of a token that a server |
||
| 31 | * would respond to request_token and access_token calls with. |
||
| 32 | */ |
||
| 33 | public function to_string() : string |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function __toString(): string |
||
| 49 |