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