1 | <?php |
||
6 | class HarvestResourceOwner implements ResourceOwnerInterface |
||
7 | { |
||
8 | /** |
||
9 | * Domain |
||
10 | * |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $domain; |
||
14 | |||
15 | /** |
||
16 | * Raw response |
||
17 | * |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $response; |
||
21 | |||
22 | /** |
||
23 | * Creates new resource owner. |
||
24 | * |
||
25 | * @param array $response |
||
26 | */ |
||
27 | 1 | public function __construct(array $response = array()) |
|
31 | |||
32 | /** |
||
33 | * Get resource owner id |
||
34 | * |
||
35 | * @return string|null |
||
36 | */ |
||
37 | 1 | public function getId() |
|
41 | |||
42 | /** |
||
43 | * Get resource owner email |
||
44 | * |
||
45 | * @return string|null |
||
46 | */ |
||
47 | 1 | public function getEmail() |
|
51 | |||
52 | /** |
||
53 | * Get resource owner name |
||
54 | * |
||
55 | * @return string|null |
||
56 | */ |
||
57 | 1 | public function getName() |
|
61 | |||
62 | /** |
||
63 | * Get resource owner avatar url |
||
64 | * |
||
65 | * @return string|null |
||
66 | */ |
||
67 | 1 | public function getAvatar() |
|
71 | |||
72 | /** |
||
73 | * Set resource owner domain |
||
74 | * |
||
75 | * @param string $domain |
||
76 | * |
||
77 | * @return ResourceOwner |
||
78 | */ |
||
79 | 1 | public function setDomain($domain) |
|
85 | |||
86 | /** |
||
87 | * Return all of the owner details available as an array. |
||
88 | * |
||
89 | * @return array |
||
90 | */ |
||
91 | 1 | public function toArray() |
|
95 | } |
||
96 |