| 1 | <?php |
||
| 7 | class AuthResponse |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @JMS\Type("string") |
||
| 11 | * @JMS\Accessor(getter="getFlatScope",setter="setFlatScope") |
||
| 12 | * |
||
| 13 | * @var string[] |
||
| 14 | */ |
||
| 15 | protected $scope = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @JMS\Type("string") |
||
| 19 | * @JMS\SerializedName("access_token") |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $accessToken; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @JMS\Type("string") |
||
| 27 | * @JMS\SerializedName("token_type") |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $tokenType; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @JMS\Type("string") |
||
| 35 | * @JMS\SerializedName("app_id") |
||
| 36 | * |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | protected $appId; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @JMS\Type("string") |
||
| 43 | * @JMS\SerializedName("expires_in") |
||
| 44 | * |
||
| 45 | * @var int |
||
| 46 | */ |
||
| 47 | protected $expiresIn; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param string $scope |
||
| 51 | */ |
||
| 52 | public function setFlatScope($scope) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | public function getFlatScope() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | public function getAccessToken() |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @return string |
||
| 75 | */ |
||
| 76 | public function getAppId() |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @return int |
||
| 83 | */ |
||
| 84 | public function getExpiresIn() |
||
| 88 | |||
| 89 | /** |
||
| 90 | * @return string[] |
||
| 91 | */ |
||
| 92 | public function getScope() |
||
| 96 | |||
| 97 | /** |
||
| 98 | * @return string |
||
| 99 | */ |
||
| 100 | public function getTokenType() |
||
| 104 | } |
||
| 105 |