| 1 | <?php namespace Stevenmaguire\OAuth2\Client\Provider; |
||
| 5 | class MicrosoftResourceOwner implements ResourceOwnerInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Raw response |
||
| 9 | * |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | protected $response; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Creates new resource owner. |
||
| 16 | * |
||
| 17 | * @param array $response |
||
| 18 | */ |
||
| 19 | 6 | public function __construct(array $response = array()) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Get user id |
||
| 26 | * |
||
| 27 | * @return string|null |
||
| 28 | */ |
||
| 29 | public function getId() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get user email |
||
| 36 | 6 | * |
|
| 37 | * @return string|null |
||
| 38 | 6 | */ |
|
| 39 | public function getEmail() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get user firstname |
||
| 46 | 6 | * |
|
| 47 | * @return string|null |
||
| 48 | 6 | */ |
|
| 49 | public function getFirstname() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Get user lastname |
||
| 56 | 6 | * |
|
| 57 | * @return string|null |
||
| 58 | 6 | */ |
|
| 59 | public function getLastname() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Get user name |
||
| 66 | 6 | * |
|
| 67 | * @return string|null |
||
| 68 | 6 | */ |
|
| 69 | public function getName() |
||
| 73 | |||
| 74 | /** |
||
| 75 | * Get user urls |
||
| 76 | 6 | * |
|
| 77 | * @return string|null |
||
| 78 | 6 | */ |
|
| 79 | public function getUrls() |
||
| 83 | |||
| 84 | /** |
||
| 85 | * Return all of the owner details available as an array. |
||
| 86 | * |
||
| 87 | * @return array |
||
| 88 | 6 | */ |
|
| 89 | public function toArray() |
||
| 93 | } |
||
| 94 |