| 1 | <?php |
||
| 4 | class AccessToken extends BaseModel |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * Access Token |
||
| 8 | * |
||
| 9 | * @var string |
||
| 10 | */ |
||
| 11 | protected $token; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Token Type |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $tokenType; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Bearer |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $bearer; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * User ID |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | protected $uid; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Account ID |
||
| 36 | * |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | protected $accountId; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Team ID |
||
| 43 | * |
||
| 44 | * @var string |
||
| 45 | */ |
||
| 46 | protected $teamId; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Create a new AccessToken instance |
||
| 50 | * |
||
| 51 | * @param array $data |
||
| 52 | */ |
||
| 53 | public function __construct(array $data) |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Get Access Token |
||
| 67 | * |
||
| 68 | * @return string |
||
| 69 | */ |
||
| 70 | public function getToken() |
||
| 74 | |||
| 75 | /** |
||
| 76 | * Get Token Type |
||
| 77 | * |
||
| 78 | * @return string |
||
| 79 | */ |
||
| 80 | public function getTokenType() |
||
| 84 | |||
| 85 | /** |
||
| 86 | * Get Bearer |
||
| 87 | * |
||
| 88 | * @return string |
||
| 89 | */ |
||
| 90 | public function getBearer() |
||
| 94 | |||
| 95 | /** |
||
| 96 | * Get User ID |
||
| 97 | * |
||
| 98 | * @return string |
||
| 99 | */ |
||
| 100 | public function getUid() |
||
| 104 | |||
| 105 | /** |
||
| 106 | * Get Account ID |
||
| 107 | * |
||
| 108 | * @return string |
||
| 109 | */ |
||
| 110 | public function getAccountId() |
||
| 114 | |||
| 115 | /** |
||
| 116 | * Get Team ID |
||
| 117 | * |
||
| 118 | * @return string |
||
| 119 | */ |
||
| 120 | public function getTeamId() |
||
| 124 | } |
||
| 125 |