1 | <?php |
||
7 | class KeycloakResourceOwner implements ResourceOwnerInterface |
||
8 | { |
||
9 | /** |
||
10 | * Raw response |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $response; |
||
15 | |||
16 | /** |
||
17 | * Creates new resource owner. |
||
18 | * |
||
19 | * @param array $response |
||
20 | */ |
||
21 | 4 | public function __construct(array $response = array()) |
|
25 | |||
26 | /** |
||
27 | * Get resource owner id |
||
28 | * |
||
29 | * @return string|null |
||
30 | */ |
||
31 | 4 | public function getId() |
|
35 | |||
36 | /** |
||
37 | * Get resource owner email |
||
38 | * |
||
39 | * @return string|null |
||
40 | */ |
||
41 | 4 | public function getEmail() |
|
45 | |||
46 | /** |
||
47 | * Get resource owner name |
||
48 | * |
||
49 | * @return string|null |
||
50 | */ |
||
51 | 4 | public function getName() |
|
55 | |||
56 | /** |
||
57 | * Return all of the owner details available as an array. |
||
58 | * |
||
59 | * @return array |
||
60 | */ |
||
61 | 4 | public function toArray() |
|
65 | } |
||
66 |