1 | <?php namespace League\OAuth2\Client\Provider; |
||
7 | class LinkedInResourceOwner extends GenericResourceOwner |
||
8 | { |
||
9 | /** |
||
10 | * Raw response |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $response; |
||
15 | |||
16 | /** |
||
17 | * Creates new resource owner. |
||
18 | * |
||
19 | * @param array $response |
||
20 | */ |
||
21 | 6 | public function __construct(array $response = array()) |
|
25 | |||
26 | /** |
||
27 | * Get user email |
||
28 | * |
||
29 | * @return string|null |
||
30 | */ |
||
31 | 6 | public function getEmail() |
|
35 | |||
36 | /** |
||
37 | * Get user firstname |
||
38 | * |
||
39 | * @return string|null |
||
40 | */ |
||
41 | 6 | public function getFirstName() |
|
45 | |||
46 | /** |
||
47 | * Get user imageurl |
||
48 | * |
||
49 | * @return string|null |
||
50 | */ |
||
51 | 6 | public function getImageurl() |
|
55 | |||
56 | /** |
||
57 | * Get user lastname |
||
58 | * |
||
59 | * @return string|null |
||
60 | */ |
||
61 | 6 | public function getLastName() |
|
65 | |||
66 | /** |
||
67 | * Get user userId |
||
68 | * |
||
69 | * @return string|null |
||
70 | */ |
||
71 | 6 | public function getId() |
|
75 | |||
76 | /** |
||
77 | * Get user location |
||
78 | * |
||
79 | * @return string|null |
||
80 | */ |
||
81 | 6 | public function getLocation() |
|
88 | |||
89 | /** |
||
90 | * Get user description |
||
91 | * |
||
92 | * @return string|null |
||
93 | */ |
||
94 | 6 | public function getDescription() |
|
98 | |||
99 | /** |
||
100 | * Get user url |
||
101 | * |
||
102 | * @return string|null |
||
103 | */ |
||
104 | 6 | public function getUrl() |
|
108 | |||
109 | /** |
||
110 | * Return all of the owner details available as an array. |
||
111 | * |
||
112 | * @return array |
||
113 | */ |
||
114 | 6 | public function toArray() |
|
118 | |||
119 | /** |
||
120 | * Returns a field from the response data. |
||
121 | * |
||
122 | * @param string $key |
||
123 | * |
||
124 | * @return mixed|null |
||
125 | */ |
||
126 | 6 | private function getField($key) |
|
130 | } |
||
131 |