| 1 | <?php |
||
| 11 | class AccessToken implements AccessTokenInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * OpenID does not have a $token, it response $identity, it's a link to user |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $identity; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var integer|null |
||
| 22 | */ |
||
| 23 | protected $uid; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $identity |
||
| 27 | * @param int|null $uid |
||
| 28 | */ |
||
| 29 | public function __construct($identity, $uid = null) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function getToken() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function getUserId() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return int|null |
||
| 53 | */ |
||
| 54 | public function getExpires() |
||
| 58 | } |
||
| 59 |