1 | <?php namespace League\OAuth2\Client\Provider; |
||
5 | class LinkedInResourceOwner implements ResourceOwnerInterface |
||
6 | { |
||
7 | use ArrayAccessorTrait; |
||
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 | public function __construct(array $response = array()) |
||
25 | |||
26 | 6 | /** |
|
27 | * Gets resource owner attribute by key. The key supports dot notation. |
||
28 | 6 | * |
|
29 | 6 | * @return mixed |
|
30 | */ |
||
31 | public function getAttribute($key) |
||
35 | |||
36 | 6 | /** |
|
37 | * Get user firstname |
||
38 | 6 | * |
|
39 | * @return string|null |
||
40 | */ |
||
41 | public function getFirstName() |
||
45 | |||
46 | 6 | /** |
|
47 | * Get user lastname |
||
48 | 6 | * |
|
49 | * @return string|null |
||
50 | */ |
||
51 | public function getLastName() |
||
55 | |||
56 | 6 | /** |
|
57 | * Get user imageurl |
||
58 | 6 | * |
|
59 | * @return string|null |
||
60 | */ |
||
61 | public function getImageUrl() |
||
65 | |||
66 | 6 | /** |
|
67 | * @return string|null |
||
68 | 6 | */ |
|
69 | public function getBiggestProfilePictureUrl() |
||
76 | 6 | ||
77 | /** |
||
78 | 6 | * Get user userId |
|
79 | * |
||
80 | * @return string|null |
||
81 | */ |
||
82 | public function getId() |
||
86 | 6 | ||
87 | /** |
||
88 | 6 | * @return string|null |
|
89 | */ |
||
90 | public function getEmail() |
||
109 | |||
110 | /** |
||
111 | * Return all of the owner details available as an array. |
||
112 | * |
||
113 | * @return array |
||
114 | */ |
||
115 | public function toArray() |
||
119 | |||
120 | /** |
||
121 | * @return array|mixed |
||
122 | */ |
||
123 | private function getSortedProfilePictures() |
||
163 | } |
||
164 |