| 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 | /** |
||
| 43 | * Get user firstname |
||
| 44 | * |
||
| 45 | * @return string|null |
||
| 46 | 6 | */ |
|
| 47 | public function getFirstName() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get user imageurl |
||
| 54 | * |
||
| 55 | * @return string|null |
||
| 56 | 6 | */ |
|
| 57 | public function getImageurl() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Get user lastname |
||
| 64 | * |
||
| 65 | * @return string|null |
||
| 66 | 6 | */ |
|
| 67 | public function getLastName() |
||
| 71 | |||
| 72 | /** |
||
| 73 | * Get user userId |
||
| 74 | * |
||
| 75 | * @return string|null |
||
| 76 | 6 | */ |
|
| 77 | public function getId() |
||
| 81 | |||
| 82 | |||
| 83 | /** |
||
| 84 | * Return all of the owner details available as an array. |
||
| 85 | * |
||
| 86 | 6 | * @return array |
|
| 87 | */ |
||
| 88 | 6 | public function toArray() |
|
| 92 | } |
||
| 93 |