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 principal name |
||
46 | 6 | * |
|
47 | * @return string|null |
||
48 | 6 | */ |
|
49 | public function getPrincipalName() |
||
53 | |||
54 | /** |
||
55 | * @deprecated will be removed in 3.0. Use getGivenName() instead. |
||
56 | 6 | * |
|
57 | * Get user first name |
||
58 | 6 | * |
|
59 | * @return string|null |
||
60 | */ |
||
61 | public function getFirstname() |
||
65 | |||
66 | 6 | /** |
|
67 | * Get user given name (first name) |
||
68 | 6 | * |
|
69 | * @return string|null |
||
70 | */ |
||
71 | public function getGivenName() |
||
75 | |||
76 | 6 | /** |
|
77 | * @deprecated will be removed in 3.0. Use getSurname() instead. |
||
78 | 6 | * |
|
79 | * Get user lastname |
||
80 | 6 | * |
|
81 | * @return string|null |
||
82 | */ |
||
83 | public function getLastname() |
||
87 | |||
88 | 6 | /** |
|
89 | * Get user surname |
||
90 | 6 | * |
|
91 | * @return string|null |
||
92 | */ |
||
93 | public function getSurname() |
||
97 | |||
98 | 6 | /** |
|
99 | * @deprecated will be removed in 3.0. Use getDisplayName() instead. |
||
100 | 6 | * |
|
101 | * Get user name |
||
102 | * |
||
103 | * @return string|null |
||
104 | */ |
||
105 | public function getName() |
||
109 | |||
110 | 6 | /** |
|
111 | * Get user name |
||
112 | * |
||
113 | * @return string|null |
||
114 | */ |
||
115 | public function getDisplayName() |
||
119 | |||
120 | 3 | /** |
|
121 | * @deprecated will be removed in 3.0. |
||
122 | * |
||
123 | * Get user urls |
||
124 | * |
||
125 | * @return string|null |
||
126 | */ |
||
127 | public function getUrls() |
||
131 | |||
132 | /** |
||
133 | * Return all of the owner details available as an array. |
||
134 | * |
||
135 | * @return array |
||
136 | */ |
||
137 | public function toArray() |
||
146 | } |
||
147 |