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 | 1 | public function __construct(array $options = []) |
|
81 | |||
82 | /** |
||
83 | * @return array Apple's JSON Web Key |
||
84 | */ |
||
85 | 1 | protected function getAppleKey() |
|
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | public function getIdToken() |
||
97 | |||
98 | /** |
||
99 | * @return string |
||
100 | */ |
||
101 | public function getEmail() |
||
105 | |||
106 | /** |
||
107 | * @return boolean |
||
108 | */ |
||
109 | public function isPrivateEmail() |
||
113 | } |
||
114 |