1 | <?php |
||
11 | class MiniProgramResourceOwner implements ResourceOwnerInterface |
||
12 | { |
||
13 | /** @var AccessToken */ |
||
14 | protected $token; |
||
15 | |||
16 | protected $appid; |
||
17 | protected $responseUserInfo; |
||
18 | protected $decryptData; |
||
19 | |||
20 | 3 | public function __construct(array $response, $token, $appid) |
|
31 | |||
32 | |||
33 | /** |
||
34 | * @param $response |
||
35 | * @param AccessToken $token |
||
36 | * @throws \Exception |
||
37 | */ |
||
38 | 3 | private function checkSignature($response, $token) |
|
46 | |||
47 | /** |
||
48 | * @return mixed |
||
49 | * @throws \Exception |
||
50 | */ |
||
51 | 3 | private function decrypt() |
|
69 | |||
70 | /** |
||
71 | * Returns the identifier of the authorized resource owner. |
||
72 | * |
||
73 | * @return mixed |
||
74 | */ |
||
75 | public function getId() |
||
79 | |||
80 | 3 | public function getDecryptData() |
|
84 | |||
85 | 3 | public function getResponseUserInfo() |
|
89 | |||
90 | /** |
||
91 | * Return all of the owner details available as an array. |
||
92 | * |
||
93 | * @return array |
||
94 | */ |
||
95 | public function toArray() |
||
99 | } |
||
100 |