| 1 | <?php namespace League\OAuth2\Client\Provider; |
||
| 9 | class LinkedInResourceOwner extends GenericResourceOwner |
||
| 10 | { |
||
| 11 | |||
| 12 | use ArrayAccessorTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Raw response |
||
| 16 | * |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | protected $response; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Creates new resource owner. |
||
| 23 | * |
||
| 24 | * @param array $response |
||
| 25 | */ |
||
| 26 | 6 | public function __construct(array $response = array()) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Gets resource owner attribute by key. The key supports dot notation. |
||
| 33 | * |
||
| 34 | * @return mixed |
||
| 35 | */ |
||
| 36 | 6 | public function getAttribute($key) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Get user email |
||
| 43 | * |
||
| 44 | * @return string|null |
||
| 45 | */ |
||
| 46 | 6 | public function getEmail() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Get user firstname |
||
| 53 | * |
||
| 54 | * @return string|null |
||
| 55 | */ |
||
| 56 | 6 | public function getFirstName() |
|
| 60 | |||
| 61 | /** |
||
| 62 | * Get user imageurl |
||
| 63 | * |
||
| 64 | * @return string|null |
||
| 65 | */ |
||
| 66 | 6 | public function getImageurl() |
|
| 70 | |||
| 71 | /** |
||
| 72 | * Get user lastname |
||
| 73 | * |
||
| 74 | * @return string|null |
||
| 75 | */ |
||
| 76 | 6 | public function getLastName() |
|
| 80 | |||
| 81 | /** |
||
| 82 | * Get user userId |
||
| 83 | * |
||
| 84 | * @return string|null |
||
| 85 | */ |
||
| 86 | 6 | public function getId() |
|
| 90 | |||
| 91 | /** |
||
| 92 | * Get user location |
||
| 93 | * |
||
| 94 | * @return string|null |
||
| 95 | */ |
||
| 96 | 6 | public function getLocation() |
|
| 100 | |||
| 101 | /** |
||
| 102 | * Get user description |
||
| 103 | * |
||
| 104 | * @return string|null |
||
| 105 | */ |
||
| 106 | 6 | public function getDescription() |
|
| 110 | |||
| 111 | /** |
||
| 112 | * Get user url |
||
| 113 | * |
||
| 114 | * @return string|null |
||
| 115 | */ |
||
| 116 | 6 | public function getUrl() |
|
| 120 | |||
| 121 | /** |
||
| 122 | * Return all of the owner details available as an array. |
||
| 123 | * |
||
| 124 | * @return array |
||
| 125 | */ |
||
| 126 | 6 | public function toArray() |
|
| 130 | } |
||
| 131 |