1 | <?php |
||
7 | class ImgurResourceOwner implements ResourceOwnerInterface |
||
8 | { |
||
9 | /** |
||
10 | * Raw response |
||
11 | * |
||
12 | * @var |
||
13 | */ |
||
14 | protected $response; |
||
15 | |||
16 | /** |
||
17 | * Creates new resource owner. |
||
18 | * |
||
19 | * @param $response |
||
20 | */ |
||
21 | 3 | public function __construct($response) |
|
25 | |||
26 | /** |
||
27 | * Get resource owner id |
||
28 | * |
||
29 | * @return string|null |
||
30 | */ |
||
31 | 3 | public function getId() |
|
35 | |||
36 | /** |
||
37 | * Return all of the owner details available as an array. |
||
38 | * |
||
39 | * @return array |
||
40 | */ |
||
41 | 3 | public function toArray() |
|
45 | |||
46 | /** |
||
47 | * Get resource owner url |
||
48 | * |
||
49 | * @return string|null |
||
50 | */ |
||
51 | 3 | public function getUrl() |
|
55 | |||
56 | /** |
||
57 | * Get Imgur bio |
||
58 | * |
||
59 | * @return mixed |
||
60 | */ |
||
61 | 3 | public function getBio() |
|
65 | |||
66 | /** |
||
67 | * Get resource owner reputation |
||
68 | * |
||
69 | * @return mixed |
||
70 | */ |
||
71 | 3 | public function getReputation() |
|
75 | |||
76 | /** |
||
77 | * Get created at timestamp |
||
78 | * |
||
79 | * @return string |
||
80 | */ |
||
81 | 3 | public function getCreated() |
|
85 | |||
86 | /** |
||
87 | * Get pro account expiration timestamp |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | 3 | public function getProExpiration() |
|
95 | } |
||
96 |