1 | <?php namespace Bogstag\OAuth2\Client\Provider; |
||
5 | class TraktResourceOwner implements ResourceOwnerInterface |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * Raw response |
||
10 | * |
||
11 | * @var array |
||
12 | */ |
||
13 | protected $response; |
||
14 | |||
15 | /** |
||
16 | * Creates new resource owner. |
||
17 | * |
||
18 | * @param array $response |
||
19 | */ |
||
20 | public function __construct(array $response = []) |
||
24 | |||
25 | /** |
||
26 | * Get username |
||
27 | * |
||
28 | * @return string|null |
||
29 | */ |
||
30 | public function getUsername() |
||
34 | |||
35 | /** |
||
36 | * Get user name |
||
37 | * |
||
38 | * @return string|null |
||
39 | */ |
||
40 | public function getName() |
||
44 | |||
45 | /** |
||
46 | * Get user avatarurl |
||
47 | * |
||
48 | * @return string|null |
||
49 | */ |
||
50 | public function getAvatarUrl() |
||
54 | |||
55 | /** |
||
56 | * Get user id |
||
57 | * |
||
58 | * @return string|null |
||
59 | */ |
||
60 | public function getId() |
||
64 | |||
65 | /** |
||
66 | * Return all of the owner details available as an array. |
||
67 | * |
||
68 | * @return array |
||
69 | */ |
||
70 | public function toArray() |
||
74 | } |