| 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 | * @param $fieldName |
||
| 58 | * |
||
| 59 | * @return mixed|null |
||
| 60 | */ |
||
| 61 | 4 | public function getResponseField($fieldName) |
|
| 65 | |||
| 66 | /** |
||
| 67 | * Return all of the owner details available as an array. |
||
| 68 | * |
||
| 69 | * @return array |
||
| 70 | */ |
||
| 71 | public function toArray() |
||
| 75 | } |
||
| 76 |