1 | <?php |
||
16 | class GumroadResourceOwner implements ResourceOwnerInterface |
||
17 | { |
||
18 | use ArrayAccessorTrait; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $response; |
||
24 | |||
25 | 3 | public function __construct(array $response = []) |
|
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | 3 | public function getId() |
|
37 | |||
38 | /** |
||
39 | * Returns email address of the resource owner |
||
40 | * |
||
41 | * @return string|null |
||
42 | */ |
||
43 | 3 | public function getEmail() |
|
47 | |||
48 | /** |
||
49 | * Returns full name of the resource owner |
||
50 | * |
||
51 | * @return string|null |
||
52 | */ |
||
53 | 3 | public function getName() |
|
57 | |||
58 | /** |
||
59 | * Returns Gumroad bio of the resource owner |
||
60 | * |
||
61 | * @return string|null |
||
62 | */ |
||
63 | 3 | public function getBio() |
|
67 | |||
68 | /** |
||
69 | * Returns identities of the resource owner |
||
70 | * |
||
71 | * @see https://auth0.com/docs/user-profile/user-profile-structure |
||
72 | * @return array|null |
||
73 | */ |
||
74 | public function getIdentities() |
||
78 | |||
79 | /** |
||
80 | * Returns facebook profile of the resource owner |
||
81 | * |
||
82 | * @return string|null |
||
83 | */ |
||
84 | 3 | public function getFacebookProfile() |
|
88 | |||
89 | /** |
||
90 | * Returns twitter handle of the resource owner |
||
91 | * |
||
92 | * @return string|null |
||
93 | */ |
||
94 | 3 | public function getTwitterHandle() |
|
98 | |||
99 | /** |
||
100 | * Returns gumroad profile url of the resource owner |
||
101 | * |
||
102 | * @return string|null |
||
103 | */ |
||
104 | 3 | public function getProfileUrl() |
|
108 | |||
109 | /** |
||
110 | * @inheritdoc |
||
111 | */ |
||
112 | 3 | public function toArray() |
|
116 | } |
||
117 |