| 1 | <?php namespace League\OAuth2\Client\Provider; |
||
| 9 | class AppleResourceOwner extends GenericResourceOwner |
||
| 10 | { |
||
| 11 | use ArrayAccessorTrait; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Raw response |
||
| 15 | * |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | protected $response = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string|null |
||
| 22 | */ |
||
| 23 | private $email; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var boolean true when its private relay from apple else the user mail address |
||
| 27 | */ |
||
| 28 | private $isPrivateEmail; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Gets resource owner attribute by key. The key supports dot notation. |
||
| 32 | * |
||
| 33 | * @param string $key |
||
| 34 | * |
||
| 35 | * @return mixed |
||
| 36 | */ |
||
| 37 | 1 | public function getAttribute($key) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * Get user first name |
||
| 44 | * |
||
| 45 | * @return string|null |
||
| 46 | */ |
||
| 47 | 1 | public function getFirstName() |
|
| 51 | |||
| 52 | /** |
||
| 53 | * Get user user id |
||
| 54 | * |
||
| 55 | * @return string|null |
||
| 56 | */ |
||
| 57 | 1 | public function getId() |
|
| 61 | |||
| 62 | /** |
||
| 63 | * Get user last name |
||
| 64 | * |
||
| 65 | * @return string|null |
||
| 66 | */ |
||
| 67 | 1 | public function getLastName() |
|
| 71 | |||
| 72 | /** |
||
| 73 | * Get user email, if available |
||
| 74 | * |
||
| 75 | * @return string|null |
||
| 76 | */ |
||
| 77 | 1 | public function getEmail() |
|
| 81 | |||
| 82 | /** |
||
| 83 | * @return bool |
||
| 84 | */ |
||
| 85 | public function isPrivateEmail() |
||
| 89 | |||
| 90 | /** |
||
| 91 | * Return all of the owner details available as an array. |
||
| 92 | * |
||
| 93 | * @return array |
||
| 94 | */ |
||
| 95 | public function toArray() |
||
| 99 | } |
||
| 100 |