1 | <?php |
||
9 | class AppleAccessToken extends AccessToken |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $idToken; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $email; |
||
20 | |||
21 | /** |
||
22 | * @var boolean |
||
23 | */ |
||
24 | protected $isPrivateEmail; |
||
25 | |||
26 | /** |
||
27 | * Constructs an access token. |
||
28 | * |
||
29 | * @param array $options An array of options returned by the service provider |
||
30 | * in the access token request. The `access_token` option is required. |
||
31 | * @throws InvalidArgumentException if `access_token` is not provided in `$options`. |
||
32 | * |
||
33 | * @throws \Exception |
||
34 | */ |
||
35 | 3 | public function __construct(array $options = []) |
|
81 | |||
82 | /** |
||
83 | * @return array Apple's JSON Web Key |
||
84 | */ |
||
85 | 2 | protected function getAppleKey() |
|
96 | |||
97 | /** |
||
98 | * @return string |
||
99 | */ |
||
100 | 1 | public function getIdToken() |
|
104 | |||
105 | /** |
||
106 | * @return string |
||
107 | */ |
||
108 | public function getEmail() |
||
112 | |||
113 | /** |
||
114 | * @return boolean |
||
115 | */ |
||
116 | public function isPrivateEmail() |
||
120 | } |
||
121 |