| 1 | <?php |
||
| 7 | class UntappdUser implements ResourceOwnerInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | protected $response; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param array $response |
||
| 16 | */ |
||
| 17 | 1 | public function __construct(array $response) |
|
| 21 | |||
| 22 | 1 | public function getId() |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Get the username. |
||
| 29 | * |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | 1 | public function getUsername() |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Get perferred first name. |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | 1 | public function getFirstName() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * Get perferred last name. |
||
| 49 | * |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 1 | public function getLastName() |
|
| 56 | |||
| 57 | /** |
||
| 58 | * Get email address. |
||
| 59 | * |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | 1 | public function getEmail() |
|
| 66 | |||
| 67 | /** |
||
| 68 | * Get user data as an array. |
||
| 69 | * |
||
| 70 | * @return array |
||
| 71 | */ |
||
| 72 | 1 | public function toArray() |
|
| 76 | } |
||
| 77 |