| 1 | <?php namespace League\OAuth2\Client\Provider; |
||
| 9 | class AppleResourceOwner extends GenericResourceOwner |
||
| 10 | { |
||
| 11 | |||
| 12 | use ArrayAccessorTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Raw response |
||
| 16 | * |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | protected $response = []; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string|null |
||
| 23 | */ |
||
| 24 | private $email; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Gets resource owner attribute by key. The key supports dot notation. |
||
| 28 | * |
||
| 29 | * @return mixed |
||
| 30 | */ |
||
| 31 | 1 | public function getAttribute($key) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Get user first name |
||
| 38 | * |
||
| 39 | * @return string|null |
||
| 40 | */ |
||
| 41 | 1 | public function getFirstName() |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Get user user id |
||
| 48 | * |
||
| 49 | * @return string|null |
||
| 50 | */ |
||
| 51 | 1 | public function getId() |
|
| 55 | |||
| 56 | /** |
||
| 57 | * Get user last name |
||
| 58 | * |
||
| 59 | * @return string|null |
||
| 60 | */ |
||
| 61 | 1 | public function getLastName() |
|
| 65 | |||
| 66 | /** |
||
| 67 | * Get user email, if available |
||
| 68 | * |
||
| 69 | * @return string|null |
||
| 70 | */ |
||
| 71 | 1 | public function getEmail() |
|
| 75 | |||
| 76 | /** |
||
| 77 | * Return all of the owner details available as an array. |
||
| 78 | * |
||
| 79 | * @return array |
||
| 80 | */ |
||
| 81 | public function toArray() |
||
| 85 | } |
||
| 86 |