1 | <?php namespace League\OAuth2\Client\Provider; |
||
3 | class InstagramResourceOwner implements ResourceOwnerInterface |
||
4 | { |
||
5 | /** |
||
6 | * Raw response |
||
7 | * |
||
8 | * @var array |
||
9 | */ |
||
10 | protected $response; |
||
11 | |||
12 | /** |
||
13 | * Creates new resource owner. |
||
14 | * |
||
15 | * @param array $response |
||
16 | */ |
||
17 | 2 | public function __construct(array $response = array()) |
|
21 | |||
22 | /** |
||
23 | * Get resource owner id |
||
24 | * |
||
25 | * @return string|null |
||
26 | */ |
||
27 | 2 | public function getId() |
|
31 | |||
32 | /** |
||
33 | * Get user imageurl |
||
34 | * |
||
35 | * @return string|null |
||
36 | */ |
||
37 | 2 | public function getImageurl() |
|
41 | |||
42 | /** |
||
43 | * Get user name |
||
44 | * |
||
45 | * @return string|null |
||
46 | */ |
||
47 | 2 | public function getName() |
|
51 | |||
52 | /** |
||
53 | * Get user nickname |
||
54 | * |
||
55 | * @return string|null |
||
56 | */ |
||
57 | 2 | public function getNickname() |
|
61 | |||
62 | /** |
||
63 | * Get user description |
||
64 | * |
||
65 | * @return string|null |
||
66 | */ |
||
67 | 2 | public function getDescription() |
|
71 | |||
72 | /** |
||
73 | * Return all of the owner details available as an array. |
||
74 | * |
||
75 | * @return array |
||
76 | */ |
||
77 | 2 | public function toArray() |
|
81 | } |
||
82 |