1 | <?php namespace Stevenmaguire\OAuth2\Client\Provider; |
||
5 | class EventbriteResourceOwner implements ResourceOwnerInterface |
||
6 | { |
||
7 | /** |
||
8 | * Raw response |
||
9 | * |
||
10 | * @var array |
||
11 | */ |
||
12 | protected $response; |
||
13 | |||
14 | /** |
||
15 | * Creates new resource owner. |
||
16 | * |
||
17 | * @param array $response |
||
18 | */ |
||
19 | 3 | public function __construct(array $response = array()) |
|
23 | |||
24 | /** |
||
25 | * Get user id |
||
26 | * |
||
27 | * @return string|null |
||
28 | */ |
||
29 | 3 | public function getId() |
|
33 | |||
34 | /** |
||
35 | * Get user email |
||
36 | * |
||
37 | * @return string|null |
||
38 | */ |
||
39 | 3 | public function getEmail() |
|
43 | |||
44 | /** |
||
45 | * Return all of the owner details available as an array. |
||
46 | * |
||
47 | * @return array |
||
48 | */ |
||
49 | 3 | public function toArray() |
|
53 | } |
||
54 |